cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Agiloft "Get Attachment" Action only fetches one attachment

prashantrai
Deputy Chef II
Deputy Chef II

Hi I am trying to get all attachments in Agiloft for a contract.

So far it is only letting me fetch just one attachment.

This works if a contract has only one attachment, but in case of multiple ones it fails.

I did try For each Loop and other conditions but it seems to be failing after getting the first attachment.

Here is the error:

Error occured when trying to get attachment: EWWrongDataException has occurred: [default task-79690][1691512978022] Blob field id in table attachment does not contain 2 files, but less (1) for key 5,384 at line: 1125

1 ACCEPTED SOLUTION

prashantrai
Deputy Chef II
Deputy Chef II

I resolved this. In the File Position parameter it should always be zero.

prashantrai_0-1691685957733.png

 

View solution in original post

2 REPLIES 2

ahanumantharaya
Deputy Chef III
Deputy Chef III

Error clearly says there is only one ID and doesn't contain 2 files.
Try with another record.

prashantrai
Deputy Chef II
Deputy Chef II

I resolved this. In the File Position parameter it should always be zero.

prashantrai_0-1691685957733.png