yarzai
(Aziz Rahman Yarzai)
January 26, 2024, 3:47pm
1
Hello,
I’m encountering an issue while using the FiscalYear.create(data)
method in the User Application . Specifically, I’m getting a _TransactionLockError(_table="account_fiscalyear")
.
I’ve already verified the data to see if any field is missing, but everything appears to be in order.
Any assistance you can provide would be greatly appreciated.
Thank you.
JCavallo
(Jean Cavallo)
January 26, 2024, 4:25pm
2
Hello,
AFAIK, this comes from the 6.8 version, where locks can only be acquired at the start of the transaction.
See this commit , you can check in protocols/dispatcher.py@_dispatch
for how to handle this manually.
ced
(Cédric Krier)
January 26, 2024, 4:43pm
3
yarzai
(Aziz Rahman Yarzai)
January 27, 2024, 4:26am
4
Thanks @ced for your reply.
When the issue #12962 will be resolved?
or is there any alternative solution to manually lock the table?
ced
(Cédric Krier)
January 27, 2024, 8:30am
5
Do not know. This is a community project, it will be fixed when someone spend his time on it.
You must start the transaction yourself and pass _lock_tables
argument as a list containing the names of the tables to lock.
1 Like
system
(system)
Closed
January 27, 2024, 8:31pm
6
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.