Skip to main content
February 23, 2022
Solved

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

  • February 23, 2022
  • 11 replies
  • 0 views

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?

Best answer by peter.lewis

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
February 23, 2022

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

mattl0004Author
February 23, 2022

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
February 23, 2022

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