Closed colomarco closed 6 years ago
I do an insert on the transaction_journals table, then for each insert get the ID and create the 2 transactions (- and +) in transactions table. After that if I try to open the wirthdraw or deposit pages, I get this error. But if I just click on update button in the account page, all works great then.
Thanks for the screenshot! Which "the account page" are you talking about?
In this page, I click on the green button without changing anything. After that i can open withdrawal and deposit without troubles. Sorry for the italian page :)
Strange, because that one should not influence the page you were visiting.
Try to browse to /flush
after your manual import. That might clear the cache. If you are on the command line, run php artisan cache:clear
.
Oh great! Thank you so much!! This seems to work! I have to ask you one more thing...If I run my custom import php script inside the firefly folder (I put that in a custom folder called "import" under firefly/public), all the transactions are created twice. I'm pretty sure the loop is done just once, because if I run the same script outside firefly folder (I tried under /opt/), all works great!
That can only happen if your script actually executes twice. Are the entries in the database twice too?
Yes the entries in the database are twice too. I run it just once, but inside that folder its executed twice and can't understand why. By the way I can run it outside the folder and all works. Is there a possibility to add a voice menu that just execute my custom script? Something like a simple exec of my php script?
That is strange, I don't know why either!
But I can't offer it inside Firefly III, I'm afraid.
Oh ok I understand! Thank you so much for helping me! :)
:+1: you're welcome!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am running Firefly III version 4.7.4
I'm importing directly on database tables because I created a function that read from another external db and manage some data. After that, if I try open the transaction page, I obtain the following error.
I see that after import, if I update an account (just clicking on button update, without doing anything else) all starts to work again without any trouble. Have I to clean variables or something after importing in this way?
Thank you so much.
Stack trace