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 is unsupported and was deprecated in Appian 17.1
Using the dot notation with the a!fileUploadField component is not documented. Therefore, Appian support does not recommend it. Validations concerning the name, size and file type of an uploaded file can instead be done using the validations built in to the current version of the a!fileUploadField component. For more information, see the "validations" section of the File Upload Field documentation.
Note that in order to use this functionality, backwards compatible a!fileUploadField_17r1 components must be updated to the current a!fileUploadField SAIL component.
This article applies to Appian 17.1 and later.
Last Reviewed: September 2017
© 2020 Appian. All rights reserved.