cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eyeana Helper II
Helper II

"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
Community Support

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
Community Support

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
Community Support

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

Highlighted
eyeana Helper II
Helper II

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
Community Support

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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,238)