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 function An Unkn...
Power Apps
Answered

Patch function An Unknown Error Occurred

(0) ShareShare
ReportReport
Posted on by 362

I am a total Dataverse table newby and I haven't used the Patch function very often. I'm using it in a couple of places in the app w/out any issues but one instance keeps me giving error. After reading a bunch of articles, I still can't figure out what's wrong. The error I get is a cryptic "An Unknow Error Occurred".

 

Here's my code, applied to the OnSelect property of a button:

 

Patch('DataverseTableName',

LookUp('DataverseTableName',ID=varTaskID),

{Column1:LookUp('UserList',Title=Dropdown_AssignedTo.SelectedText.Value).'User name:Email'.Value},

{Name:TextInput_TaskName.Text},

{Column2:Dropdown1.SelectedText.Value},

{Column3:Value(TextInput1.Text)},

{Column4:Dropdown2.SelectedText.Value},

{'Column5':Value(TextInput2.Text)},

{Notes:TextInput_Notes.Text},

{Completed:Checkbox1.Value},

{DateDue:Label_DueDate})

 

I am afraid the syntax is right... Checked it and rechecked it a bunch of times, so what else could be wrong?

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Gilmour 

    DateDue:Label_DueDate.Text} or

    DateDue:Label_DueDate.Value }

    It is better to use the actual formula that determines the labels value or an input control rather than a label. 

  • Verified answer
    Gilmour Profile Picture
    362 on at

    Thank you @Drrickryp,

     

    You got it! The destination column is a date type column and I was provisioning a text string instead… thank you so much!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard