KB-1405 Cannot index property 'uploadedDocumentName' of type Text into type FieldLayout


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

Affected versions

This article applies to Appian 17.1 and later.

Last Reviewed: September 2017