Workday returns Invalid instance for instance setting during a Studio organization data change when a SOAP request or integration map passes a WID or Reference ID that the target tenant cannot resolve for that field on the request’s effective date. To isolate the bad reference, capture the exact outbound SOAP XML sent to the workday-out-soap step, replay it in the Workday Studio Web Service Tester, and check every <wd:ID> (or <ws:ID> / <bsvc:ID>) value against View Reference IDs in the target tenant.
Why Invalid instance for instance setting happens in organization changes
Organization data changes in Workday Studio typically call Staffing or Human Resources web services such as Change_Organization_Assignments or Add_Update_Organization. Each reference element in those payloads resolves to a specific business object instance inside the tenant. When Workday’s web service layer tries to bind that reference to an instance setting (such as a Cost Center, Company, Supervisory Organization, or Superior Organization field) and cannot resolve a valid object instance of the required class, it rejects the call with Invalid instance for instance setting.
The error can also originate before the SOAP call runs if a Studio Integration Map or Integration Attribute holds a hardcoded WID or Reference ID from another tenant. Because WIDs are 32-character hexadecimal identifiers generated per tenant, a WID copied from Sandbox or Implementation will fail to resolve in Production.
Common causes and fixes
| Cause | XML / Reference Symptom | Fix |
|---|---|---|
| CauseStale or cross-tenant WID | XML / Reference Symptom<wd:ID wd:type="WID">a1b2c3d4...</wd:ID> copied from Sandbox or Implementation into Production |
FixReplace the hardcoded WID with a portable Reference ID such as Cost_Center_Reference_ID or Organization_Reference_ID, or re-extract the target tenant’s WID |
| CauseMismatched Reference ID type | XML / Reference Symptom<wd:ID wd:type="Organization_Reference_ID">CC_100</wd:ID> passed where the target object expects Cost_Center_Reference_ID |
FixCheck the exact type value in View Reference IDs or the WSDL in Studio Schema Explorer and update the XSLT or Groovy mapping |
| CauseWrong organization subtype or disallowed org | XML / Reference SymptomValid organization ID passed to a field restricted by Allowed Organizations on the Supervisory Organization or Location Hierarchy | FixVerify the organization type matches the target field and confirm the organization is permitted on the position’s Supervisory Organization |
| CauseInactive organization or future effective date | XML / Reference SymptomOrganization is inactive on the <wd:Effective_Date> in Change_Organization_Assignments_Request |
FixCheck the organization’s availability and inactive dates in Workday, then align the payload’s effective date or map to an active replacement org |
| CauseBlank or malformed lookup value | XML / Reference SymptomEmpty string <wd:ID wd:type="Company_Reference_ID"/> or trailing whitespace from an XSLT lookup or Studio integration map |
FixGuard empty lookups in XSLT before emitting the reference node, and trim whitespace with normalize-space() |
| CauseMissing integration security visibility | XML / Reference SymptomValid Reference ID in the tenant, but the Integration System User (ISU) cannot see the organization or reference type | FixConfirm the ISU’s security group has domain access to the target organization type and staffing or organization web service |
Step-by-step debugging in Workday Studio
Follow this sequence in Workday Studio to pinpoint which element in your organization data change payload is triggering the fault. If the failure occurs inside a larger assembly and you need to trace message routing first, see how to debug a failing Workday Studio integration.
Capture the full SOAP fault and outbound request XML. Add a temporary
put-integration-messageor log step right before theworkday-out-soapcomponent (or inspect the message in Studio’s assembly debugger) so you can view the exact XML payload sent to Workday. In the SOAP fault response, check the<faultstring>and<wd:Validation_Error>detail blocks: Workday often includes the failing<wd:Xpath>or the specific field name next toInvalid instance for instance setting.Replay the payload in the Workday Studio Web Service Tester. Open the Schema Explorer in Studio, locate the operation (
Change_Organization_Assignmentsin the Staffing WSDL orAdd_Update_Organizationin Human Resources), right-click the request element, and choose Open SOAP wrapped request in Web Service Tester. Paste your captured outbound XML into the Request pane and run it against the failing tenant. Testing the raw XML removes XSLT and routing variables from the investigation.Verify every
IDelement’stypeattribute and value. Inspect every<wd:ID>(or<ws:ID>/<bsvc:ID>depending on your namespace prefix) in the request:xml <wd:Organization_Reference> <wd:ID wd:type="Cost_Center_Reference_ID">CC_100</wd:ID> </wd:Organization_Reference>In the target Workday tenant, run the View Reference IDs task, select the matching Business Object (for example, Cost Center or Organization), and confirm that both the Reference ID Type and Reference ID Value match the XML character for character. For a single record, you can also open the organization in Workday and select Related Actions > Integration IDs > View IDs.
Check active status and Allowed Organizations for the effective date. Confirm that the target organization is active as of the
<wd:Effective_Date>in your SOAP payload. If you are callingChange_Organization_Assignments, open the worker’s Supervisory Organization and check its Allowed Organizations configuration: Workday rejects a valid, active Cost Center or Company if it is not allowed for that Supervisory Organization or Location Hierarchy.Replace tenant-specific WIDs with portable Reference IDs. Search your XSLT stylesheets and Studio Integration Maps for 32-character hexadecimal WIDs. Replace them with portable Reference IDs that stay consistent between Sandbox and Production (such as
Company_Reference_IDorCost_Center_Reference_ID). If your integration loads bulk updates via EIB templates alongside Studio, apply the same reference ID checks covered in how to fix Workday EIB load errors.Guard optional references against blank values. If an input file omits an organization code on some rows, do not emit an empty
<wd:Organization_Reference><wd:ID wd:type="..."></wd:ID></wd:Organization_Reference>block. Wrap optional reference blocks in an<xsl:if test="normalize-space(...) != ''">check so Workday never tries to resolve an empty instance.
Frequently asked questions
Why did the Studio integration pass in Sandbox and fail in Production with Invalid instance for instance setting?
The integration almost certainly references a hardcoded WID or an organization Reference ID that exists in Sandbox after a tenant refresh or manual test setup, but was never created or has a different WID in Production. Check Studio Integration Maps and XSLT constants for 32-character WIDs, then compare the failing Reference ID in View Reference IDs across both tenants.
Why can I not see Integration IDs under Related Actions on an organization?
Access to Integration IDs > View IDs and the View Reference IDs report is gated by security domains such as Set Up: System and Integration Build. If the menu option is missing in the UI, ask a Workday security administrator to grant view access on those domains to your account, and verify that the Integration System User running the Studio assembly has access to the same organization business objects.
Can a valid organization Reference ID still trigger this error in Change_Organization_Assignments?
Yes. Even when the Reference ID exists and is active, Change_Organization_Assignments fails if the organization’s effective date is after the transaction’s <wd:Effective_Date> or if the organization is of the wrong subtype for the target assignment slot. It also fails when the worker’s Supervisory Organization does not include that organization in its Allowed Organizations rules.