web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch Error - Value Mu...
Power Apps
Unanswered

Patch Error - Value Must Be A Data Entity Error

(0) ShareShare
ReportReport
Posted on by 14

Hello,

 

I have a dataverse table (SSE | BDR Risk Managements) which contains four columns from other tables in the dataverse. The app has to allow users to write data in this table (add records). There are input forms allowing to do that. All of the inputs (except "Name") come from lookup tables. Note that there are dropdowns (based on the lookup columns). Only comment is a free text box.

 

When I run this function, I have the error "Value Must Be A Data Entity Error". How can I fix it?

 

thanks,

Marek

 

Patch(
'SSE | BDR Risk Managements',
Defaults ('SSE | BDR Risk Managements'),
{crde1_name: "Patch Test"},
{crde1_comment: Text(DataCardValue2.Value)},
{crde1_Entity: DataCardValue4},
{crde1_Customer: DataCardValue5},
{crde1_priority: DataCardValue3.Selected.Value},
{crde1_ReportDate: DataCardValue6}
)

Categories:
  • daruom Profile Picture
    71 on at

    Hello,

     

    if you are using a form, why use "patch".
    The "SubmitForm" function is more practical

     

    For your question, when you create 1 single record, all your fields must be between "{}".

    Patch(
    'SSE | BDR Risk Managements',
    Defaults ('SSE | BDR Risk Managements'),
    {
    crde1_name: "Patch Test",
    crde1_comment: Text(DataCardValue2.Value),
    crde1_Entity: DataCardValue4,
    crde1_Customer: DataCardValue5,
    crde1_priority: DataCardValue3.Selected.Value,
    crde1_ReportDate: DataCardValue6
    }
    )

     

     With several "{}", as in your example, it is to create several record, example:

    Patch(
    'SSE | BDR Risk Managements',
    Defaults ('SSE | BDR Risk Managements'),
    {
    crde1_name: "Test1",
    crde1_comment: Text(DataCardValue2.Value),
    crde1_Entity: DataCardValue4,
    crde1_Customer: DataCardValue5,
    crde1_priority: DataCardValue3.Selected.Value,
    crde1_ReportDate: DataCardValue6
    },
    {
    crde1_name: "Test2",
    crde1_comment: Text(DataCardValue2.Value),
    crde1_Entity: DataCardValue4,
    crde1_Customer: DataCardValue5,
    crde1_priority: DataCardValue3.Selected.Value,
    crde1_ReportDate: DataCardValue6
    }
    )
  • marekmarek1 Profile Picture
    14 on at

    @daruom thanks for the reply!

    1) What is the submit function, what do you mean? I am quite new to Power Apps...

     

    2) I copied the first patch you put, but it doesn't work either - the same error message...

     

    Edit

    Ok got it with the submit function. The problem here is that I may need to add a user drop down from Office365 and I think for this I need a separate item (input box?)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard