Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

network error when using patch function

(1) ShareShare
ReportReport
Posted on by 43
Hello:
 
I have a parent table and a child table for a canvas app, both are dataVerse tables. there is no error when adding a new item with child table data, bu when modifying child table ,like adding a new line to child table, i'm getting an error saying
"network error when using patch function: the column "unique identifier" is generated by the server but can't be specified"
 
column in the error message is the unique identifier of the child table.
 
i'm saving the new line to a collection which is already preloaded with existed lines in the child table on "On visible" of the screen, so i can patch it to the child table on "On select" of the button.
 
i'm also loading unique identifier to the collection on "On visible", and i'm checking if the UID is empty in the collection before patching a new line to the child table.
 
 
 
I tried creating a new chilld table, but still the same error.
 
any helpful suggestions please.
  • Sammen Profile Picture
    43 on at
    network error when using patch function
    I don't think i'm generating UID, i'm only loading the UID for existed child table data, i have collection column name called id to load the UID from the child table, i'm checking if that is blank in the collection to patch new line item as new, you can see in the below patch code.
     

    ForAll(
        colexistagentlines,
        If(
            IsBlank(ThisRecord.id),
            Patch(
                'Agents',
                Defaults('Agents'),
                LookUp(
                    'Agents',
                    Parent_ID = ThisRecord.Parent_ID
                ),
                {
                    Name:ThisRecord.name,
                    PhoneNumber:ThisRecord.phonenumber,
                    Address:ThisRecord.adress,
                    Salary:ThisRecord.salary,
                  Line_No:ThisRecord.line_no,
                    Parent_ID:ThisRecord.parent_id
             }
            )
        )
    );
  • Suggested answer
    Michael E. Gernaey Profile Picture
    41,020 Super User 2025 Season 1 on at
    network error when using patch function
    HI,
     
    You will need to share the code.
     
    however, I can tell you this. Without even seeing your code, you are sending in the Unique Id for the New Row, you cannot.
     
    Please share your code, and stop generating the GUID for the new Row, let the System do it.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard