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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Network error when usi...
Power Apps
Unanswered

Network error when using Patch function: Length must be between 0 and 100

(1) ShareShare
ReportReport
Posted on by 78

Whist trying a simple patch function in Apps I am getting this error. I am using a checkbox and the code for OnCheck is as follows:

Patch(DespatchLines_1, Defaults(DespatchLines_1), {Despatch_RMA:ThisItem.RMAAutoNo, Despatch_PN:ThisItem.Product, Despatch_PO:ThisItem.'PO#', Despatch_Serial:ThisItem.'Serial #',Despatch_Desc:ThisItem.'Product Description' ,DespatchL_RDN:Header.LastSubmit.Despatch_No})

 

The strange thing is that I am using an almost identical function in another app and that works fine.

 

Looking forward to your help.

 

 

Simon

Categories:
  • Federico_Oriani Profile Picture
    60 on at

    Hello SumoTech,

    The problem is that one of the fields within the Patch function has a maximum limit of 100 characters, and it seems that during field compilation, you have exceeded this limit.

    Could you please try again, ensuring that each field has a maximum of 10 characters?

    Just for test purpuse.

    Best Regards,
    Federico



  • KD-24070946-0 Profile Picture
    13 on at
    Hi Simon,
     
    I get the same error sometimes when moving data from SharePoint lists into Dataverse tables.

    I have found that adding the following function to set a variable immediately after the patch statement sometimes can show me the column which caused the issue, but it doesn't seem to be 100% reliable and sometimes shows nothing.
     
    Concat(Errors(Bookings), Char(13) & Message & " (" & Column & ") " & Error)
     
    It can be useful in pointing you in the right direction, especially if you have lots of columns in the Patch statement. 
     
    If this doesn't work I usually end up building two collections and checking the length of every column of incoming data which could be the cause.
     
    Good luck!
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard