Stopping Duplicate Attachments in Workspace

When using the attachments feature on the User service, you may have encountered a situation where attachments are being duplicated at each step of the process. This will happen whether you reference the “list of document” variable itself or the XPath expression of the variable.

The way to get around this issue is to reference the XPath expression of the variable and append [1] to it.

In Workbench, navigate to the Attachments tab of the User service.
In the Output Attachments section, make sure that the dropdown is set to XPath expression.
Select your variable of type list of document and append [1] to it.
It should now appear as /process_data/myAttachments[1]. 

Attachments tab on the User service

Attachments tab on the User service

Make sure you use this same notation (/process_data/myAttachments[1]) on each User service step.

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 10.0/10 (1 vote cast)
Stopping Duplicate Attachments in Workspace, 10.0 out of 10 based on 1 rating
This entry was posted in Adobe LiveCycle ES2 (9.0.x) and tagged , , . Bookmark the permalink.

One Response to Stopping Duplicate Attachments in Workspace

  1. Eric says:

    Hi Diana,
    I am using ADPE SP1 and this problem persists. I have built a process that uses the list of attachments as input, iterates through each attachment and concatenates a string with all the notes and html break tags between them. The problem is that my process is returning a string with lots of duplicates. I can’t use the [1] trick when passing a list to my process. Thoughts?