cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
E_S
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:

E_S_1-1645110265128.png

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). 

E_S_3-1645110912629.png

 

E_S_2-1645110825738.png

 

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

E_S_4-1645111019801.png

 

E_S_5-1645111047965.png

 

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

E_S_7-1645111249504.png

 

 

E_S_6-1645111140810.png

 

Can you give me some advice? 

 

 

54 REPLIES 54
AnnRGM
Advocate I
Advocate I

I submitted a ticket yesterday. This is so frustrating because it's happening on a multi-approval flow that creates an audit trail for SOX compliance. Resubmitting a flow after emails have already been sent and approvals have been made is not just time-consuming, it feels very unprofessional. I guess I will also have to improve the error handling in the flow (but why should I need error handling for sending an email when I've already validated recipient, etc.?)

 

Has this occurred for anyone since Nov 7?

 

One thing that has helped tremendously is the ability to show custom columns in the Power Automate history of flow runs. I can now tell at a glance which flow goes to which SharePoint list item.

Anonymous
Not applicable

@AnnRGM - yes, seeing the columns is an incredible improvement!!  How are you validating email recipient?  
Thank you!  

Thank you @AnnRGM ! That's probably what caused the failures to stop. Haven't had any since ~ 10 PST on 11/7. We use email primarily to communicate rather than approve, thankfully, so most of the impact of this bug was superficial.

Our process is completely internal, so the users are all in our Active Directory. BUT, I found out that just because a user is in AD doesn't mean they are a valid user according to Approvals or Outlook, so I always validate via Office 365.

Had another failures today at 3:55 PST. We use confirmation emails internally and when reps don't get em they're trained to resubmit. the reps resubmit went thru so I didnt have to. MSFT please fix ❤️

binki-dcx
Advocate I
Advocate I

Thanks for filing the ticket, @AnnRGM . If Microsoft has any explanation for the issue, that’d be interesting.

 

I don’t think that email recipient verification is related to this issue at all. I am pretty sure that the action for sending an email does not in any way care about the success of the email’s delivery. All it does is queue a message for sending in Outlook. If it waited for delivery confirmation of some sort, you’d see very long action runtimes. That’s simply not how email normally works.

 

@David_PezzoliI am using “Reply_to_email_(V3)'”. That is the latest version of the action, not one of the deprecated ones. I got the error once. It is in a flow which runs periodically, so there was no surge in volume and my flows do not get close to any of the resource limits, so it being a limit issue specific to my account is out of the question. This appears to be a global service outage of some sort, though it was random and transient enough that it likely only affected a small percentage of calls while it was occurring, making it harder to be noticed.

 

@David_PezzoliFor this error, checking common errors does not make sense. The error itself is “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.'”. For me, the error occurred on the action after it was only running for 1 second. So it is not like a timeout in the request caused the request to be truncated. It is more like the service had an internal error and returned an HTML error response when the connector was expecting JSON—or something of that nature. The letter “R” doesn’t make sense if the issue is actually the server returning an HTML error instead of a JSON one. Maybe the server returned a textual error saying something like “Request failed” and the connector doesn’t even check the Content-Type of the response or HTTP status code before trying to parse the result as JSON. Maybe the connector sent invalid data due to, as I suggested above, writing the headers out of order (the fact that the bad character is a capital letter R suggests either that it is the beginning of the sentence or an HTTP header), or some debug logging making it into the request body.

 

Maybe, just maybe, the “REST API is not yet supported for this mailbox” is the error we are seeing. If the response were a text/plain response with just that message but the connector doesn’t check the response type and just blindly tries to parse it as JSON, one would get the error shown above. However, the explanation for this error clearly describes this as a non-transient error. If the service temporarily incorrectly returned this error (but the connector obscured the error), then there must have been some other service outage or incorrect error handling in the connector or API itself which resulted in the API incorrectly assuming that the user’s account was not set up for RESET access even though it was actually some other transient issue. E.g., maybe Microsoft was deploying an update and, while the REST API was not working, the connector assumed that the seen error indicated that the REST API was disabled when it was really just temporarily down. But, again, how are we supposed to know this was the error from the error message we saw?

 

That is very unlike the nature of the common errors we are supposed to be handling. A proper error should still have a well-formed response or a clear “connection reset” error message if there was actually a lower-layer communication error. If such an error occurred but the connector’s own error handling was failing and, in trying to display the error, encountered this error related to JSON parsing, then we cannot know the actual error because the JSON parsing error is obscuring the actual error. If, as in the OP’s post, there is malformed OData, then the server should respond with a clear message saying so—not give some error which looks like an internal error that is not properly handled and labeled as such. I.e., this is not something that we can solve or fix from our end. Microsoft needs to fix error handling somewhere before we can actually see what is wrong. But this is hard if it is a transient error which is no longer happening.

 

If I need to have retry loops in my flows for this type of thing, that would be just silly. I would expect the action to automatically retry calls that are safe to retry. If the call is expected to fail transiently, the API documentation should clearly explain that for the action and give an explanation of how to detect a transient error and how to retry it. I don’t see this in the Outlook connector documentation. But… if the action is actually safe to retry, that means I have to add a retry loop to many of my flows, complicating them. Again, this complication should be hidden from me. And, this very error is not well-formed enough to determine that it even is a transient error or that retrying is safe.

@nerfherder Thanks for the update...very disappointing to hear that you experienced another failure yesterday.

 

@binki-dcx I agree that the email recipient is not causing the problem. My point is that I shouldn't have to check for an error on a "Send email" step...I've already handled possible error cases before I send the email. Even if I do check for an error, I can't solve the problem in the flow. Not in this particular case, where we have multiple approvals required. Resubmitting the flow generates new approval ids and redundant emails.

 

Just to vent, this error causes me headaches even if we get through the approval steps. If an email near the end of the process fails, SharePoint can't update statuses and the whole audit trail is broken.

 

I'll update this thread when I hear back from Microsoft.

 

@AnnRGM best practice would be to avoid email for any important organizational function other than notifications, as a fall back. That's essentially how we're using it, but may rely heavier on it in future. Not sure if it would work for your org, but there are plenty of vendors with Power Automate connectors for sending text messages.

Dharam2
Helper I
Helper I

 

I am facing same error with below connector:

Send an email (V2)

Office 365 Outlook

Please help me out. This issue is occurring frequently.

 

@Dharam2 seems like this is something that Microsoft needs to fix. Quick question though for you and @AnnRGM , are you all using the same connection across many flows? Or have you used multiple different Outlook connections throughout your flows?

Dharam2
Helper I
Helper I

@nerfherder 

Are you all using the same connection across many flows?

Yes

Or have you used multiple different Outlook connections throughout your flows?

Yes

binki-dcx
Advocate I
Advocate I

@Dharam2Please see if you can open a support ticket with Microsoft. I do not expect them to be monitoring this thread, but we need their input. If the issue is happening frequently for you (I only saw it once on November 7 myself), that might help them in identifying the issue. And, more importantly, it raises their awareness. Thanks!

Dharam2
Helper I
Helper I

@binki-dcx Thank you for your reply. I will try to open a ticket with Microsoft.

Are you all using the same connection across many flows?

Our organization has 40,000 employees, so I have no way of knowing if other flows are failing. I only have one flow that is failing but my other flows run infrequently.

 

Or have you used multiple different Outlook connections throughout your flows?

This flow uses the Send an email (V2) connector six different times throughout the approval process. Sometimes the email is a notification, sometimes the email contains approval links. The email always contains an HTML table of data.

 

I shared this thread with the Microsoft engineer assigned to my ticket. I've just sent an email requesting an update and requesting they view this thread again.

Are you all using the same connection across many flows?

Our organization has 40,000 employees, so I have no way of knowing if other flows are failing. I only have one flow that is failing but my other flows run infrequently.

 

Or have you used multiple different Outlook connections throughout your flows?

This flow uses the Send an email (V2) connector six different times throughout the approval process. Sometimes the email is a notification, sometimes the email contains approval links. The email always contains an HTML table of data.

 

I shared this thread with the Microsoft engineer assigned to my ticket. I've just sent an email requesting an update and requesting they view this thread again.

AnnRGM
Advocate I
Advocate I

The MS rep I'm working with has reviewed this thread and replied to me "I haven’t seen any mentions of an uptick in cases related to this issue you are experiencing." They have a meeting on this topic today with other MS resources. 

 

@Dharam2 Could you share which dates this occurred on? And what you mean by frequent? Were you able to open a ticket? Thanks.

 

Again, I'll update this thread if I get more information.

Anonymous
Not applicable

Thank you for your efforts, @AnnRGM

 

All of our errors of this type have come from simple Outlook Send an Email, V2 actions.  Re-submitting the workflow from the PA interface ALWAYS works.  We have about 40 simple and frequently-run workflows that just send notifications.  We've had about 20 of these errors (on 4 or 5 different workflows) since 11/3, including one so far today.    

nerfherder
Advocate II
Advocate II

nerfherder_0-1668115006202.png

@AnnRGM / @Dharam2 / @Anonymous / @binki-dcx - I am using the same "connection" (api key?) across 80+ flows. I used to have about a dozen options under "My connections" here and would spread them out across flows. I stopped doing that when I realized I didn't need to, but now I'm reconsidering and thinking maybe this is a design flaw we can correct by splitting the work of our flows across multiple connections? Not sure, haven't had a failure yet today (related to this), have refreshed the credentials on my one connection but experienced another type R failure after.

I am quite certain that sharing a connection is unrelated to this issue. I encountered the error and my account has very little activity. Making more connections when you don’t need to means more maintenance/work for you…

David_Pezzoli
Kudo Collector
Kudo Collector

Hi folks, it's time to open a ticket to Microsoft about this generic error. At the moment I think it is the only solution. 

Helpful resources

Announcements

April 2024 Commnuity Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS   Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!   Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!       Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the image below to find out more!   UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!   European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!     Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!     For more events, click the image below to visit the Microsoft Community Days website.      

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!

Tuesday Tip: Getting Started with Private Messages & Macros

Welcome to TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   This Week's Tip: Private Messaging & Macros in Power Apps Community   Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member!   Our Knowledge Base article about private messaging and macros is the best place to find out more. Check it out today and discover some key tips and tricks when it comes to messages and macros:   Private Messaging: Learn how to enable private messages in your community profile and ensure you’re connected with other community membersMacros Explained: Discover the convenience of macros—prewritten text snippets that save time when posting in forums or sending private messagesCreating Macros: Follow simple steps to create your own macros for efficient communication within the Power Apps CommunityUsage Guide: Understand how to apply macros in posts and private messages, enhancing your interaction with the Community For detailed instructions and more information, visit the full page in your community today:Power Apps: Enabling Private Messaging & How to Use Macros (Power Apps)Power Automate: Enabling Private Messaging & How to Use Macros (Power Automate)  Copilot Studio: Enabling Private Messaging &How to Use Macros (Copilot Studio) Power Pages: Enabling Private Messaging & How to Use Macros (Power Pages)

Tuesday Tip: Subscriptions & Notifications

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!   This Week: All About Subscriptions & Notifications We don't want you to a miss a thing in the Community! The best way to make sure you know what's going on in the News & Announcements, to blogs you follow, or forums and galleries you're interested in is to subscribe! These subscriptions ensure you receive automated messages about the most recent posts and replies. Even better, there are multiple ways you can subscribe to content and boards in the community! (Please note: if you have created an AAD (Azure Active Directory) account you won't be able to receive e-mail notifications.)   Subscribing to a Category  When you're looking at the entire category, select from the Options drop down and choose Subscribe.     You can then choose to Subscribe to all of the boards or select only the boards you want to receive notifications. When you're satisfied with your choices, click Save.     Subscribing to a Topic You can also subscribe to a single topic by clicking Subscribe from the Options drop down menu, while you are viewing the topic or in the General board overview, respectively.     Subscribing to a Label Find the labels at the bottom left of a post.From a particular post with a label, click on the label to filter by that label. This opens a window containing a list of posts with the label you have selected. Click Subscribe.     Note: You can only subscribe to a label at the board level. If you subscribe to a label named 'Copilot' at board #1, it will not automatically subscribe you to an identically named label at board #2. You will have to subscribe twice, once at each board.   Bookmarks Just like you can subscribe to topics and categories, you can also bookmark topics and boards from the same menus! Simply go to the Topic Options drop down menu to bookmark a topic or the Options drop down to bookmark a board. The difference between subscribing and bookmarking is that subscriptions provide you with notifications, whereas bookmarks provide you a static way of easily accessing your favorite boards from the My subscriptions area.   Managing & Viewing Your Subscriptions & Bookmarks To manage your subscriptions, click on your avatar and select My subscriptions from the drop-down menu.     From the Subscriptions & Notifications tab, you can manage your subscriptions, including your e-mail subscription options, your bookmarks, your notification settings, and your email notification format.     You can see a list of all your subscriptions and bookmarks and choose which ones to delete, either individually or in bulk, by checking multiple boxes.     A Note on Following Friends on Mobile Adding someone as a friend or selecting Follow in the mobile view does not allow you to subscribe to their activity feed. You will merely be able to see your friends’ biography, other personal information, or online status, and send messages more quickly by choosing who to send the message to from a list, as opposed to having to search by username.

Users online (5,459)