Duplicate name error when add list item attachment event fires in workflow and the list already has existing attachments

  • 16 February 2021
  • 0 replies
  • 11 views

Userlevel 5
Badge +20
 

Duplicate name error when add list item attachment event fires in workflow and the list already has existing attachments

kbt152033

PRODUCT
K2 Cloud
K2 Five
TAGS
SmartObjects
Workflow Designer
SharePoint
Workflow
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

Duplicate name error when the 'add list item attachment' event fires in workflow and the list already has existing attachments.

Symptoms

The Workflow will enter an error state when the Add List Item attachment event is processing.
Message: "The specified name is already in use. The document or folder name was not changed. To change the name to a different value, close this dialog and edit the properties of the document or folder."

Resolution

This is a common occurence if one uses the "Document Reference" as the source to upload the attachment from and the target is the same.

Essentially using this on the same list will try to upload the attachment from the same list back to the list and fail with the error. In this scenario one will not want to specify the "Document Reference."

 

 

 

Image


0 replies

Be the first to reply!

Reply