---
title: "How do I stop Orchestrate JSONPath from corrupting WIDs…"
description: "Keep Create Values WID bindings to a single JSONPath block, never blank string prefixes, and log the resolved id before every reference API call."
url: https://kiweely.com/guides/workday-json-path-wid-leading-whitespace-prevention
---

# How do I stop Orchestrate JSONPath from corrupting WIDs with spaces?

Keep WID Create Values bindings to one JSONPath block—never blank string prefixes. Use stringAtJsonPath for ids; reserve multi-block joins with spaces for display names only.

-   **Checked** against Workday on November 17
-   Applies to **Workday Orchestrate Create Values and JSONPath**
-   2 min read
-   Published November 17
-   By Kiweely

Stop WID corruption from whitespace by never building reference ids with multi-block string concatenation. Workday’s Create Values step is the right tool for joining a first and last name with a space. It is the wrong place to park an empty String block in front of a Workday ID.

## Build rule for reference ids

| Value type | Create Values pattern |
| --- | --- |
| Display name, label, message | Multiple blocks; spaces between parts are intentional |
| WID, reference id, API path segment | One block only: prior-step value or `stringAtJsonPath` |
| Optional missing field | Prefer `stringAtJsonPathOrEmptyString` or a documented default **without** leading or trailing spaces |

Workday’s employee-data sample creates `workerID` by selecting the API response and applying `stringAtJsonPath` with path `$.id`. Copy that pattern for every id you later put in a Worker, Organization, or similar reference.

## Prevention checklist for new orchestrations

1.  When you add a Create Values key for an id, add exactly one value block.
2.  Bind it with `stringAtJsonPath` (or the raw prior-step string) to a path that returns the id, such as `$.id`.
3.  Do not insert a blank String block “for formatting.” There is nothing to format on a WID.
4.  Keep display-name concatenations on separate keys (`fullName`, `title`) so editors never reuse that pattern on id keys.
5.  Before the first API step that emits a reference, map or log the resolved id and assert it has no leading or trailing whitespace.
6.  After any edit to that Create Values step, re-check the resolved value—not only the expression tree.

## JSONPath hygiene

Use supported paths from Workday’s JSONPath support table (`$.id`, `$.data[0].id`, and similar). Avoid unsupported forms that return unexpected empties and push you toward hand-typed defaults. If you need a default when the path is missing, Workday documents `stringAtJsonPathOrEmptyString` and typed `…WithDefault` helpers—set defaults to empty or to a known valid id, never to a string that begins with a space.

Group independent Create Values keys separately from dependent ones so Orchestrate can process independent pairs in parallel, as Workday recommends. That also keeps id extraction visually separate from name joining in the canvas.

If a WID already fails at runtime with a leading space, use the symptom guide to remove the blank concatenation block and confirm the payload.

## Frequently asked questions

### Should I trim WIDs in a later step?

Prefer not introducing whitespace. Bind the id with a single Create Values block. Trimming can hide a bad concatenation that will return the next time someone edits the step.

### Which JSONPath function should I use for a WID string?

Workday documents stringAtJsonPath for string fields. stringAtJsonPathOrEmptyString returns an empty string when the path is missing, which is safer than a spaced default.

### Can Create Values process dependent keys in parallel?

Workday says independent key/value pairs can process in parallel; dependent pairs process sequentially. Group WID extractions that do not depend on each other separately from display-name joins.

## Sources checked

-   [Reference: Create Values](https://developer.workday.com/documentation/GUID-c310de5e-1e37-4ca6-bca3-52033d7ccb18/ReferenceCreateValues)
-   [Concept: JSONPath Support](https://developer.workday.com/documentation/GUID-d1c2ce08-a02e-4803-8347-207f3c3b2d30/ConceptJSONPathSupport)
-   [Reference: Json Member Functions](https://developer.workday.com/documentation/vsl1598549308984/ReferenceJsonMemberFunctions)
-   [Example: Get And Create Workday Employee Data](https://developer.workday.com/documentation/mxj1630014392721/ExampleGetAndCreateWorkdayEmployeeData)

## Related guides

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

-   [### Why does an Orchestration JSON path put a leading space in a WID? A Create Values concatenation with an empty String block puts a leading space on the WID so Workday rejects the reference. Delete blank blocks and inspect the resolved value before the API step.](https://kiweely.com/guides/workday-orchestration-json-path-leading-space-wid)

### More guides on Orchestrate

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

-   [How do I fix “WCPISU is not configured” on an Extend orchestration?](https://kiweely.com/guides/workday-extend-wcpisu-not-configured-error)
-   [When to use Workday Document Transformation instead of Orchestrate or Studio](https://kiweely.com/guides/workday-document-transformation-connector-when)
-   [Start with a Workday packaged connector before custom Studio](https://kiweely.com/guides/workday-packaged-connector-before-studio)
-   [Three cases where Workday still wants Studio](https://kiweely.com/guides/workday-studio-three-cases-keep-studio)
-   [Orchestrate is not a bulk-load replacement for Workday EIB or Studio](https://kiweely.com/guides/workday-orchestrate-not-a-bulk-load-replacement)
-   [Why Workday Orchestrate Trigger Integration will not launch an EIB](https://kiweely.com/guides/workday-trigger-integration-cannot-launch-eib)
-   [The 25-Second Synchronous Orchestrate Trap](https://kiweely.com/guides/workday-orchestrate-25-second-sync-trap)
-   [What is the best AI tool for building and testing Workday Studio integrations and Orchestrations?](https://kiweely.com/guides/ai-tools-for-workday-studio-and-orchestrations)

### From the blog on Orchestrate

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

-   [Orchestrate, an iPaaS, or Kiweely Roots](https://kiweely.com/blog/orchestrate-ipaas-or-kiweely-roots)
-   [Codex for Orchestration JSON: Catching the 25-Second Sync Trap Before Deploy](https://kiweely.com/blog/codex-orchestration-json-25-second-sync-trap)
-   [Keep in Studio, Move to Orchestrate, or Rebuild as an Extend App? A Practical Triage Matrix](https://kiweely.com/blog/migrating-legacy-workday-studio-integrations-to-orchestrate-decision-matrix)

## 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) [See how it works](https://kiweely.com/vine/how-it-works)

## Get the next guide in your inbox.

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