Article Details
Id:10685
Product:finPOWER Connect
Type:FIX
Version:1.06.05
Opened:12/11/2012
Closed:12/11/2012
Released:26/11/2012
Job: J010708
High Importance

Workflows; Adding a new group or items within a group may fail with duplicate code if Item Group is configured to repeat for each Account Client

When adding a group manually via the button on the Items page of the Workflows form or adding a group via a Workflow Item's action, an error similar to the following may be given:

Validation of Workflow Items failed.

Item Id 'ABC' is used more than once. Item Ids must be either blank or unique within a Workflow.

The Item Group was not being given a unique Id if the Item Group was configured to repeat for each Account Client. The Item Id will now have a sequence number added to the end if necessary, e.g. 'ITEM1.C10000.2' (ItemId dot ClientId dot Sequence).

NOTE: The ItemById method on finWorkflowItems returns only the first Workflow Item with the specified Item Id (Workflow Items are allowed to have duplicate Item Ids). A Debug and Trace warning is written to alert the coder to this just in case they are unaware.