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

Null form fields causing flow to fail

I have a form with lots of sections and branching meaning not all of the form fields get filled usually. i have 15 date fields and similar number fields feeding a list box formatted the same. if i make all list fields text, the flow will run with null values present on the form. this is not ideal. how can i run my flow?

 

here is the error: 

 
 
 
 
 

OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/Mileage10_Claim_Date' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.

1 REPLY 1

@Lochwood 

Hi there!  Do you have a Parse JSON step?  Is that where this is erroring out?  If so, this is caused by the "upload sample payload to build schema" bit that Flow/PA includes.  It's typically very helpful, but can cause problems for non-developers because it assigns a "type" to EVERY value.  So that means that future runs will need to have matching data, or you'll see this error.  (For me, it was an "Address 3" which is never filled out.

 

The "trick" is to remove the type for the offending field.  Check out John Liu's Thesis on the Parse JSON action for more details.  Specifically, "Problem 4".

 

Keep us posted.

-Ed-

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

 

 

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,302)