cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Old document properties not being updated with new values.

Issue: Old
document properties not being updated with new values.

Steps
for the Process:

  1. Upload a document in SP 2013 Document Library with
    Managed Metadata Columns.
  2. Use a Nintex Workflow to Read Managed Metadata and
    standard column values from a list using an ID and apply metadata properties to
    the uploaded document.
  3. The workflow executes on Item Update.
  4. The Document gets uploaded and the correct Metadata and
    Other column values are applied by the workflow.
  5. Download the document and save it with a different name.
  6. The document contains the Metadata column values as
    Additional properties.
  7. We now upload the Document with a different name and a New
    ID.
  8. The same workflow is now executed to update the Managed
    Metadata and standard column values using the New ID.
  9. The workflow executes without errors and log entries are
    as expected.

This is where we face the issue.

Nintex workflow executes
correctly without any error. However the old properties do not get updated with
the new metadata properties!!!

 

Workflow
Steps:

Condition for the Workflow to fire: Workflows runs on item
(document ) update

Workflow Algorithm:

  1. Check out the current item(document). We log the existing
    “Current Item” property values to the log history.
  2. Update the metadata properties using List Lookup based on
    the ID.
  3. Check in the current item(document). We log the “Current
    Item” new property values to the log history.
Labels: (1)
0 Kudos
Reply
2 Replies
Workflow Hero

Re: Old document properties not being updated with new values.

I would add a commit pending changes action after the check out. What is probably happening is that the update is occurring before the check out completes within the batching process in SharePoint. See more in the following article for details.

Designing your Workflow - Commit Pending Changes Action NW2010 & NW2013

0 Kudos
Accept as Solution Reply
Not applicable

Re: Old document properties not being updated with new values.

Thanks Andrew,

Here is what I have tried

1) Download the document. Clear all the properties. Upload the document. This works and the new metadata gets applied with the workflow.

2) Download the document. Upload the document. In the Edit form, remove values for all the fields and set them to blank except for the new ID. Save the changes. This works and the new metadata gets applied based on the new Id using the workflow.

3) Added commit actions, both after checkout,  update item and even after check-in item. This doesn't work either. The old metadata is retained from the document properties.

Do let me know if you can think of anything else.

Thanks,

Gurjit Singh

0 Kudos
Accept as Solution Reply