Skip to main content
Nintex Community Menu Bar
Solved

Duplicate ID when I re-run workflow

  • May 21, 2025
  • 3 replies
  • 43 views

Forum|alt.badge.img+11

Hello,

Can anyone tell me why, when I run another workflow instance on an item that already exists the ID # that applies to the title, duplicates?

 

So for instance (initial instance): Office Supplies - Company Name - 1
Re-ran instance and received:    Office Supplies - Company Name - 1 - 1

 

In the workflow action (NAC),  I have the following…
 

 

Best answer by SimonMuntz

I figured it would override the existing?

The action is overwriting the existing. It just happens that the existing is currentTitle -1.
The only way to prevent this is to check if the title has been appended with an ID. Then use a Run If action that runs if the title has not been appended. If it has been appended, the action is skipped.

3 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • May 22, 2025

Hi ​@jpacheco,

The first time the workflow runs, the title is updated with the current title name, and then the ID is appended.
currentTitle -1

When you re-run the workflow, the current title is now currentTitle -1, so the update action reads the current title, which is currentTitle -1, and adds -1.
currentTitle -1 -1
Does that clarify the issue for you?


Forum|alt.badge.img+11
  • Author
  • Scout
  • May 22, 2025

@SimonMuntz ,

 

Hello and thanks for your response! I’m still a bit confused… how do I stop the additional “- 1” to be applied? I figured it would override the existing?!

If I re-run the instance, how do I get the title to override or remain the initial?

 

Thanks


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • May 22, 2025

I figured it would override the existing?

The action is overwriting the existing. It just happens that the existing is currentTitle -1.
The only way to prevent this is to check if the title has been appended with an ID. Then use a Run If action that runs if the title has not been appended. If it has been appended, the action is skipped.