cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Meneghino
Level 10

Bug report: Patch of date column to Azure SQL DB works but does not return value to context variable

When patching a date column with the following action

UpdateContext({MyPatch: Patch(MyTable, MyRecord, {DateColumn: Date(1970, 1, 4))})

Then the column in Azure SQL DB is updated with the correct value, but MyPatch.DateColumn is blank!

In other words, the context variable is missing the date information.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Bug report: Patch of date column to Azure SQL DB works but does not return value to context vari

Hi Meneghino,

 

I can reproduce this issue on my side.

 

I am connecting to SQL Server On-Premise, and I have three columns in my table, Id, name and birthday.
When Patching with the following code, I can save data to the data source, and MyPatch.Id and MyPatch.name are working fine. While MyPatch.birthday is blank.

UpdateContext({MyPatch: Patch('[dbo].[a2]',{id:2,name:"ggg",birthday: Date(2017,1,4)})})

 

I am going to report this issue on my side. I will back once I got any response.


Thanks for your understanding and patience.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
Community Support Team
Community Support Team

Re: Bug report: Patch of date column to Azure SQL DB works but does not return value to context vari

Hi Meneghino,

 

I can reproduce this issue on my side.

 

I am connecting to SQL Server On-Premise, and I have three columns in my table, Id, name and birthday.
When Patching with the following code, I can save data to the data source, and MyPatch.Id and MyPatch.name are working fine. While MyPatch.birthday is blank.

UpdateContext({MyPatch: Patch('[dbo].[a2]',{id:2,name:"ggg",birthday: Date(2017,1,4)})})

 

I am going to report this issue on my side. I will back once I got any response.


Thanks for your understanding and patience.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Meneghino
Level 10

Re: Bug report: Patch of date column to Azure SQL DB works but does not return value to context vari

Thanks @v-yamao-msft

This is really important, also because the data in a gallery connected to the data source shows a blank after the patch operation.

Look forward to hearing back, and keep up the good work.

DrBread
Level: Powered On

Re: Bug report: Patch of date column to Azure SQL DB works but does not return value to context vari

I am having issues as described above, has there been anything done to resolve this bug? If not, is there any work around to said bug?

I have been working on an app and wish to present it, but disappearing dates really puts a downer on things.

Thanks,
J

Meneghino
Level 10

Re: Bug report: Patch of date column to Azure SQL DB works but does not return value to context vari

Hi @DrBread, sadly as I have posted elsewhere the SQL Server connector is somewhat buggy and not just in relation to dates.

However I am told by Microsoft support that some of the bugs will be fixed in July, but I am not sure which.

So I suggest you do not hold your breath and use a work-around.

I am now storing all dates as int type columns of value yyyymmdd

The reason is that this also allows for filtering of periods using > and < (which does not work with date type columns, another bug)

With this work-around I have been able to do everything I needed and not been concerned with time zone effects etc.

I hope this helps.

Meneghino
Level 10

Re: Bug report: Patch of date column to Azure SQL DB works but does not return value to context vari

Hello @v-yamao-msft

Is there any update on this issue?
Many thanks.

Highlighted
Meneghino
Level 10

Re: Bug report: Patch of date column to Azure SQL DB works but does not return value to context vari

 

Hello @v-micsh-msft, I had no reply from @v-yamao-msft, so maybe you can help.

Is there any update on this issue?
Thank you.

KC
Level 8

Re: Bug report: Patch of date column to Azure SQL DB works but does not return value to context vari

Any updates on this, we are experiencing this as well.

Meneghino
Level 10

Re: Bug report: Patch of date column to Azure SQL DB works but does not return value to context vari

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,831)