I am building a set of business processes using the BPT features in OutSystems.
I've created some Entity events that trigger OnCreate and OnUpdate, one of which is on the "CompanyPlan" entity.
Then, I decided to DELETE these entity events ... BUT ... I am not getting this error:
ORA-04098: trigger 'OSADMIN_OSDEV1.OSTRG_EI__OSUSR_HFZ_COMPANYP' is invalid and failed re-validation
It looks like the trigger might still be in there and OutSystems is not cleaning it up??
HELP!
João Rosado wrote:
To delete the trigger you only need to uncheck the Expose Process Events checkbox in your entity.
But yes, he support ticket is always the best to identiy why it is happening and if there is a problem in the product to fix it instead of workaround.
Regards,
João Rosado
Thanks, I will keep that in mind (uncheck the Expose Process Events). First, I spoke with support and they are working on it so I will let it alone for now.
Again, thanks Joao!
Hi Bruce,
The triggers are created/updated then there are changes to the entity and then the "Expose events" property is modified. They are not changed by new/removed usages of the OnCreate/OnUpdates.
Is your entity still exposing the events or did you also changed the "Expose events" to false?
João Rosado
Joao, I am having trouble locating which BPT component (process, activity, entity) that is creating this trigger.
I have a number of BPT rules on entities - many with "Company" in the name. How can I tell which Entity or Process or Activity that this trigger error is associated with?
Doesn't the error stack of the error log enough to see the complete name of the entity that is causing the error?
Like I said, the trigger creation is not affected by the "Process or Activity" using it. Only the entity is relevant.
Regards,João Rosado
Joao, okay I found that it is definately the "CompanyPlan" entity that is the issue.
BUT, what do I do now? I don't think I have any "On" BPT events on the CompanyPlan entity anymore.
Yes, the CompanyPlan entity has the "Expose Process Events" checked. I am attaching a screenshot of the Advanced tab for the CompanyPlan ... do I have it set correctly?
Also, below I am pasting the stack trace - maybe I am missing something in there?
Still no luck, I am going to submit a support ticket ... DEV is totally stuck now.
I removed the BPT "On" event on the CompanyPlan entity and still getting this error:
At this point, there should be NO trigger on the table ... I need to figure out how to manually delete the trigger and/or figure out if I am missing something else.
Ug!