Update title block generates duplicate entries in history and event handler monitor. How to resolve tht?


When trying update title block event  in post using groovy script px, duplicate entries are  shown in history and in event handler monitor.


How can we avoid that?




Agile User Asked on January 27, 2023 in Agile PLM (v9).
Add Comment
1 Answer(s)

Are you updating additional Title Block attributes via your script? I believe i had the same issue previously.  Update Title Block post event is triggered once when title block is updated in web client, and then again if your script is setting additional attributes,

Agile Talent Answered on January 27, 2023.

Thanks for your reply. We are using same event handler for update title block,create object and save as object events.


So had to conditionally execute and then the duplicate entries got reduced.

on January 30, 2023.

Yes, but within your script, are you also setting title block values via a setValue()? I believe this will also cause a secondary UpdateTitleBlock event.

on January 30, 2023.

Yes we are using setValue().

on February 2, 2023.

Doing so in a post will trigger your script twice. First time is from the Create, SaveAs, or UpdateTitleBlock (from webclient).  Second time is on the setValue() which will trigger a secondary UpdateTitleBlock event (from SDK).  Hence the two History entries. Don’t think there is a way around this.  We just ignore the multiple entries.

on February 2, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.