cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
joanneleung
Frequent Visitor

Insert date value to azure sql error (Conversion failed when converting date and/or time from character string)

Hi All,

 

I have an app which takes selected date from date pickup box and store in Collection. Then it will retrieve from Collection and save into azure sql after confirmation. It runs smooth until few days before, it started to show "Server response: [database table name] Conversion failed when converting date and/or time from character string."  in the step of patching data into sql. 

 

It's strange that it did not have this problem when the mobile phone OS is english, other than that, eg. the OS is in chinese language, it will display the above error event it's a mac computer in english OS. 

 

The field type in SQL is "Date" and format like "2020-12-14"

 

In the patching script, the error still displayed even I tested using Now() like below. 

 

{ input_dt: Now() }

 

My previous script is below and it works perfectly before.

 

{input_dt: DateTimeValue(input_dt)}

 

* input_dt in Collection is "2020-12-14"

 

I am not sure any updates on Powerapps, why suddenly pop this error out. 

 

Thanks All,

 

Joanne

0 REPLIES 0

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (3,031)