cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate III
Advocate III

Re: Patch An unknown error occurred

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

14 REPLIES 14
Highlighted
Microsoft
Microsoft

Re: Patch An unknown error occurred

Can you provide the Fiddler trace for when this occurs?  Thanks.

Highlighted
Advocate III
Advocate III

Re: Patch An unknown error occurred

just post into a reply?

Highlighted
Advocate III
Advocate III

Re: Patch An unknown error occurred

removed content for privacy.

Highlighted
Power Apps
Power Apps

Re: Patch An unknown error occurred

From our telemetry it would appear that some of the formulas entered may be causing a circular reference, for example:

Textbox1.Text = TextBox2.Text

and

Textbox2.Text = TextBox1.Text

 

that would cause a "loop".

 

Could you double check that something like that is not happening on your app?

Highlighted
Advocate III
Advocate III

Re: Patch An unknown error occurred

I do not see any type of circular reference after further review. This is a very simple app. I am following the tutorial here: 

https://powerapps.microsoft.com/en-us/blog/the-power-of-sharepoint/

 

Other ideas?

Highlighted
Power Apps
Power Apps

Re: Patch An unknown error occurred

Unfortunately I'm unable to find any more information on our error logs to be able to help.

 

If you could please send the client log I can look into it and see if there is anything there to try to identify the problem.

Please send it to carlosag @ microsoft  . com and I can look into it.

The log file would be at (type this in Windows Explorer, % included):

%LocalAppData%\Packages\Microsoft.MSApps_8wekyb3d8bbwe\LocalState\

 

and you 'll find a file that starts with "core_....log".

 

thanks

Highlighted
Power Apps
Power Apps

Re: Patch An unknown error occurred

Have you tried hardcoding the ID and PMAssigned values to see if that's successful? 

Highlighted
Advocate III
Advocate III

Re: Patch An unknown error occurred

I was a site collection admin, added myself to site owners group = No Change

 

Attempted to hard code values and that WORKed. I guess that tells us it is not a permisisons thing.

 

hardcode.png

Highlighted
Power Apps
Power Apps

Re: Patch An unknown error occurred

Can you write the ID and texbox values to the screen of the app so you can make sure they're as expected? It could be something do with the ID being passed, but hard to tell.

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (10,820)