Bit of an odd one this, not sure whats going on but I have a workflow that migrates workflows from our Dev to Prod server (also checks if its an upgraded version or a new workflow), worked on it for ages and finally got it working a couple of months ago. Now I have a user who's been off long term and come back and cannot get the workflow to run and migrate his workflows, its also the same for me, I cant migrate his workflows either! If I take ownership of the sample workflow we created (just a text input tool, does nothing basically) then the migration workflow runs, transfer back to the user and it fails. The workflow uses my API Key since I dont want to enable API access for End Users, I am the Admin of the servers, Ive also asked users to try and the one who got back to be ran it for a workflow he created and it worked fine, so it seems that its something to do with this user, but what? The user can has permissions setup on everything other than API access (same as other users), I also added myself to his studio to see if that made a difference, it didn't - basically, anybody got any ideas of things to check?
@craigja Are you getting a specific error message when it doesn't run? Are you running it from server or desktop? If desktop, does the user who can't run it have the correct network access to query the Alteryx server? Ports, FWs, etc.
Bacon
Things that I would check....
The error message when calling the V3 Workflows to push the workflow to Prod is - Bad Request - not the greatest error message! Everything works till this point - these API calls work:
Get all collections from Dev
Get All workflows in collections on Dev
Get Collections from Prod
Its only when I call the API to Push the workflow to Prod that we get this error. It would be the same AD account the user has, it would just have been disabled for the duration, I can check group membership and see how that looks compared to another user.
Just had a look at AD groups, nothing jumps out at me, this user and another in the same dept have the same Alteryx AD groups. Also, the API call is made using my Admin key/secret, so I supppose the issue is that I cant use the API to move their workflows, but I can move everyone elses workflows with no issues
Its now affecting more that 1 user, so something must have changed somewhere! But where.....
Just looked at one of the other outputs of the API - the L outout and in there I see an error:
{
"message": "The request is invalid.",
"modelState": {
"credentialId": [
"Invalid credential id."
]
}
}
Now the credential used is correct, I look up the credential and its valid in Prod and I also have access to that credential, so I dont know why I get this error, but at least its a bit more of a clue than Bad Request!
Once you get the all the details, test it on postman once. If it does not work there as well then check if the parameters are affecting it, like change the parameters and identify what might not be working out.
This is how I do it when any of my Alteryx APIs break in process.
Update: How are you fetching your credential ID? is it using API> GET /v3/credentials.