cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver II
Resolver II

Updating a Boolean in SharePoint using Patch throws 'An Unknown Error Occurred'

I'm working with a form that reads records from one data source (SharePoint List) into a Gallery and using a button on each record, It writes or updates a record in a second SharePoint list.  I was running into an issue were nothing would update so I began breaking it down field by field.  I use the First(Filter method to find the record to update and then update two text fields and two Boolean fields.  When I added the first Boolean field I received a message 'An Unknown Error Occurred'  Here is the code I'm using:

Patch(CustomerSuccessCriteriaTracking, First(Filter(CustomerSuccessCriteriaTracking, Customer='CMB:SelectCustomer'.Selected.Value && Success_Engagement='CMB:SelectSuccessEngagement'.Selected.Value && Success_Internal_ID = SuccessInternalIDExample.Text)),
{Success_Description:SuccessCriteriaDescriptionExample.Text},
{Unit_of_Measure:UOMExample.Text},
{From_Value:SetFromValue})

I'm successful when I leave out the 'From_Value' statement.  This is the Boolean value.

 

Has anyone else run into this?  is there a different way I need to be dealing with this data type?

 

Thanks-
Tom.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver II
Resolver II

Re: Updating a Boolean in SharePoint using Patch throws 'An Unknown Error Occurred'

And I'm an idiot... For some reason I put the Boolean values into a Text box rather than in a Checkbox.  Once I made that change it is working as expected.

View solution in original post

1 REPLY 1
Highlighted
Resolver II
Resolver II

Re: Updating a Boolean in SharePoint using Patch throws 'An Unknown Error Occurred'

And I'm an idiot... For some reason I put the Boolean values into a Text box rather than in a Checkbox.  Once I made that change it is working as expected.

View solution in original post

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

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.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,834)