Fail Data Actions Architect

We are using a data action to retrieve the url from survey.url, in the genesys test zone everything is fine, but when we implement it in architect it gives us this error, can you help us?

json append from genesys data action sandbox

testok.json (2.8 KB)

#FAILURE# errorCode : NOT_FOUND status : 404 correlationId : 09911452-8588-489c-94ef-6f5c49e75381 ACTION.REMOTE_ENDPOINT

Typically when a data action works in test mode but fails in architect it is because unexpected input is going to the data action. You can try hard coding the flow to have a known good input and see if that works. If that doesn't help point out the problem then you can work with support to see exactly what is being sent to the data action.

I took a look at the JSON file that you attached, it appears to be a survey, not a data action export.

--Jason

I took a look at the correlation ID that you provided but couldn't really tell what went wrong from that. I am happy to take a quick look at an export of your data action, but you may want to start a support case as well. I can't look very deeply into problems on the forum.

--Jason

Thank you very much, I attach the data action, I hope you can help me, since it is the first time that I come across this.

GetSurveyV2-20220311225828.custom.json (983 Bytes)

You might need to url escape the variable you are including in the URL template with $esc.url()

This document talks about that

--Jason

Hello, thank you very much jason, I just checked what you tell me but it keeps giving me the same error from architect.

URL modificate: /api/v2/quality/surveys/scorable?customerSurveyUrl=$esc.url(${input.p_SurveyURL}) or
/api/v2/quality/surveys/scorable?customerSurveyUrl=$esc.url($input.p_SurveyURL)

Error in architect: NOT_FOUND status : 404 correlationId : 42b06959-d783-42ea-b988-666f6591f0e2 entityId : entityName : userMessage : The requested resource was not found. userParamsMessage: userParamsKey : userParamsValue : detailsErrorCode : ACTION.REMOTE_ENDPOINT

Hello,

If you are trying to invoke this Data Action from the Architect Survey Invite flow, it will most likely fail.

At this stage, I don't think the survey exists already - as you have not invoked yet the "Complete Survey" action in the architect flow.
So you do get a survey url, but it will only be effective/valid once you have gone through "Complete Survey" action and once the survey is "created" in Genesys Cloud.

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.