cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate III
Advocate III

Patch An unknown error occurred

I am following the tutorial by Michael Blythe called The Power of SharePoint and am running into the following issue.

 

I have a button with the following OnSelect

 

Patch(ProjectDetails, LookUp(ProjectDetails, ID=Gallery1.Selected.ID), {PMAssigned:TextInput1})

 

 

When i click the button, i get feedback that something has occurred, however the SP list item is unchanged.

 

 support1.png

 

 If you hover over the highlighet elements, it just says an unknown error has occurred. I have validated that the correct names for the gallery and textbox and button all have the correct names being referrenced.

 

An unknown error has occured.

 

Can you help? Also, What are some good ways to debug an app?

14 REPLIES 14

I attempted to show the values... and also renamed teh gallery to see if that would help.

showvalues.png

valueofid.png

valueoftext.png

Now i feel stupid. i figured out the issue. 

 
Patch(ProjectDetails, LookUp(ProjectDetails, ID=Gallery1_1.Selected.ID), {PMAssigned:TextInput1.Text})
 
i was missing .Text after TextInput1
 
Fail.
 
Thanks for your help everyone. 

View solution in original post

Wahahaha, You beauty. Thanks for that.

Something so small can so easily be missed.

Anonymous
Not applicable

Just wanted to say that your fail was my fail today and I learned from my mistake by learning from your mistake. 🙂

Resolver I
Resolver I

Thanks for posting that solution, that was exactly what I needed to read to get past the same error!

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (71,614)