cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
eyeana
Level: Powered On

"Not well formatted JSON stream" when seding an http request to SharePoint

Hi,

 

I am trying to modify my flow and tell it to change the Created By column from myself (as the flow owner) to the user's email who  created the item in Sharepoint, in this case, it is Raised By email, following a blogpost by John Liu <http://johnliu.net/blog/2019/2/flowninja-hack-78-modifying-modified-by-and-modified-time-with-micros... However, I am currently getting the warning when Sending an POST HTTP request to SharePoint:

 
["message": "Not well formatted JSON stream.\r\nclientRequestId: dc3f2ed5-f573-40ef-974c-9acb9b80df9c\r\nserviceRequestId: d92e2c9f-f075-a000-4ecc-59b8e4eb5633",
"status": 400,
"errors": ["-1"],
"Microsoft.SharePoint.Client.InvalidClientQueryException"]
 
capture6.PNG
 
What is wrong?
 
 
2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: "Not well formatted JSON stream" when seding an http request to SharePoint

 

Hi @eyeana ,

 

You should add a comma between the two properties:

33.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Community Support Team
Community Support Team

Re: "Not well formatted JSON stream" when seding an http request to SharePoint

 

Hi @eyeana ,

 

Please replace Created by with Author.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: "Not well formatted JSON stream" when seding an http request to SharePoint

 

Hi @eyeana ,

 

You should add a comma between the two properties:

33.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

eyeana
Level: Powered On

Re: "Not well formatted JSON stream" when seding an http request to SharePoint

Hi @v-bacao-msft ,

 

I have added a comma in between the properties. However, when I run the flow, it gives me the warning "Column 'Created_x0020_By' does not Exist". However, the column is there in my SP list. If I target another column, other than the Created by column, the flow works successfully, which is strange .

 

Do you know why this is happening? Can Flow not be able to change the Created By column value?

 

Regards,

I

Community Support Team
Community Support Team

Re: "Not well formatted JSON stream" when seding an http request to SharePoint

 

Hi @eyeana ,

 

Please replace Created by with Author.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,934)