---
title: "Connect Workday RaaS & WQL to Power BI Without Limits"
description: "Connect Workday RaaS and WQL REST API to Power BI cleanly: ISU OAuth setup, JSON/CSV endpoints, WQL limit/offset pagination, and incremental refresh."
url: https://kiweely.com/guides/connect-workday-raas-wql-to-power-bi
---

# How to Connect Workday RaaS and WQL to Power BI Without Hitting Timeouts or Pagination Limits

Workday RaaS delivers a single monolithic payload with no native pagination, while the WQL REST API supports limit/offset pagination up to 10,000 rows per page with a 30-minute session cache. Choose the right endpoint for your dataset size and build resilient Power Query M loaders.

-   **Checked** against Workday on November 22
-   Applies to **Workday Reporting, RaaS, WQL REST API & Microsoft Power BI**
-   7 min read
-   Published November 22
-   By Kiweely

Microsoft Power BI does not ship a dedicated, high-throughput native Workday connector that handles pagination and incremental loads automatically. Teams connect Power BI to Workday using either **Reports-as-a-Service (RaaS)** or the **Workday Query Language (WQL) REST API** via Power Query (`Web.Contents`).

The two interfaces behave very differently under load. **RaaS has no native pagination**—it streams one monolithic payload until it finishes or hits a timeout or memory wall. **WQL supports native `limit` and `offset` pagination** (up to **10,000 rows per page**, backed by a **30-minute session cache**), making it the safer choice for large, growing datasets.

## RaaS vs. WQL for Power BI: Exact Technical Trade-Offs

Choose the interface based on dataset size, calculated-field dependency, and refresh cadence—not convenience.

| Dimension | Workday RaaS (Custom Report) | Workday WQL REST API |
| --- | --- | --- |
|  **Endpoint Pattern** | `https://<host>/ccx/service/customreport2/<tenant>/<owner>/<report_name>?format=json` | `https://<host>/api/wql/v1/<tenant>/data?limit=10000&offset=0&query=...` |
|  **Native Pagination** |  **None** (single monolithic response) |  **Yes** (`limit` up to 10,000; zero-based `offset`) |
|  **Session Caching** | None | Result set cached for the session up to **30 minutes** |
|  **Calculated Fields** | Full support for custom calculated fields | Supported via exposed fields, but complex chained calc fields are easier in RaaS |
|  **Output Formats** | `json`, `csv` (`&bom=true` for UTF-8 BOM), `xml`, `simplexml` | JSON (`{ total, data }`) |
|  **Best Fit in Power BI** | Under ~50,000 rows, complex report logic, quick prototypes | 50,000–500,000+ rows, scheduled Power BI Service refresh, incremental loads |
|  **When to Stop Using Both** | Exceeding Power BI Service timeouts or multi-million-row historical ledger tables → move to Workday Data Cloud / warehouse staging | Same—avoid pulling millions of historical rows directly into Power BI on every refresh |

## Step 1: Set Up the Integration Identity (ISU + Security)

Never authenticate a Power BI dataset with a human Workday login. Personal passwords expire, MFA blocks unattended refreshes, and employee departures break executive dashboards.

1.  Run **Create Integration System User** (ISU) with a dedicated account for Power BI (e.g., `ISU_PowerBI_Analytics`) and set **Do Not Allow UI Sessions** to checked.
2.  Run **Create Security Group** of type **Integration System Security Group (Unconstrained)** or constrained as appropriate, and assign the ISU.
3.  Grant **Get** permissions only on the specific **Security Domains** required by your custom report data source or WQL data source (plus *Workday Query Language* domain permissions when using WQL).
4.  Run **Activate Pending Security Policy Changes**.
5.  For **WQL REST API** (and OAuth-secured RaaS): run **Register API Client for Integrations**, select the required functional scopes (including WQL), generate a non-expiring refresh grant tied to the ISU, and record the Client ID, Client Secret, Token Endpoint, and WQL Endpoint from **View API Clients**.
6.  For **RaaS with Basic Auth** (if OAuth is not enabled on your RaaS endpoint): verify the ISU is excluded from SSO/MFA policies via **Edit Tenant Setup – Security** Authentication Policies, and note that Basic Auth credentials should be stored securely in Power BI Service gateway/cloud connection settings—never hardcoded in M code.

## Step 2: Connecting Power BI to Workday RaaS Safely

For small-to-medium custom reports (under ~50,000 rows and under ~50–100 MB uncompressed), RaaS is the fastest path into Power BI.

### Optimize the Custom Report Before Connecting

-   **Use `format=csv` for flat tables, `format=json` for nested multi-instance fields.** CSV payloads are typically 40–60% smaller than JSON and parse dramatically faster in Power Query. Append `&format=csv&bom=true` if special characters appear garbled.
-   **Avoid heavy calculated fields on large unindexed data sources.** Use an indexed data source whenever available (such as *All Active and Terminated Workers* or *Indexed* financial sources) and filter rows inside Workday—never pull 100,000 rows into Power BI just to filter down to 5,000 in Power Query.
-   **Do not use backslashes in the report owner username.** Workday RaaS URLs embed the report owner’s username, and Workday documents that backslashes in the owner username break the endpoint. Transfer ownership of production RaaS reports to a dedicated service/admin owner so departures do not break URLs.

### Chunking Large RaaS Reports via URL Prompts

Because RaaS cannot paginate with `limit`/`offset`, the only way to prevent timeouts on large RaaS reports is **prompt-based chunking**:

1.  Add Date Range prompts (e.g., `Start_Date` and `End_Date`) or Organizational prompts (e.g., `Company!WID`) to the Workday custom report.
2.  Remember to percent-encode exclamation marks in Workday ID prompt keys (`!WID` becomes `%21WID`).
3.  In Power Query, build a list of monthly or quarterly date slices (or company WIDs) and invoke a parameterized `Web.Contents` function for each slice using `RelativePath` and `Query` options so Power BI Service recognizes the static base URL and allows scheduled refresh.

powerquery

```
let
    FetchRaaSSlice = (startDate as text, endDate as text) as table =>
        let
            Raw = Web.Contents(
                "https://wd2-services1.workday.com",
                [
                    RelativePath = "ccx/service/customreport2/acme_tenant/svc_reporting/Worker_Events_RaaS",
                    Query = [
                        Start_Date = startDate,
                        End_Date = endDate,
                        format = "csv"
                    ],
                    Timeout = #duration(0, 0, 10, 0)
                ]
            ),
            Parsed = Csv.Document(Raw, [Delimiter = ",", Encoding = 65001, QuoteStyle = QuoteStyle.Csv]),
            Promoted = Table.PromoteHeaders(Parsed, [PromoteAllScalars = true])
        in
            Promoted
in
    FetchRaaSSlice
```

Using `RelativePath` and `Query` inside `Web.Contents` is critical: if you concatenate dynamic URL strings directly, Power BI Service rejects the dataset with a **“dynamic data source”** error and blocks scheduled refresh.

## Step 3: Connecting Power BI to WQL with `limit` and `offset` Pagination

When a dataset exceeds ~50,000 rows or grows continuously, move to the **Workday Query Language (WQL) REST API**.

### Key WQL Pagination Rules

-   **Endpoint:** `GET https://<host>/api/wql/v1/<tenant>/data` (or `POST /data` for long queries that exceed URL length limits).
-   **Parameters:** `limit` (1 to `10000`) and `offset` (zero-based starting index, starting at `0`).
-   **Do not confuse `LIMIT` (clause) with `limit` (parameter):** Writing `LIMIT 500` inside the WQL query string caps the entire result set at 500 rows and does not improve query execution time because Workday still evaluates the full result set first. Always omit the SQL `LIMIT` clause when paginating and pass `limit=10000&offset=0` as REST query parameters.
-   **30-minute session cache:** Workday caches the initial WQL result set for up to 30 minutes per user session. Passing `offset=0` starts a fresh execution; subsequent pages (`offset=10000`, `offset=20000`, ...) read rapidly from that cache as long as you finish within 30 minutes.

### Power Query M Pattern for WQL Pagination

Use `List.Generate` to loop through `offset` pages until the returned batch is smaller than `pageSize` (or reaches the `total` count returned by Workday):

powerquery

```
let
    BaseHost = "https://wd2-services1.workday.com",
    RelPath = "api/wql/v1/acme_tenant/data",
    WqlQuery = "SELECT worker, employeeID, hireDate, location FROM allActiveWorkers",
    PageSize = 10000,

    // Retrieve bearer header value from your OAuth helper query (stored securely outside hardcoded script)
    AuthHeader = "Bearer " & GetWorkdayAccessCredential(),

    GetPage = (offsetVal as number) as record =>
        let
            Response = Web.Contents(
                BaseHost,
                [
                    RelativePath = RelPath,
                    Query = [
                        limit = Number.ToText(PageSize),
                        offset = Number.ToText(offsetVal),
                        query = WqlQuery
                    ],
                    Headers = [
                        Authorization = AuthHeader,
                        Accept = "application/json"
                    ],
                    Timeout = #duration(0, 0, 5, 0)
                ]
            ),
            Json = Json.Document(Response)
        in
            Json,

    Pages = List.Generate(
        () => [Offset = 0, Page = GetPage(0)],
        each List.Count([Page][data]) > 0,
        each [
            Offset = [Offset] + PageSize,
            Page = if List.Count([Page][data]) < PageSize
                   then [data = {}]
                   else GetPage([Offset] + PageSize)
        ],
        each [Page][data]
    ),

    AllRecords = List.Combine(Pages),
    AsTable = Table.FromList(AllRecords, Splitter.SplitByNothing(), {"Row"}),
    Expanded = Table.ExpandRecordColumn(AsTable, "Row", {"worker", "employeeID", "hireDate", "location"})
in
    Expanded
```

## Avoiding Power BI Service Timeouts and Memory Walls

Even with clean pagination, Power BI Service enforces strict refresh limits (typically 2 hours for Pro / Shared capacity, 5 hours for Premium/Fabric, plus dataset memory caps). Follow four operational rules:

1.  **Enable Power BI Incremental Refresh:** Define `RangeStart` and `RangeEnd` parameters in Power Query and pass them into your WQL `WHERE` clause (e.g., `effectiveDate >= ... AND effectiveDate < ...`) or RaaS date prompts. Historical partitions stay frozen in Power BI; only the rolling active window queries Workday.
2.  **Finish WQL pagination inside 30 minutes:** If your Power Query transformations are slow between page fetches, Workday’s 30-minute WQL session cache can expire mid-loop. Use `PageSize = 10000` (the documented maximum) and defer heavy Power Query merges until after all pages are buffered.
3.  **Never refresh during Workday’s weekly maintenance window:** Schedule Power BI Service refreshes outside Friday night / Saturday morning Workday service updates so transient 503 responses do not trigger false refresh alerts.
4.  **Know when to introduce a staging warehouse:** If your Power BI model needs multi-year payroll results, full general ledger line items, or joins across 15+ Workday objects, stop pulling directly from RaaS or WQL into Power BI. Stage Workday data via **Workday Data Cloud** (zero-copy into Snowflake/Databricks or Live Data Query) or an enterprise warehouse, and point Power BI there.

## Troubleshooting Common Errors

| Symptom | Root Cause | Fix |
| --- | --- | --- |
|  **“This dataset includes a dynamic data source”** in Power BI Service | Full URL concatenated dynamically in `Web.Contents` | Keep base host static and move path/params into `RelativePath` and `Query` |
|  **HTTP 401 Unauthorized** on scheduled refresh | Personal account expired, MFA triggered, or OAuth access credential expired | Switch to ISU + API Client refresh grant; verify ISU is exempt from SSO/MFA |
|  **HTTP 500 or Gateway Timeout** on RaaS | Monolithic report exceeded Workday or Power BI timeout | Switch to `format=csv`, add date prompts to slice requests, or migrate to WQL |
|  **Missing columns or blank values** in Power BI | ISU’s ISSG lacks Get permission on a domain or report field | Check security domains for every column and run **Activate Pending Security Policy Changes** |
|  **Duplicate or skipped rows** across WQL pages | Query lacked deterministic `ORDER BY` or session cache expired after 30 min | Add `ORDER BY` on a unique field, use `limit=10000`, and complete paging within 30 minutes |

## Frequently asked questions

### Does Workday RaaS support limit and offset pagination?

No. Workday RaaS returns a single monolithic HTTP response (JSON, CSV, or XML) with no native pagination parameters. To slice a large RaaS dataset, you must expose report prompts (such as date ranges or supervisory organizations) as URL query parameters or switch to the WQL REST API.

### What is the maximum page size for the Workday WQL REST API?

The WQL REST API accepts a 'limit' query parameter up to 10,000 rows per page, paired with a zero-based 'offset' parameter. Workday caches the query result set for the user session for up to 30 minutes while you iterate through pages.

### Why does my WQL query stop at 500 rows or fail to paginate?

Some Workday REST endpoints or default client wrappers default to smaller page sizes if 'limit' is omitted, or callers confuse the SQL-style 'LIMIT' clause inside the WQL string (which caps total rows evaluated) with the REST 'limit' and 'offset' query parameters used for pagination.

### Should I use Basic Auth or OAuth 2.0 to connect Power BI to Workday?

Use an Integration System User (ISU) paired with an API Client for Integrations (OAuth 2.0 refresh grant) for WQL REST API and modern RaaS setups. Never bind a Power BI scheduled refresh to a personal employee account.

## Sources checked

-   [Workday Developer: Concept – Reports as a Service (RaaS)](https://developer.workday.com/documentation/hto1529968349582/ConceptReportsasaServiceRaaS)
-   [Workday Admin Guide: Reports as a Service (RaaS) URLs and Parameters](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/reports-as-a-service-raas-/dan1370797813643.html)
-   [Workday Admin Guide: WQL REST API Pagination (limit and offset)](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/workday-query-language-wql-/sfx1612553126122.html)
-   [Workday Admin Guide: Workday Query Language (WQL) REST API](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/workday-query-language-wql-/srr1614364076622.html)
-   [Workday Admin Guide: Report Performance and Limitations](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/report-performance-and-limitations/dan1370796644559.html)

## Related guides

[All guides](https://kiweely.com/guides)

-   [### Should I use RaaS, WQL or the REST API to extract data from Workday? Use RaaS for a saved report’s output (up to 1M rows, 6-hour timeout, no pagination), WQL for filtered, grouped, or paged extracts (10,000 rows/page, 1M max), and REST APIs for small low-latency reads (20 default, 100 max, 1,000 override).](https://kiweely.com/guides/workday-raas-wql-rest)
-   [### How do I set up an integration system user and API client in Workday so an external app can authenticate? Create the ISU, put it in an Integration System Security Group, grant domain permissions and activate them, register the client for integrations, then generate its refresh token and pick the ISU as the Workday account.](https://kiweely.com/guides/workday-integration-system-user-api-client)
-   [### How do I get more than 500 rows from a Workday WQL query? The 500-row stop belongs to the View WQL Query Result report, not WQL. The WQL REST API returns up to 10,000 rows per page (1 million per query) using limit and offset. Includes a 48,491-row worked run and Workday’s exact HTTP 500 pagination errors.](https://kiweely.com/guides/wql-more-than-500-rows)

### More guides on WQL

[All 35 guides](https://kiweely.com/guides#wql)

-   [Why does WQL return 403 permission denied S22 for an ISU?](https://kiweely.com/guides/workday-wql-403-s22-as-isu)
-   [Why does Convert Report to WQL break after a field rename?](https://kiweely.com/guides/workday-convert-report-to-wql-after-field-rename)
-   [Why does Convert Report to WQL say this field is missing an adhoc alias?](https://kiweely.com/guides/convert-report-to-wql-adhoc-alias)
-   [How do I build a Workday integration inventory report with every integration system, its template, schedule, last run and owner?](https://kiweely.com/guides/workday-integration-inventory-report-wql)
-   [Finding Unsubmitted Workday Time Blocks and Project Hours with WQL](https://kiweely.com/guides/workday-project-time-tracking-unsubmitted-hours-wql)
-   [Querying the Workday Worker Directory, Supervisory Hierarchy, and Cost Centers with WQL](https://kiweely.com/guides/workday-worker-directory-org-chart-search-fields-wql)
-   [Workday My Tasks API: Build an Approval Screen with Approve, Send Back and Deny](https://kiweely.com/guides/workday-inbox-my-tasks-awaiting-action-rest-wql)
-   [Retrieving Eligible Absence Plans and Live Balances for a Worker via Workday APIs](https://kiweely.com/guides/workday-absence-balances-api-eligible-plans-for-worker)

### From the blog on WQL

[All posts](https://kiweely.com/blog)

-   [Build vs. Buy a Workday MCP Server: OAuth 2.1, SOAP, WQL, and Twice-Yearly Releases](https://kiweely.com/blog/build-vs-buy-workday-mcp-server-engineering-cost)
-   [What happens after ChatGPT writes your WQL query](https://kiweely.com/blog/after-chatgpt-writes-your-wql)
-   [Answering Executive Span-of-Control and Headcount Questions Live from Workday](https://kiweely.com/blog/executive-org-span-of-control-attrition-questions-live-workday)

## Let Workday check the work.

Kiweely writes WQL and builds orchestrations in your own tenant, and Workday, not Kiweely, says whether they passed.

[Start for free](https://kiweely.com/download) [Book a demo](https://kiweely.com/demo)

## Get the next guide in your inbox.

One email a month with new guides and one Extend tip. Nothing else.
