web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / The response is not in...
Power Automate
Unanswered

The response is not in a JSON format. Cannot read server response.

(0) ShareShare
ReportReport
Posted on by 2

I am trying to run the built in flow for Microsoft's Insider Risk Management - "Notify manager of insider risk alerts for user." The flow is failing with error 

 

Action 'Get_Insider_Risk_Management_case' failed

{
  "error": {
    "code"403,
    "source""flow-apim-msmanaged-na-westus2-01.azure-apim.net",
    "clientRequestId""[redacted]",
    "message""The response is not in a JSON format.",
    "innerError""Cannot read server response."
  }
}
 
 
Has anyone else experienced this error/ figured out a way around it? This is triggered when a case is created and I manually have a case selected to run the flow. 
Categories:
I have the same question (0)
  • shoog Profile Picture
    2,164 on at

    The (HTTP) code 403 means access forbidden, so this will be a permission issue.

  • barrow Profile Picture
    2 on at

    Thanks for the reply.  I am wondering if it is an issue that the account running the flow is different from the account used for the connections?

     

    For instance, account aGoodguy is the owner of the flow and used to connect to Microsoft 365 Compliance, Outlook, and Office 365 Users.

     

    Account aBadguy is set up as a Run-only user and for the connections is told to use aGoodguy's connections.

     

    Abadguy runs the flow and gets the 403. I've even seen this error on trying to resubmit:

     

    Request to Azure Resource Manager failed with error: '{"error":{"code":"InvokerConnectionOverrideFailed","message":"Could not find any valid connection for connection reference name 'shared_microsoft365compliance_2' in APIM tokens header."}}'.

  • MTGraves Profile Picture
    5 on at

    I am having a similar error.  I have a flow that ran successfully for me, but when I have a 'run only' user run the flow it fails.  I checked the connections and it is connected as me.  Below the output it says Connection: <my email address> with a green checkbox.

     

    "error": {
    "code": 401,
    "source": "flow-apim-europe-001-westeurope-01.azure-apim.net",
    "clientRequestId": "redacted",
    "message": "The response is not in a JSON format.",
    "innerError": "Cannot read server response."
  • shoog Profile Picture
    2,164 on at

    @MTGraves HTTP 401 means unauthorized, so the user running the flow is not authorized for the datasource used.

     

    An instant flow will run under the users credentials, not the credentials you used to configure the flow.

  • MTGraves Profile Picture
    5 on at

    Thanks shoog. I checked that the run only user has access to the workspace, data set and report. There was an additional workspace I had to add them to for the actual paginated reports and the job ran successfully.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard