Skip to main content
New Participant
Feb 23, 2022 3:32 PM UTC
Solved

Getting an error on user filter "Build An Application: Step 6"

I'm going through the Appian Developer's course, and am not able to get through "Build An Application: Step 6". I'm getting a "Invalid index: Cannot index property 'vehicleMake' of type Text into type RecordType]." Can't figure out where the bug's coming from since I'm just copying the code straight out of the exercise. Here's the code for the filter:

a!recordFilterList(
name: "Make",
options: a!forEach(
items: local!vehicleMakes.data,
expression: a!recordFilterListOption(
id: fv!index,
name: fv!item.make,
filter: a!queryFilter(
field: 'recordType!AE Vehicle'.vehicleMake,
operator: "=",
value: fv!item.make
),
dataCount: fv!item.count
)
)

Any ideas for why this is wrong?

peter.lewis
Employee
Feb 23, 2022 6:50 PM UTC

Can you confirm if the whole field reference is combined together into a little tag or does the field name show after it in a different format? For context, here's what the correct and incorrect field references look like.

11 replies

gopalk2865
Participating Frequently
Feb 23, 2022 3:55 PM UTC

Hi , in queryFilter configuration, you have not written correct value for parameter "field". Please check and try to use correct field name

mattl0004Author
New Participant
Feb 23, 2022 4:21 PM UTC

What's wrong with it? Why is it causing this type mismatch error?

I used the prefix "AE" instead of "AX" throughout the duration of these exercises.

gopalk2865
Participating Frequently
Feb 23, 2022 4:36 PM UTC

You are getting indexing error because it's not able to find field "vehicle make". Just try to retype this field.