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 / I'm getting an error w...
Power Apps
Unanswered

I'm getting an error while I'm doing a patch the error is: DispName: The specified column is generated by the server and cant be specified

(0) ShareShare
ReportReport
Posted on by 56

Hi,

 

i was checking my app's patch system this morning and I found it was giving me this error: DispName: The specified column is generated by the server and cant be specified. and i dont know how to fix it anyway this is the code i have: 

 

Patch(Visits, Defaults( Visits ), {
 DSA_x002d_code: scannerRes,
 Title: LookUp(database, 'DSA-code' = scannerRes).Name,
 'Location: Name': location.Selected.Value,
 'Date/Time': Now(),
 Level: LookUp(database, 'DSA-code' = scannerRes, level),
 'signIn/signOut': "Signed In"
});

 

and this is the SharePoint list I have been patching to:

Harrison_Ellem_0-1632355302859.png

so if anybody could help me thank you in advance.

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Harrison_Ellem 

     

    Looks like Location is a lookup field. So First try without Location lookup to find the error

    Patch(Visits, Defaults( Visits ), {
     DSA_x002d_code: scannerRes,
     Title: LookUp(database, 'DSA-code' = scannerRes).Name,
     'Date/Time': Now(),
     Level: LookUp(database, 'DSA-code' = scannerRes, level),
     'signIn/signOut': "Signed In"
    });

     

    And If Location is lookup field then try this

    Patch(Visits, Defaults( Visits ), {
     DSA_x002d_code: scannerRes,
     Title: LookUp(database, 'DSA-code' = scannerRes).Name,
     'Location': {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: location.Selected.Id,
     Value: location.Selected.Value
     },
     'Date/Time': Now(),
     Level: LookUp(database, 'DSA-code' = scannerRes, level),
     'signIn/signOut': "Signed In"
    });

     

    If this not works then Please let us know the field types to helo troubleshoot further

  • Harrison_Ellem Profile Picture
    56 on at

    the column types are:

    DSA-code = single line of text

    Name/Title = single line of text

    Location = location

    Date/Time = date

    level = choice

    signIn/signOut = single line of text

    location: name = sharepoint wont let me see what type of column but it not a lookup column

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Harrison_Ellem 

     

    We need to try one by one. Try this without Location

    With({_item:LookUp(database, 'DSA-code' = scannerRes)},
    Patch(Visits, Defaults(Visits), {
     DSA_x002d_code: scannerRes,
     Title: _item.Name,
     'Date/Time': Now(),
     Level: {Value : _item.level},
     'signIn/signOut': "Signed In"
    }));

     Let me know this works or not

  • Harrison_Ellem Profile Picture
    56 on at

    this gives me the error of Title: the field 'Tittle' is required

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Looks like no DSA Code for the "scannerRes" that you are looking for. What's your expectation if the DSA code does not exists in the database.?

     

    In this case, the Title will be DSA code. If DSA code is not found then scannerRes by using Coalesce(_item.Name,scannerRes)

     

    With({_item:LookUp(database, 'DSA-code' = scannerRes)},
    Patch(Visits, Defaults(Visits), {
     DSA_x002d_code: scannerRes,
     Title: Coalesce(_item.Name,scannerRes),
     'Date/Time': Now(),
     Level: {Value : _item.level},
     'signIn/signOut': "Signed In"
    }));

     

  • Verified answer
    Harrison_Ellem Profile Picture
    56 on at

    I ended up having to redo the SharePoint list and and keep the field called "Title" since it wouldn't let me re-add 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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard