on 03-14-2015 5:09 PM
Hi,
In the AP Invoice Before Add event (Event = FormDataEvent, Event Type = Add or Update, Before Action = True), I am starting a transaction.
Then in After Add event, I am deliberately creating a null pointer exception (to test rollback), and in the exception handler, I am rolling back the transaction.
Still the AP Invoice gets saved in the database. What may be the issue?
Thanks.
I am trying this on 9.1 PL 00.
Can other experts try this code and let me know if they get similar results?
A lot of threads in this forum mention that starting a global transaction in the Before Action, and rolling back in the After Action is treated as a single transaction and should therefore work.
But some thread also suggests that it will not work.
This is urgent.
Hi Rajesh,
transaction is for DI API only - meaning only transactions made by DI API can be rolled back. You are trying to roll back something you are not doing, but SBO client.
If you want to stop adding of a document in client you could use transaction notification.
regards,
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.