cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Champion
Community Champion

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Highlighted
Community Champion
Community Champion

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.

Highlighted
Frequent Visitor

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

Community Champion
Community Champion

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.

Highlighted
Community Champion
Community Champion

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
Community Champion
Community Champion

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.

Highlighted
Continued Contributor
Continued Contributor

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.

Highlighted
Community Champion
Community Champion

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

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (10,327)