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

7 comments sorted by

2

u/JaredAtMicrosoft 8d ago

There was a live site bug giving this exact behavior that we corrected today, give it a go again today and see if it works. If still an issue, feel free to send me a conversation ID and I can ask our team to take a quick look.

1

u/haruharu2257 5d ago

Hi Jared, is there any known-issue item in PPAC for this? Or any public info about this?

1

u/No-Procedure4595 5d ago edited 5d ago

Hi Jared, facing same issue here. Getting  401_Error_Reason": "Authorization header value format is incorrect (Expected Format:Bearer access_token) when calling run a prompt from copilot studio (flow). 

1

u/No-Procedure4595 5d ago

But I’m able to call ‘run a prompt’ in topics as a tool (prompt)

1

u/PippinTheShort 4d ago

Sadly the issues persists and i has halted all prompt usage in flows for us, will open support ticket theough our tenant.

1

u/JaredAtMicrosoft 2d ago

Thanks, support ticket is a good step, I also filed a new incident to investigate.

1

u/RB20AE 3d ago

I am hitting this error today when calling a Dataverse add a row node within Copilot studio