cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
rmeany
Level: Powered On

Attempting to set a MSSQL Server DB value back to null

I'm attempting to set a MSSQL Server DB GUID field value to null by patching the data source with Blank() - however this does not seem to work.  The update query does not return an error, but it does not remove the GUID.  How can I remove a GUID from a SQL Server field correctly?

1 ACCEPTED SOLUTION

Accepted Solutions
rmeany
Level: Powered On

Re: Attempting to set a MSSQL Server DB value back to null

Yes I afterwards saw that there is another request in to allow data sources such as MSSQL to accept Blank() as a db null value for any field that allows it regardless of datatype.

 

Workaround for me was to use a zeroed-out GUID instead of a null value for now.

 

 

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Attempting to set a MSSQL Server DB value back to null

Hi @rmeany ,

The reason why you can not updated blank value to a guid field is that blank value is not guid data type.

The field's data type decide only guid data could be inserted in.

To solve this, I suggest you turn this setting on:

11141.PNG

 Turning this on could make insert data no need to check data type.

So you could update guid field with blank value.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
rmeany
Level: Powered On

Re: Attempting to set a MSSQL Server DB value back to null

Yes I afterwards saw that there is another request in to allow data sources such as MSSQL to accept Blank() as a db null value for any field that allows it regardless of datatype.

 

Workaround for me was to use a zeroed-out GUID instead of a null value for now.

 

 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,780)