web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 9st81stgpsH06Bu57hVnWx
Power Automate - Using Connectors
Unanswered

The API operation 'PostItem' requires the property 'item/Change_x0020_Reason' to be a string of maximum length '255' but is of length '473'.

Like (0) ShareShare
ReportReport
Posted on 9 Jun 2021 18:00:43 by 4

Using and on premise SharePoint through a gateway and trying to create a new list item with a string character count of over 255 characters.  Is there a way around this maximum limit or would I have to break the string up?

 

This is the error:

 

The API operation 'PostItem' requires the property 'item/Change_x0020_Reason' to be a string of maximum length '255' but is of length '473'.

I have the same question (0)
  • abm abm Profile Picture
    32,585 Most Valuable Professional on 10 Jun 2021 at 00:11:14
    Re: The API operation 'PostItem' requires the property 'item/Change_x0020_Reason' to be a string of maximum length '255' but is of length '473'.

    Hi @Mourad 

     

    Check the length of the property using length() expression. If its more than 255 then use 

    substring() expression to get the first 255 characters.
     
    Thanks
  • Mourad Profile Picture
    4 on 10 Jun 2021 at 04:16:55
    Re: The API operation 'PostItem' requires the property 'item/Change_x0020_Reason' to be a string of maximum length '255' but is of length '473'.

    Thanks but how will that solve getting the data into the SharePoint list?  I need all the data in 1 multi line field in SharePoint..

  • abm abm Profile Picture
    32,585 Most Valuable Professional on 10 Jun 2021 at 09:46:33
    Re: The API operation 'PostItem' requires the property 'item/Change_x0020_Reason' to be a string of maximum length '255' but is of length '473'.

    Hi @Mourad 

     

    Could you please explain bit more about your requirement. The answer I had given is based on the error you reported.

     

    Thanks

  • Mourad Profile Picture
    4 on 10 Jun 2021 at 12:53:55
    Re: The API operation 'PostItem' requires the property 'item/Change_x0020_Reason' to be a string of maximum length '255' but is of length '473'.

    I’m using SharePoint create item using data gathered from a form.  The message states there is limit of 255 characters.  Is there a way to increase that limit?  In my case it’s over 400 characters.  I can split the string but how can I get all the data into SharePoint?

  • grichmond99 Profile Picture
    4 on 24 May 2022 at 14:01:36
    Re: The API operation 'PostItem' requires the property 'item/Change_x0020_Reason' to be a string of maximum length '255' but is of length '473'.

    @Mourad did you ever figure this out? I am experiencing the same issue. Any help appreciated @abm.

  • abm abm Profile Picture
    32,585 Most Valuable Professional on 25 May 2022 at 22:08:40
    Re: The API operation 'PostItem' requires the property 'item/Change_x0020_Reason' to be a string of maximum length '255' but is of length '473'.

    Hi @grichmond99 

     

    Whats the field length of your SharePoint field.  The data you passing is more than the target hence you getting this error. You have two options.

     

    1. Increase the field length in SharePoint

    2. Truncate the data to max length of SharePoint column.

     

    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard

Featured topics

Loading started
Loading complete