Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Hi team,
I have written a expression rule to update a particular row of a record. The Expression rule is working as expected while unit testing but does not work when called in Script task.Could someone please help?
Discussion posts and replies are publicly visible
My first guess is because local!leaveData is a list of record, and you're calling a!update() as if it's a single instance of that record type data. To test this, change line 5 to " data: local!leaveData[1]" and see if it makes any difference.
"Invalid index (1) for list: valid range is empty..." leads me to believe that for some reason local!leaveData is an empty list
Zakary Melvin said:leads me to believe that for some reason local!leaveData is an empty list
What do you see when you expand the Local Variables viewer pane and see what the actual data type / content of that local variable is?