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 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:
I have the same question (0)
  • 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard