Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

SOAP Connector Error Handling

umang28
Regular Contributor
Regular Contributor

Hello,

While using a Workday SOAP connector how do I make sure to fail an update user task when an error is thrown in the logs? Currently the task is getting completed even though an error occurred while calling the web service. There is no status in the response except for the axis fault and a 500 internal server error HTTP code when called from postman. 

Logs:

2023-10-25 16:22:23,638 [quartzScheduler_Worker-3] ERROR provisoning.SoapProvisioningService - Error while calling webservice https://xxx.workday.com/ccx/service/mpc/Staffing/v41.0?wsdl:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client.validationError
faultSubcode:
faultString: Validation error occurred. The Headcount Option value of MOVE or BACKFILL is not valid unless the proposed and current supervisory organizations are Position Management (and are different).
faultActor:
faultNode:
faultDetail:
{urn:com.workday/bsvc}Validation_Fault:<ns1:Validation_Error><ns1:Message>The Headcount Option value of MOVE or BACKFILL is not valid unless the proposed and current supervisory organizations are Position Management (and are different).</ns1:Message><ns1:Detail_Message>Derived Element Content Headcount_Option_Reference Restricted by Change Job Detail Data/30/Headcount Options [CL]-The Headcount Option value of MOVE or BACKFILL is not valid unless the proposed and current supervis-</ns1:Detail_Message><ns1:Xpath>/wd:Change_Job_Request[1]/wd:Change_Job_Data[1]/wd:Change_Job_Detail_Data[1]/wd:Headcount_Option_Reference</ns1:Xpath></ns1:Validation_Error>

Validation error occurred. The Headcount Option value of MOVE or BACKFILL is not valid unless the proposed and current supervisory organizations are Position Management (and are different).

Thanks,

Umang

 

5 REPLIES 5

SB
Saviynt Employee
Saviynt Employee

You can define the SUCCESSCRITERIA and in case the response is not the same, the task should fail. Refer below SOAP documentation for examples

https://docs.saviyntcloud.com/bundle/SOAP-v23x/page/Content/Scenarios-for-Implementing-the-Connector...


Regards,
Sahil

umang28
Regular Contributor
Regular Contributor

This is the success Response I get:

 

<?xml version='1.0' encoding='UTF-8'?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Body>
        <wd:Change_Job_Response xmlns:wd="urn:com.workday/bsvc" wd:version="v41.0">
            <wd:Event_Reference>
                <wd:ID wd:type="WID">a5ad84a46a4a10224dae0dcb727f0000</wd:ID>
            </wd:Event_Reference>
        </wd:Change_Job_Response>
    </env:Body>
</env:Envelope>
 
How can I define a SUCCESSCRITERIA based on the above response? 

Hi Umang,

 

Were you able to figure out the SUCCESSCRITERIA  here?

 

Thanks

Hi @gauravchandok 

I don't think we can define a SUCCESSCRITERIA based on Workday responses but maybe you can try to map a response based on the fault message during a validation error. 

Thanks,

Umang

rushikeshvartak
All-Star
All-Star

in v5.5 its issue we have created analytics report to reopen tasks based on error on task comments


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.