cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with duplicate transactions in Agentry - Rounds Manager

Former Member
0 Kudos

Hi All,

Let us consider a scenario where we have a list of items getting displayed and on clicking each of the items in the list, a view opens up showing the details for the corresponding item. Now this view has various fields which can be filled in by the user and a finish button so as mark the item as complete.

Under the normal flow we fill up the details and press on finish so as to mark the item as complete, and a transaction is applied.  But we have included an additional check box on the same view on the basis of which a different set of data is going to be saved for the opened item as part of a different transaction. So what is happening is basically two transactions are being applied on click of Finish. The issue that we are facing here is, when we open up the item for the first time and click on finish keeping the check box checked two transactions are being applied one for the item related one and one for the check box related data which I believe is working fine. But on clicking the same item which has been marked complete again, and this time keeping the check box unchecked on clicking finish an additional set of transactions is coming up which is resulting in error saying -  Target id already exists for this transaction.


As a matter of fact the transaction associated with the main item related information save is Edit type and the one added for the check box is Add type.

Any suggestion as to how this can avoided/fixed ?

Thanks

Arpan

Tags edited by: Michael Appleby

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Arpan,

This is expected because your secondary transaction is an Add transaction that is trying to add a duplicate unique object.

I suspect you will need to move your second transaction (the one depending on the checkbox) into a subaction that has an execution rule tied to it that will only execute the secondary transaction if the checkbox is checked.  You may also need to further add another check in teh subaction to see if the object already exists and either skip creating it or perform an edit transaction instead.

Otherwise when you go back into the item that was already marked complete but still leave the checkbox checked you will hit the same Target id already exists error.

--Bill