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 / Send HTTP Request to S...
Power Automate
Unanswered

Send HTTP Request to Sharepoint - ERROR: Invalid JSON. A token was not recognized in the JSON content.

(0) ShareShare
ReportReport
Posted on by 81

I am attempting to use the Send an HTTP Request to Sharepoint action to create a new list on a Sharepoint site. Action below: 

Action.PNG

 

 

 

 

 

 

 

 

 

It is giving me the following error:

{
  "status"400,
  "message""Invalid JSON. A token was not recognized in the JSON content.\r\nclientRequestId: 4c6da6e2-efaf-4d99-b409-a50257308f2f\r\nserviceRequestId: 8ce0939f-0047-b000-aa93-aaab61487ba1",
  "source""https://<<my site url>>",
  "errors": [
    "-1",
    "Microsoft.SharePoint.Client.InvalidClientQueryException"
  ]
}
 
I am new to REST interaction and json, completely. Anyone 
Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    Hello,

     

    Please modify json as below. Basically we dont need the _metadata tag that is there in your json.

    {
    "AllowContentTypes": true,
    "BaseTemplate": 100,
    "ContentTypesEnabled": true,
    "Description": "",
    "Title": ""
    }

  • ZachJayy Profile Picture
    81 on at

    @annajhaveri @My first iteration of this was written exactly how you have it there. I still received this same error. I added the metadata tag hoping it might help (after seeing it on an online guide). I’ll remove it, but this error still persists. Other ideas?

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    okay, what is the value of New Hire Name, may be that is creating issue?

  • ZachJayy Profile Picture
    81 on at

    @annajhaveri New Hire Name is pulling a text string with a space in it. Formatted like 'First Last'

    It's a dynamic content coming from a Microsoft Forms submission.

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    In the screenshot that you gave, i see that you dont have quotes around the value of title, please put the quotes around value for title.

    issue1.png

  • ZachJayy Profile Picture
    81 on at

    @annajhaveri I've fixed that with single-quotes and removed that metadata line to rerun, now we're just timing out? 

  • ZachJayy Profile Picture
    81 on at

    @annajhaveri my mistake - it looks like that piece is working! A precious attempt had successfully created the list so all subsequent flows were timing out since the name was taken.

    A new question, if I can? Again - new to JSON. I need a followup action to send new JSON code to create columns for that list. This one is now failing with a new error:

    Invalid JSON. The property name '' is not valid. The name of a property cannot be empty.
    clientRequestId: c5843b22-6b07-4f76-a3c2-a0d57f158631
    serviceRequestId: d0c2949f-30e8-b000-b1c3-2437da3b1d9c

    Screenshot below:
    New Error.PNG

  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    Hello @ZachJayy ,

     

    I think you need to do a separate Sent HTTP Request action for each column that you need to create.

     

    Thanks,

    Anna Jhaveri

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