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 : aCMP67efHKe1qQ9+gkQsHc
Power Apps - Building Power Apps
Unanswered

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

Like (1) ShareShare
ReportReport
Posted on 24 May 2023 15:48:43 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

I have the same question (0)
  • KD-24070946-0 Profile Picture
    13 on 06 Aug 2024 at 15:39:17
    Network error when using Patch function: Length must be between 0 and 100
    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!
     
  • Federico_Oriani Profile Picture
    60 on 24 May 2023 at 15:52:33
    Re: Network error when using Patch function: Length must be between 0 and 100

    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



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…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 752 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 472

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 358 Super User 2025 Season 2

Last 30 days Overall leaderboard