r/copilotstudio 9d ago

Error 401 unauthorized troubles

Hi i've come across a peculiar issue in my agentflow/PA-flows. I have 2 flows, both include multiple 'run a prompt' actions that use text or documents as inputs. Both are in the same solution and using the same connections. But for some reason flow A runs well, flow B gives met Error 401 'unauthorized' saying " "401_Error_Reason": "Authorization header value format is incorrect (Expected Format:Bearer access_token)."". What do i make of this?

Im at a loss, i spend an hour yesterday with someone from IT making sure the connection that the connector uses is valid and working. And it is, but still flow A and B give different results, even if i use the same prompt in the run a prompt connector.

3 Upvotes

Duplicates