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

unable to insert date in to sql from cds

I have a flow that triggers off updating an CDS entity and inserts some data into an on-premise SQL server. This works fine in our testing environment but I get an error in our production environment on a date field:

 

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'TT_project_aanmaken': The parameter with value '"@triggerOutputs()?['body/estimatedclosedate']"' in path 'item/estimatedclosedate' with type/format 'String/date' is not convertible to type/format 'String/date-no-tz'.'.

 

As far as I know the two environments are identical. The SQL field is of the type datetime and the CDS field is just a date.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @flowadmin3 ,

 

Could you please share a screenshot of the configuration of the flow?

You could take a try to format the date time from the sql to date in CDS with workflow definition language.

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#f...

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
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

1 REPLY 1
Community Support
Community Support

Hi @flowadmin3 ,

 

Could you please share a screenshot of the configuration of the flow?

You could take a try to format the date time from the sql to date in CDS with workflow definition language.

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#f...

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
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

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (41,495)