You are currently reviewing an older revision of this page.
When opening an interface containing an a!fileUploadField_17r1 component, the following error is thrown:
The application server log may also show this as:
09:25:08,880 INFO [stdout] (ajp-/0.0.0.0:8009-1) Caused by: java.lang.IllegalArgumentException: Invalid index: Cannot index property 'uploadedDocumentName' of type Text into type FieldLayout
This error is caused by a deprecated reference to .uploadedDocumentName following an a!fileUploadField_17r1 SAIL component. This reference was deprecated in Appian 17.1 and has been replaced with .contents.name.
Replace all references to .uploadedDocumentName with .contents.name in the SAIL code. Additionally, you may access the file extension and file size properties of the uploaded file by using .contents.extension and .contents.size respectively.
This article applies to Appian 17.1 and later.