Help

Find Records automation - Need help with strange error: "No valid nested options"

Topic Labels: Automations
Solved
Jump to Solution
2691 4
cancel
Showing results for 
Search instead for 
Did you mean: 
b_cummings
4 - Data Explorer
4 - Data Explorer

I'm setting up an automation to find records from webhook data. The field I need to match appears grayed out by Airtable with an error, "No valid nested options". Please see image.

I've never seen this error message before, and a google search was of little help.

Can you help explain what this error message means and how to resolve it?

Thanks!
Snag_2e1a6be.png

1 Solution

Accepted Solutions
Sho
11 - Venus
11 - Venus

Find records can only be compared between common variable types.
Only strings can be selected for string fields and numbers for numeric fields.

See Solution in Thread

4 Replies 4
Sho
11 - Venus
11 - Venus

Find records can only be compared between common variable types.
Only strings can be selected for string fields and numbers for numeric fields.

b_cummings
4 - Data Explorer
4 - Data Explorer

Thanks, @Sho, such an obvious solution. I don't know that I would have figured that out.

Support_IT
6 - Interface Innovator
6 - Interface Innovator

Hello @b_cummings - if you're able to run scripts with your plan, you can implement this workaround that convert a "non nested field" into a string that can then be used : 

Declare 'variable-name' as input of the script, then copy this

 

let myinput = input.config();
console.log(myinput);

// Assuming myinput is an array, access the first item (index 0) from the list
let myvariable = myinput['variable-name'][0];
console.log(myvariable);

// Convert myvariable to a string
myvariable = String(myvariable);
console.log(myvariable);

// Set the string value in the 'myvariable' output
output.set('myvariable', myvariable);

 

JBJ
7 - App Architect
7 - App Architect

@b_cummings 

I have a solution to suggest that's easier to implement, in my opinion, than the one offered by @Support_ITI'm late in the game, but this might help you guys out for future automations.

If you’re getting the tooltip ‘No valid nested option’ when trying to select a field as a condition in an automation, that's because the data type of the selected field and the data type of the populated value do not match.

To understand why this happens, it’s useful to know that Airtable processes linked records and lookups as arrays, even when the cell contains only 1 element (in that case, Airtable treats it as a 1-item array). This means you’re trying to have [string = array] as a condition, which Airtable considers as impossible.

The workaround to that is to create a formula field that references the linked record or lookup. This new field will display the original value, but will convert the array into a string. You can select this newly created field as a condition in your Find Records module.

JBJ_0-1733697943063.png

 

JBJ_1-1733697943064.png

 


JBJ_2-1733697943065.png
 
Hope it helps.

JBJ
🌊 Keep the Flow