Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Attachments duplicate in user steps

Avatar

Level 7

I have a user step with a few attachments. When I use the same list in the consecutive user step the attachments from the previous step duplicate and it creates double the number of attachments. I use the "copy all notes and attachments from a list of documents." and specify the list for input and output.

Could someone explain if this is a bug or expected functionality.


Thanks
Aditya

0 Replies

Avatar

Level 10

It is not a bug, but an implementation concern on collections.

For e.g lets take the assignment:  aListVariable = {a list of attachments}

Now, the list variable will not overwritten rather the items will be appended to the list;

So to get rid of this issue, try to follow my approach;

create two list variable of type document (say list1 & list2)

For a Assign Task activity set the following:

Attachment & Notes

Copy all attachments from = list1

Output attachments = list2

Place a Set Value component after the Assign Task and assign the following:

list1 = empty-list()

list1 = list2

list2 = empty-list()

Hope this will resolve your problem.

Nith

Avatar

Level 8

To overwrite existing items in a List, indicate the index in the list. So, to overwrite all the list items, use the 1 index:

/process_data/listVar[1]

http://livedocs.adobe.com/livecycle/8.2/wb_help/000262.html

scott

Avatar

Level 10

Never mind about my suggestion, scott's reply is correct!

Nith