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 / Error while patching: ...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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? 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,725 Super User 2026 Season 1 on at

    @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?

  • WO-23071515-0 Profile Picture
    on at

    I'm calling patch function on a form. 

    Williams_O_0-1681592531204.png

     

  • WO-23071515-0 Profile Picture
    on at

    @timl 

  • timl Profile Picture
    36,725 Super User 2026 Season 1 on at

    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 at

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard