Skip to content
KiweelyKiweelyKiweely

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
  • Applies to Workday Reporting, RaaS, WQL REST API & Microsoft Power BI
  • 7 min read
  • Published
  • By Kiweely
On this page

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
DimensionEndpoint Pattern Workday RaaS (Custom Report)https://<host>/ccx/service/customreport2/<tenant>/<owner>/<report_name>?format=json Workday WQL REST APIhttps://<host>/api/wql/v1/<tenant>/data?limit=10000&offset=0&query=...
DimensionNative Pagination Workday RaaS (Custom Report)None (single monolithic response) Workday WQL REST APIYes (limit up to 10,000; zero-based offset)
DimensionSession Caching Workday RaaS (Custom Report)None Workday WQL REST APIResult set cached for the session up to 30 minutes
DimensionCalculated Fields Workday RaaS (Custom Report)Full support for custom calculated fields Workday WQL REST APISupported via exposed fields, but complex chained calc fields are easier in RaaS
DimensionOutput Formats Workday RaaS (Custom Report)json, csv (&bom=true for UTF-8 BOM), xml, simplexml Workday WQL REST APIJSON ({ total, data })
DimensionBest Fit in Power BI Workday RaaS (Custom Report)Under ~50,000 rows, complex report logic, quick prototypes Workday WQL REST API50,000–500,000+ rows, scheduled Power BI Service refresh, incremental loads
DimensionWhen to Stop Using Both Workday RaaS (Custom Report)Exceeding Power BI Service timeouts or multi-million-row historical ledger tables → move to Workday Data Cloud / warehouse staging Workday WQL REST APISame—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
Symptom“This dataset includes a dynamic data source” in Power BI Service Root CauseFull URL concatenated dynamically in Web.Contents FixKeep base host static and move path/params into RelativePath and Query
SymptomHTTP 401 Unauthorized on scheduled refresh Root CausePersonal account expired, MFA triggered, or OAuth access credential expired FixSwitch to ISU + API Client refresh grant; verify ISU is exempt from SSO/MFA
SymptomHTTP 500 or Gateway Timeout on RaaS Root CauseMonolithic report exceeded Workday or Power BI timeout FixSwitch to format=csv, add date prompts to slice requests, or migrate to WQL
SymptomMissing columns or blank values in Power BI Root CauseISU’s ISSG lacks Get permission on a domain or report field FixCheck security domains for every column and run Activate Pending Security Policy Changes
SymptomDuplicate or skipped rows across WQL pages Root CauseQuery lacked deterministic ORDER BY or session cache expired after 30 min FixAdd 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

Related guides

All guides

Let Workday check the work.

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

Get the next guide in your inbox.

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

We’ll email you once to confirm. Unsubscribe in one click from any issue.