cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
flowadmin3
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
v-alzhan-msft
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
v-alzhan-msft
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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (53,333)