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 Automate
Unanswered

parsing JSON error

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

I am relatively new with Power Automate. I tried to automatically create a new SharePoint site via Power Automate (I literally did what they did here: https://www.c-sharpcorner.com/article/modern-team-site-creation-automation-with-power-automate/#:~:text=Create%20Flow%20to%20automate%20the%20site%20creation&text=Then%20from%20the%20open%20dialog,whenever%20an%20item%20is%20created ) but my flow fails at parsing JSON. The error says: Unexpected character encountered while parsing value: B. Path '', line 0, position 0..

According to the error message this is a new problem. Did anyone see this before and how did you solve it?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @PatrickvanderS,

     

    Can you share a screenshot of the output of the Send an HTTP request to SharePoint action? My guess would be that we need to update the json schema for the parse json action.

     

    Can you also share a screenshot of the row of SharePoint list for site requests which the flow fails (with the fields Title, Alias, etc.). Just double check which values you are using the title and alias fields.

     

  • PatrickvanderS Profile Picture
    6 on at

    Httprequest2.pngHttprequest1.png

  • PatrickvanderS Profile Picture
    6 on at

    Thanks for your reply. This is the full output text:

     

    {
      "d": {
        "CreateGroupEx": {
          "__metadata": {
            "type""Microsoft.SharePoint.Portal.GroupSiteInfo"
          },
          "DocumentsUrl"null,
          "ErrorMessage"null,
          "GroupId""bc644ca5-f550-42ec-bef2-f9fbc624c435",
          "SiteStatus"2,
        }
      }
    }
  • PatrickvanderS Profile Picture
    6 on at

    I added the members to try to add members to the site. So that field is extra.

    Fields.png

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hoi @PatrickvanderS ,

     

    Based on that output I would say this would be the schema of your parse json action. Are you using the same schema? 

     

    {
     "type": "object",
     "properties": {
     "d": {
     "type": "object",
     "properties": {
     "CreateGroupEx": {
     "type": "object",
     "properties": {
     "__metadata": {
     "type": "object",
     "properties": {
     "type": {
     "type": "string"
     }
     }
     },
     "DocumentsUrl": {},
     "ErrorMessage": {},
     "GroupId": {
     "type": "string"
     },
     "SiteStatus": {
     "type": "integer"
     },
     "SiteUrl": {
     "type": "string"
     }
     }
     }
     }
     }
     }
    }

     

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard