Skip to main content
Community site session details

Community site session details

Session Id : +hvwUUibz2iO8cAyb5q4fT
Power Apps - Building Power Apps
Unanswered

Error while patching: "No coercion operator is defined between types 'System.Guid' and 'System.String'."

Like (0) ShareShare
ReportReport
Posted on 14 Apr 2023 14:16:31 by

I get the above error while trying to update records in my SQL able. I pulled data from this table into power apps using the "external table" functionality. 

 

I can create new records fine with the patch > defaults function but I can't update existing records because of the above issue. 

 

Any help please? 

  • WO-23071515-0 Profile Picture
    on 28 Apr 2023 at 20:46:44
    Re: Error while patching: "No coercion operator is defined between types 'System.Guid' and 'System.String'."

    Hey @timl thank you very much for your help, but this didnt work. It gives the same coercion type error. 

  • timl Profile Picture
    35,217 Super User 2025 Season 2 on 17 Apr 2023 at 05:06:10
    Re: Error while patching: "No coercion operator is defined between types 'System.Guid' and 'System.String'."

    Hi @Williams_O 

    I'd change the following line as follows. Hopefully, that'll fix the problem.

    ID_SITE: If(IsBlank(VarSiteinfor), GUID(), GUID(VarSiteinfo.ID_SITE)),
  • WO-23071515-0 Profile Picture
    on 15 Apr 2023 at 21:07:41
    Re: Error while patching: "No coercion operator is defined between types 'System.Guid' and 'System.String'."

    @timl 

  • WO-23071515-0 Profile Picture
    on 15 Apr 2023 at 21:06:41
    Re: Error while patching: "No coercion operator is defined between types 'System.Guid' and 'System.String'."

    I'm calling patch function on a form. 

    Williams_O_0-1681592531204.png

     

  • timl Profile Picture
    35,217 Super User 2025 Season 2 on 14 Apr 2023 at 16:11:10
    Re: Error while patching: "No coercion operator is defined between types 'System.Guid' and 'System.String'."

    @Williams_O 

    How are you updating your record? Are you calling Patch or are you using a form? If it's the former, can you post your formula?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete