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 / An unexpected 'StartOb...
Power Automate
Unanswered

An unexpected 'StartObject' node was found when reading from the JSON reader. A 'PrimitiveValue' node was expected.

(0) ShareShare
ReportReport
Posted on by 89

Hello All,

 

I am receiving the following error message when adding a picture to a SharePoint image list column. This was working before.

 

An unexpected 'StartObject' node was found when reading from the JSON reader. A 'PrimitiveValue' node was expected.

 

stormin_30_0-1609184766878.png

 

Any insights would be appreciated.

 

Thanks,

 

Norm

 

 

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @stormin_30 

    Have you changed any SharePoint list column value type or nullable?

    Regards,

    Ferran

  • stormin_30 Profile Picture
    89 on at

    Hi @fchopo,

     

    Thanks for responding. The column (named Picture) has always allowed null and has always been an image type.

    Have you experienced this error before?

     

    Thanks.

     

    Norm

  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @stormin_30 

    I did a test on my side and I have the same exact problem... :S I'll do some other tests and let you know.

    Regards,

    Ferran

  • stormin_30 Profile Picture
    89 on at

    Thanks, @fchopo I appreciate it.

  • CU09091757-0 Profile Picture
    299 on at

    @fchopo  Any solution to this issue?

     

  • Deaked Profile Picture
    4 on at

    Was there ever a solution to this issue?

     

  • stormin_30 Profile Picture
    89 on at

    I don't recall what the fix was but I did write a blog post about the Flow pattern was maybe the fix is included. Snippet below and URL to blog for context:

    https://normyoung.ca/2020/04/24/build-a-safety-issue-solution-using-sharepoint-and-power-automate-part1/

     

    • Add a SharePoint “Send an HTTP request to SharePoint” action
      • Set it to your site.
      • Set the “Method” to “Post”.
      • Set the “Uri” to “_api/web/lists/GetByTitle(‘Safety Issue‘)/items(ID).
        • Safety Issue is the external name of the list, note the space!
        • ID is from the “Create item” action!
      • Set the “Headers” to (using text mode):
        {
        "Content-Type": "application/json;odata=verbose",
        "X-HTTP-Method": "MERGE",
        "IF-MATCH": "*"
        }
      • Set the “Body” to:
        {'__metadata': {'type':'SP.Data.SafetyIssueListItem'},'Picture':
        {'Description': 'Timestamp.png',
        'Url': 'AbsoluteUri'}
        }
        • Timestamp is “Timestamp” from the “Manually trigger flow” trigger.
        • AbsoluteUri is “AbsoluteUri” from the “Add attachment” action.
        • Important there are single quotes around ‘Timestamp.png’ and ‘AbsoluteUri‘.
  • Deaked Profile Picture
    4 on at

    Thanks for the reply. Same error unfortunately however i have logged a ticket with support 🙂

  • helloAndre Profile Picture
    27 on at

    DId you ever get this solved with support? Having the same issues

     

    ---

    Update I thought I've not got a solution

  • helloAndre Profile Picture
    27 on at

    I used the solution in this video:
    https://www.youtube.com/watch?v=y-2iDrfgvfw

    But updated the code to update an existing record:

     

    Uri:

    _api/web/lists/getbytitle('Branch List')/items(*DynamicListItemIDNumber*)

     

    Headers: 

    Screenshot 2023-07-10 at 02.36.21.png

     

    Body:

     

    {
    	"__metadata": {
    		"type": "*ListName*"
    	},
    	"*ColumnName*": "{\"type\":\"thumbnail\",\"fileName\":\"*FileName*\",\"fieldName\":\"*ColumnName*\",\"serverUrl\":\"*SharePointURL*\",\"serverRelativeUrl\":\"*ServerRelativeURL*/*FileName*\"}"
    }

    Examples:

    ListName: SP.Data.My_x0020_StakeholdersListItem

    • You can find this by searching your the code at this directory:
      • If you're in your own Space:  https://*domain*.sharepoint.com/_api/web/lists/
      • If you're in a Teams Space: https://*domain*.sharepoint.com/sites/*msteams_00aa00*/_api/web/lists/

    ColumnName: Pictures

    FileName: File Name.jpg

    SharePointURL:

    ServerRelativeURL: /SiteAssets/Lists/aaa000aa-a0a0-a0a0-a0a0-0aaa00a0a00a

     

     

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard