Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Error: Http request failed: the content was not a valid JSON. Error while parsing JSON: 'Unexpected character encountered while parsing value: R. Path '', line 0, position 0.'

I am trying to write a flow and I get this error:

Http request failed: the content was not a valid JSON. Error while parsing JSON: 'Unexpected character encountered while parsing value: R. Path '', line 0, position 0.'


The flow it's really simple, variables and an execute query.

I am trying to get texts from power app and use them to modify a string variable in power automate. Then I use the modified string variable as a query. 


I start with a trigger from power apps and I specify what I want to save as a variable and use in power automate:


Then I have a variable to save my query as a string and I use the previous variable to modify it (I find it in the required fields). 





Here it seems that everything works, but I do not understand what  is "Impostavariabile_valore". 





The error appears in the last step, when I try to execute the query






Can you give me some advice? 




Accepted Solutions
Kudo Collector
Kudo Collector

I think it is a generic flow error:

Try to paste in the correct format the query directly into the action: "Esegui una query SQL"

In this way, you might get the exact new error of your query. 

Here is another solution using Try/Catch in order to detect a specific error:


View solution in original post

Regular Visitor

**bleep**, I occur the same error!

Kudo Collector
Kudo Collector

I think it is a generic flow error:

Try to paste in the correct format the query directly into the action: "Esegui una query SQL"

In this way, you might get the exact new error of your query. 

Here is another solution using Try/Catch in order to detect a specific error:


Kudo Collector
Kudo Collector

Try to using correct OData format, as example for SQL Sever Get Rows filter query:

ERROR: colRowId eq QR000001

OK: colRowId eq 'QR00001' 

the second will be accepted because you explain with quotes '' it is a string

New Member

In my case, it worked putting the name of the O'DATA Filter column between quotation marks - because it has a graphic accent (pt-br) and spaces - simple as well as the value you want to compare.
'N_x00fa_merodes_x00e9_rie' eq '0ARYBJEM30001W'

Remembering: You must inform the column name as it appears when using the field in an expression.

Advocate I
Advocate I

I got this same exact error on a flow which normally works fine. If I understand correctly, the remote endpoint is claiming that the input the flow provided is malformed. There is no way for us to debug this—it requires Microsoft to look into it.


It could be that some logging in the flow stuff gets written to the request. Or the flow request logic is written in a way which is not threadsafe so that an HTTP header shows up in the middle of the request body.


Here’s my error in a request to Outlook’s Reply to Email (V3):


Http request failed: the content was not a valid JSON. Error while parsing JSON: 'Unexpected character encountered while parsing value: R. Path '', line 0, position 0.'

@binki-dcx I've gotten that exact error 4 separate times today, on 4 separate flows, all on the "Send an email from a shared mailbox (V2)" action part of them. 

All of them went through on a resubmit, so a good use case for a custom workflow failure monitoring solution and hopefully something that knocks it off soon.

My advice is take glance the correct syntax of: the expressions, OData query or SQL query. Sometimes it's necessary add the quotes '....' and the blank spaces to the right place. So, look for similar examples on the Web that use the same steps. Check carefully the exact syntax of the steps used in the Web examples. Make sure the Web examples are recent blogs (with most PA updated version).

@nerfherderInteresting. Sounds like that particular service was broken for a while then.


@David_PezzoliPlease understand that this error comes up when Power Automate itself is having a temporary error or incorrectly handling transient errors from connected services. It has no relation to the correctness of our flows or expressions in our data. Did you read the thread or ever experience this error yourself?

Kudo Collector
Kudo Collector

Maybe it could be an error due to a recent update in Power Automate of the version of the action? From my experience, when a new version of the action is released, sometimes the syntax also changes ....however, I agree  with you that this is too general a mistake and sometimes temporary!

Advocate II
Advocate II

@binki-dcx Never had this error before the other day, just had it again on a 5th flow. Resubmitting without changing source code results in successful run (error cannot be replicated?).


@David_Pezzolithere are not any new actions, expressions, or queries of the SQL or ODATA variety here. just plain dynamic content from one action to the next. 


whats the trick to getting someone from microsoft to see/respond to this thread?



Advocate II
Advocate II

seems to be related to the Outlook connector

@nerfherder you should open a ticket to Microsoft Power Automate support from Power Platform panel.

Advocate III
Advocate III

Happened here too, on multiple flows, intermittently, between Nov 3 and 7, when calling the Outlook Email action.  when re-submitting today, all flows ran without error.  Took me 2 hours to find them all and re-submit.

@David_Pezzoli lol i wish our microsoft admins had allowed it, our environment doesnt display in the little widget and im not 100% sure the virtual agent made a support request. The pace of these failures has slowed/dropped to zero so maybe they saw our posts here and fixed whatever it is. 


Thanks for sharing the Microsoft Learn documentation! I went through it and didn't see a reference to this specific error or it being a known issue on the actions I'm using (shared inbox email send) that have been failing.

@SukieP there's a way to build custom error notifications in at the end of your flow so that these errors won't take you hours to search and fix. we use the "workflow" expression to pull out the important bits of dynamic content we need to make a link to the specific flow run that failed, and use configure run after failed to make us an individual notification on every failure. This way we aren't waiting around till Sunday or whenever the PA generated failure notification goes out.

@David_Pezzoli the only thing i can think of is that I'm only using one connection across 80+ flows for outlook, so its just getting overwhelmed by volume and sometimes throwing this error

Thank you @nerfherder.  We have just begun the task of adding custom error notifications to all of our flows – we have a long way to go! 


@SukieP yes but definitely worth it because of SLT. what we did is we came up with the design/layout we wanted in its own, manual flow. then we boxed up all the actions in a Scope and copy pasted it into every flow we're running. no need to manually add each time, love this tool!

Helpful resources


Power Platform Connections - Episode 7 | March 30, 2023

Episode Seven of Power Platform Connections sees David Warner and Hugo Bernier talk to Dian Taylor, alongside the latest news, product reviews, and community blogs.     Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.  

Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.  Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218  tom_riha      theapurva  takolota     Akash17  momlo     BCLS776  Shuvam-rpa     rampprakash  ScottShearer     Rusk  ChristianAbata     cchannon  Koen5     a33ik  Heartholme     AaronKnox  okeks      Matren   David_MA     Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas      zuurg    rubin_boer   cwebb365   Dorrinda   G1124   Gabibalaban   Manan-Malhotra   jcfDaniel   WarrenBelz   Waegemma   drrickryp   GuidoPreite    If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated. 

Register now for the Business Applications Launch Event | Tuesday, April 4, 2023

Join us for an in-depth look into the latest updates across Microsoft Dynamics 365 and Microsoft Power Platform that are helping businesses overcome their biggest challenges today.   Find out about new features, capabilities, and best practices for connecting data to deliver exceptional customer experiences, collaborating, and creating using AI-powered capabilities, driving productivity with automation—and building towards future growth with today’s leading technology.   Microsoft leaders and experts will guide you through the full 2023 release wave 1 and how these advancements will help you: Expand visibility, reduce time, and enhance creativity in your departments and teams with unified, AI-powered capabilities.Empower your employees to focus on revenue-generating tasks while automating repetitive tasks.Connect people, data, and processes across your organization with modern collaboration tools.Innovate without limits using the latest in low-code development, including new GPT-powered capabilities.    Click Here to Register Today!    

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.   Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.      Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today:   

Users online (3,396)