Insert DB error with datetime format, but works after resubmit

平 江 6 Reputation points
2020-12-12T08:39:46.197+00:00

Hi,

I have a logic app launch half year already but got strange problem today.

I declare a var call "now" which is current time
47515-image.png

but I got error message when I insert to my DB

  "body": {  
        "status": 400,  
        "message": "Conversion failed when converting date and/or time from character string.\r\nclientRequestId: 2f3044a5-6c07-4861-88c1-6692b78b07ba",  
        "error": {  
            "message": "Conversion failed when converting date and/or time from character string."  
        },  
        "source": "sql-ea.azconn-ea.p.azurewebsites.net"  
    }  

47419-image.png

but when I click "resubmit" for this record on history blade, It will works without any problem.
47583-image.png
can anyone tell me how can I resolve this problem ?

47612-image.png
47558-image.png

thanks

Ping

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. CHIU Chun Yin 6 Reputation points
    2020-12-14T03:02:21.57+00:00

    I got the same issue too, it doesn't work even I use utcNow()


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.