Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Error : There is no...
 
Notifications
Clear all

Error : There is no active transaction

6 Posts
2 Users
0 Reactions
2,006 Views
(@antoine1003)
Posts: 36
Active Member
Topic starter
 
[#6563]

Hi,
I am corrently doing an extension to improve the import feature. as my class is prety long I made a gist if you want to see my class : here. I go the following error when I try to import a file :

2020-03-17 10:58:42.046 ** ERROR ** [V8.3.2] on file 'C:wamp64wwwipmp_newmodelpersistenceSql.php' at line (197)
2020-03-17 10:58:42.049 ** ERROR ** [V8.3.2] cause = There is no active transaction
2020-03-17 10:58:42.053 ** ERROR ** [V8.3.2]    => #0 C:wamp64wwwipmp_newmodelpersistenceSql.php (197) -> commit()
2020-03-17 10:58:42.055 ** ERROR ** [V8.3.2]    => #1 C:wamp64wwwipmp_newmodelcustomImportable.php (429) -> commitTransaction()
2020-03-17 10:58:42.058 ** ERROR ** [V8.3.2]    => #2 C:wamp64wwwipmp_newmodelcustomImportable.php (686) -> buildTable()
2020-03-17 10:58:42.060 ** ERROR ** [V8.3.2]    => #3 C:wamp64wwwipmp_newtoolimport.php (139) -> import()

I already looked on this forum an saw an answer saying : "Ticket #816 recorded" which doesn't really help.
Do you have any idea?
Thanks,
Antoine


 
Posted : 17 Mar 2020 13H11
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

You execute Sql::commitTransaction() but did not have previous Sql::beginTransaction()


 
Posted : 17 Mar 2020 13H53
(@antoine1003)
Posts: 36
Active Member
Topic starter
 

Thanks for your answer.
I do execute Sql::beginTransaction() line 211 before the loop through data as it seems to be done in the native file :S


 
Posted : 17 Mar 2020 13H56
(@antoine1003)
Posts: 36
Active Member
Topic starter
 

@babynus Do you have any idea? I am really stuck with this problem 🙁


 
Posted : 17 Mar 2020 17H44
(@antoine1003)
Posts: 36
Active Member
Topic starter
 

Can anyone help me?


 
Posted : 18 Mar 2020 11H28
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Difficult to investigate on some code we did not write and we just cannot read 🙁
Also, support for your own coding is out of our scope


 
Posted : 19 Mar 2020 21H33
Share:

Scroll to Top