Help

Conditional Logic Returning Invalid Input when Record Length = 0

Topic Labels: Automations
Solved
Jump to Solution
234 5
cancel
Showing results for 
Search instead for 
Did you mean: 
Cole_Wedemeier
7 - App Architect
7 - App Architect

Hello!

There are a LOT of posts regarding the popular error of "Received Invalid Input" but in my search I didn't find anything that was specific to the conditional logic of the automation being the area that returned the error.

I've created a video to show how the conditional logic works when the list properties length = 1, but if it = 0, then the conditional logic check returns the "Received Invalid Input" error. 

Any help is appreciated.

1 Solution

Accepted Solutions
dilipborad
9 - Sun
9 - Sun

Hello @Cole_Wedemeier 
Thanks for the detailed explanation and also share the base.

I've tried things on my side, Now first see this screenshot.

dilipborad_0-1724996481133.png

1) Add the "Find Records" step before conditions.
Note: I've used basic conditions, but if you need to cross-check multiple fields then conditions may vary.
2) In the conditions, just use simple condition for the length check based on the "Find Records" step

I hope this fixes your issues. 👍

See Solution in Thread

5 Replies 5

Hmm I tried testing out an automation that had a conditional on a lookup of a linked field and it worked fine, and so I figure your setup's different.  If you could let me know what field you're looking up I'd love to test it out! 

Screenshot 2024-08-29 at 1.18.12 PM.png

Screenshot 2024-08-29 at 1.18.55 PM.png

Hello @Cole_Wedemeier 
First and most importantly, please show the field type of every linked record and some sample data. That makes more sense.
@TheTimeSavingCo you've tried one example, but the real issue here is the return type of data.

At first glance at your shared video, it looks like whenever data comes(with the right data), it returns an object and the length calculation is also different.
Just for a quick suggestion try "null" if it fixes your issue. Otherwise please share more table data types with some of the sample data.

👍

Cole_Wedemeier
7 - App Architect
7 - App Architect

@dilipborad and @TheTimeSavingCo 

I have tried putting "null" into the conditional rule, but it just disappears and Airtable thinks the condition is not completely input yet.

I've created a sample base for you to see the fields and how they are interconnected. While that won't give you the automation, you can see the fields.

Let me walk you through that particular step in the automation. 
Conditional Goal: If someone does not have an Onboarding Form record, which is linked to the Client List table,  then send a gmail email to them. 

Records to work with: 
Client Rita = NO Onboarding Form
Client Crystal = HAS Onboarding Form

Conditions are in image. Note: the "Onboarding Form" is a linked record to the Client List. The Client List is then a linked record on the Results Tracking table to which the automation is being built on for a trigger of "When form is submitted"

Cole_Wedemeier_0-1724951593928.png

 

Full Automation:
Trigger: When a form is submitted

Cole_Wedemeier_1-1724951779726.png

Action: Update Record

Cole_Wedemeier_2-1724951807097.png

Conditional Action 1: If total audience growth ≤ 0.24 AND Movement Makers Qualified (from client list) (from results tracking) length = 0

Cole_Wedemeier_3-1724951888202.png

Conditional Action 2: If total audience growth  0.25 AND Movement Makers Qualified (from client list) (from results tracking) length = 0

Cole_Wedemeier_4-1724951930375.png

Conditional Action 3 (where I'm getting stuck)
if Onboarding Form (from Client List) length = 0

Cole_Wedemeier_5-1724952058721.png

 

 

dilipborad
9 - Sun
9 - Sun

Hello @Cole_Wedemeier 
Thanks for the detailed explanation and also share the base.

I've tried things on my side, Now first see this screenshot.

dilipborad_0-1724996481133.png

1) Add the "Find Records" step before conditions.
Note: I've used basic conditions, but if you need to cross-check multiple fields then conditions may vary.
2) In the conditions, just use simple condition for the length check based on the "Find Records" step

I hope this fixes your issues. 👍

@dilipborad I had to try several variations of the Find Record, but ultimately it was the solution. Thank you so much!