Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Unanswered

Patch function is not working showing network error

(0) ShareShare
ReportReport
Posted on by 4

@RezzaB , @ShaneYoung , @DruvRn 

 

 

I have a SharePoint list name Inventory and another SharePoint  list name Desktop_Screen I have created a lookup column name Employee Code based on the  title value of Inventory List as also based on the Employee Code column i have another reference column name location whose value is depend on the employee code value , there are two others columns one is employee name which is  a people picker column  and another column name department which is a drop down column as now i created  a screen name desktop on visible i created a collection Clear Collect (inventorydata, Inventory) as now based on that i filtered my employee code value as  filter(inventorydata , title) , others columns as  

'Employee Name':  LookUp(inventorydata,ComboboxCanvas1.Selected.Title in Title,EmployeeName.DisplayName),
Employee Code: Location :  LookUp(inventorydata,ComboboxCanvas1.Selected.Title in Title,Location),
Department : - LookUp(inventorydata,ComboboxCanvas1.Selected.Title in Title,Department.Value)
 
now i my patching these values as 
Patch(
    Desktop_Screen,
    Defaults(Desktop_Screen),
    {
        EmployeeCode: {
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
            Id: ComboboxCanvas1.Selected.ID,
            Value: ComboboxCanvas1.Selected.Title
        },
        'Employee Name': LookUp(
            inventorydata,
            Title = ComboboxCanvas1.Selected.Title,
            EmployeeName
        ),
        Department: LookUp(
            inventorydata,
            ComboboxCanvas1.Selected.Title in Title,
            Department
        ),
        'EmployeeCode: Location': {
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
            Id: ComboboxCanvas1.Selected.ID,
            Value: ComboboxCanvas1.Selected.Location
        },
        Title: DataCardValue1.Value,
        ModelNumer: DataCardValue3.Value,
        SerialNumber: DataCardValue4.Value,
        HardDisk: DataCardValue5.Value,
        RAM: DataCardValue11.Value,
        Configuration: DataCardValue12.Value,
        LEDModelNo: DataCardValue13.Value,
        LEDSerialNo: DataCardValue14.Value,
        Vendor: DataCardValue15.Value,
        Status: DataCardValue16.Value,
        DateofPurchased: DataCardValue17.SelectedDate,
        IssuedDate: DataCardValue18.SelectedDate,
        Value: Value(DataCardValue19.Value)
    }
)  
 
also Title column of desktop screen sharepoint list is auto generated id column whose formula is
 "Desk-"&Text(Max(Filter(Desktop_Screen,StartsWith(ID,"Desk-")),Value(Mid(ID,6)))+1,"[$-en-US]0")
on select the submit button it shows error related to network error when using patch function :  The specified column is generated by server and cannot be specified .  
 
 
 
 
 

 

 

@RezzaB 

Categories:
  • AllanDeCastro Profile Picture
    412 Most Valuable Professional on at
    Re: Patch function is not working showing network error

    Hello,

    This error typically occurs when you're trying to insert a value into a column that is automatically generated by the server, such as an identity column or a column with a default value.

    For example, if you have a table with an identity column, you don't need to specify a value for that column when inserting a new record. The database server will automatically generate a unique value for that column.

    To resolve this error, valid or not if the column mentioned is populated automatically or not by SharePoint and either remove the column from your patch or update the SharePoint Table definition (if possible).

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Governance and Administering

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 9 Super User 2025 Season 1

#2
bscarlavai33 Profile Picture

bscarlavai33 5 Super User 2025 Season 1

#3
getsplash Profile Picture

getsplash 2

Overall leaderboard

Featured topics