Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
7 subscribers
Views
4538 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Add Multiple File Upload Components Dynamically
rishub
over 7 years ago
I am trying to implement loading of multiple files through SAIL. I used the code from link "
forum.appian.com/.../recipe_add_multiple_file_upload_components_dynamically.html"
. But when I upload the file, I am geting error
17:55:12,668 INFO [stdout] (ajp-/0.0.0.0:8009-1) com.appiancorp.process.expression.ExpressionRuntimeException$AppianExceptionWithRootCauseProvider: Expression evaluation error in rule 'ucmultifileuploadrenderfield' (called by rule 'test') at function a!applyComponents [line 538]: An error occurred while executing a save: Expression evaluation error in rule 'ucmultifileuploadresizearray' at function 'remove' [line 19]: Invalid index (1) for list: valid range is 1...0 (APNX-1-4198-019)
Can anyone guide how can I fix it?
Thanks
OriginalPostID-266319
Discussion posts and replies are publicly visible
Parents
0
sagarl511
A Score Level 2
over 7 years ago
@rishub - While calling the rule ucmultiplefileuploadrenderfield, it might be that parameter "files" is being sent as null initially and parameter "index" is sent as 1(based on calculations of recipe code). Please check if your initial value of files must be {} and not null().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sagarl511
A Score Level 2
over 7 years ago
@rishub - While calling the rule ucmultiplefileuploadrenderfield, it might be that parameter "files" is being sent as null initially and parameter "index" is sent as 1(based on calculations of recipe code). Please check if your initial value of files must be {} and not null().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data