Skip to main content
October 24, 2023
Solved

Test Input Value Incorrect

  • October 24, 2023
  • 2 replies
  • 0 views

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.

Best answer by mikes0011

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).

2 replies

mikes0011
mikes0011Answer
Brainy
October 24, 2023

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).

dwightbAuthor
October 24, 2023

Sweet! Thank you