Document uploads on gridLayout

I have a gridLayout where I am uploading a document to each record. If the Docuemnt is already uploaded to the record it displays my grid, but if the document is not uploaded it gives an error as below:
"Could not display interface. Please check definition and inputs.
Interface Definition: Expression evaluation error in rule 'icams_editlogisticsgroupeditmoduleitemroweach' at function a!applyComponents [line 195]: Invalid index (1) for list: valid range is empty"

Any Suggestions?


  Discussion posts and replies are publicly visible