Issue with update table event, getting null pointer exception in event while adding a specification to specification table on Item object.

Issue with update table event, getting null pointer exception in event while adding a specification to specification table on Item object.

This pre-event(One attribute validation) is allowing manual addition of specification to the table, but not able to add it while running standalone code.

I suspect the when standalone code (‘table.createRow(spec)’) is called, the update table event is also triggering which reads one of its attribute, here it is giving null pointer exception.

Pre event is must because before addition of a row to the table, validation must be done.

Could any one help me in sorting this out.

No Files Were Attached
Add Comment
1 Answer(s)

Typically, you want to do your updates in a post event. All sorts of things can go wrong when modifying in a pre-event, including an error that the object has been modified. Validate in pre-event but update in post-event.

That you are updating the table that you are triggering on means you need to be sure you dont get into an infinite loop.. there is a configurable thread limit to keep that from happening but you dont want to count on it.

Steve Jones, the PLM Doctor Agile Angel Answered on January 23, 2018.
Add Comment

Your Answer

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