- Forum
- T24 Technical Discussions
- T24 Development & Customization
- My after auth routine run twice when there is an override
My after auth routine run twice when there is an override
- chouaib24
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
Thanks for help.
T24: R19 TAFJ
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1181
- Thank you received: 157
never heard of such routine type. Did you mean AFTER.UNAU.RTN or maybe BEFORE.AUTH.RTN?
Cheers
VK
Please Log in or Create an account to join the conversation.
- chouaib24
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
I mean the AUTH.ROUTINE.
Best regards,
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1181
- Thank you received: 157
in your AUTH routine check in both cases the contents of the common variable MESSAGE (defined in I_COMMON).
It should be different - on validation: "VAL"; on commit - "" (or maybe "AUT").
Cheers
VK
Please Log in or Create an account to join the conversation.
- chouaib24
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
I have already done this check, the MESSAGE variable is empty whether it is during validation or when accepting the OVERRIDE.
I found only the variable OFS$OVERRIDE which is filled after acceptance of the OVERRIDE.
Regards,
Please Log in or Create an account to join the conversation.
- faisal
- Offline
- New Member
- Posts: 18
- Thank you received: 4
Please Log in or Create an account to join the conversation.
- chouaib24
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
Auth routine is triggered twice when there is an override.
You won't remark that only if you call a webservice for example, or you generate a log.
You won't remark changes on records, because T24 does a sort of roolback when there is an override that occurs.
You can check that by generating a log.
Please Log in or Create an account to join the conversation.
- chouaib24
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
Log 1 :
OverrideFlag > 0
Message >
EndError >
OfsOperation > PROCESS
OfsOverrides >
OfsAuth >
OfsMessage >
function > I
action >
Log 2 :
OverrideFlag > 0
Message >
EndError >
OfsOperation > PROCESS
OfsOverrides > Arrangement Account AA200077WCZZ ~Opb#2111101231230119~Clb# is in FROZEN ~Opb#FROZEN~Clb# StatusþYES
OfsAuth >
OfsMessage >
function > I
action > POST
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1181
- Thank you received: 157
and without an override, is AUTH.RTN triggered at least once?
About the rollback: can you check SYSTEM(47) in both cases?
Cheers
VK
Please Log in or Create an account to join the conversation.
- chouaib24
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
Without an override, the AUTH.RTN is triggered once.
Please Log in or Create an account to join the conversation.
- chouaib24
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
So, there is no solution for this problem?
Thanks,
Please Log in or Create an account to join the conversation.
- mseye
- Offline
- New Member
- Posts: 7
- Thank you received: 0
For example, you create a Boolean local table or a number that you increment to indicate whether it comes from an override or not.
At the end of execution, you reset to 0. I don't know if this will help.
Regards
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1181
- Thank you received: 157
looks reasonable... Introducing a COMMON variable might help.
Cheers
VK
Please Log in or Create an account to join the conversation.
- Forum
- T24 Technical Discussions
- T24 Development & Customization
- My after auth routine run twice when there is an override