Skip to main content
New Participant
Oct 24, 2023 4:14 PM UTC
Solved

Test Input Value Incorrect

Any idea why the input value is not recognizing the array?

I've tried with/without the comma, but Appian is still saying there is only 1 item in the list.

mikes0011
mikes0011Answer
Brainy
Oct 24, 2023 4:39 PM UTC

If you want to hardcode arrays then you'll need to write them as arrays. {3, 2}  //  {"AA", "BB"}, etc.

If the Appian doesn't see the array-indicating curly brackets in the expression box, the parser has no way to understand that the information it's seeing is supposed to be the first value of an array, and will instead assume you meant to provide an array of 1 element (hence just "AA", etc).

The Expression Guru

2 replies

mikes0011
mikes0011Answer
Brainy
Oct 24, 2023 4:39 PM UTC

If you want to hardcode arrays then you'll need to write them as arrays. {3, 2}  //  {"AA", "BB"}, etc.

If the Appian doesn't see the array-indicating curly brackets in the expression box, the parser has no way to understand that the information it's seeing is supposed to be the first value of an array, and will instead assume you meant to provide an array of 1 element (hence just "AA", etc).

The Expression Guru
dwightbAuthor
New Participant
Oct 24, 2023 4:54 PM UTC

Sweet! Thank you