Creating workflow for Retry failed requests

I am trying to create a workflow for “Retry” requests that have failed for 3 reasons

I am using Trigger - “Provisioning Completed” with jsonpath:

$.errors[?(@ =~ /.(group membership operation|could not acquire lock|timeout)./i)]

I am getting with this the right erros that i need

The next step that i am using is action - “Manage Access”

I am using in “Identities” - $.trigger.recipient.id

In “access to manage” i tried some things, the last version i tried:

{“accessItems.$”:“$.trigger.accountRequests[].attributeRequests[]”}"

But i am getting error into “Manage Access” action, i tried many things but cant find any solution
"request failed (type: Bad Request, retryable: false): 400 - 400 Bad Request: ",

Anyone have created workflow for retry failed access requests?

My requests are all for “Access profiles” for individual users.

Hi @nicollasviggiano

Have you looked into using retryable errors on your source instead? Seems like it would be an easier more out of the box way of handling this.

I tried, but its not working, its a salesforce source and i activate that but its not working properly

When i have those erros, its not retrying

As u can see on the print, i activate and my requests with error starts to be like this:

And its not retry, only complete my request without retrying.

I tried this api call:

[

    {

        "op": "add",

        "path": "/connectorAttributes/retryableErrors",

        "value": [

          "Your request was running for too long",

          "Read time out",

          "a group membership operation initiated by user ID"

        ]

    },

    {

        "op": "add",

        "path": "/connectorAttributes/provisioningMaxRetries",

        "value": "5"

    }

]

try In “access to manage”

$.trigger.accountRequests[*].attributeRequests[?(@.name == 'assignedGroups')].value

I used AI bot to fix these problems, it should be in left side in developer community. try and let me know.

Hi Kumar Ranjan i tried to change as u say but got this error:

I found the solution to create this workflow for retry requests with errors

here the solution:

I created my workflow with those trigger and actions,

Basically i used to search my specific error with this filter directly on trigger:

$.errors[?(@ =~ /.(group membership operation|could not acquire lock|timeout)./i)]

After this i put a wait, because sometimes the request became empty, so the wait solve this problem.

After this i search my trackingnumber that is returned on the trigger, i use a HTTPrequest (/v2025/search)

I needed this because i need to find the access profile name to use in the next Http request

{“include”:[“originalRequests”,“expansionItems”,“action”,“status”],“indices”:[“accountactivities”],“query”:{“query”:“trackingNumber:“{{$.trigger.trackingNumber}}””}}

So after this i use a search http request to find my access profile ID

{“indices”:[“accessprofiles”],“query”:{“query”:“name:“{{$.hTTPRequest.body[0].accountRequests[0].attributeRequests[0].value}}””}}

And finally i use “Manage Access” action to retry the access request that had error before with this configuration

request Identities:
$.trigger.recipient.id

Access to manage:
{“indices”:[“accessprofiles”],“query”:{“query”:“name:“{{$.hTTPRequest.body[0].accountRequests[0].attributeRequests[0].value}}””}}

And with that i got success with my retrys