Announcements
I am getting this error when validating a journal voucher , any idea how to fix it ?
Stack trace: The company does not exist.
Stack trace
(S)\Data Dictionary\Tables\LedgerJournalTrans\Methods\validateWrite - line 74
(C)\Classes\FormDataSource\validateWrite
(C)\Forms\LedgerJournalTransDaily\Data Sources\LedgerJournalTrans\Methods\validateWrite
(C)\Classes\FormDataSource\leaveRecord
(C)\Forms\LedgerJournalTransDaily\Data Sources\LedgerJournalTrans\Methods\leaveRecord
*This post is locked for comments
so far the below got me closer to my issue
i am checked the license General ledger II and synchronizing ,
i will let you know if it works for not , fingers crossed.
i followed your advice and looked through the code, the issue is on line 74
if (this.OffsetAccountType != LedgerJournalACType::Ledger)
{
changecompany(this.OffsetCompany)
{
DimensionValidation::validateDefaultDimension(this.OffsetDefaultDimension);
}
}
return isValid;
}
apparently this has to do with the offset company account so i check on the table the field offsetcompany is there but on the form it is not and i can't add it
could this be the cause ?
why did this happen , this is a fresh installation with no customization what so ever
your feedback is appreciated
thanks
Hi,
Please check whether the method validateWrite of table LedgerJournalTrans has any customization that is causing this problem. If there are no customizations, please perform compilation and CIL once.
Hi,
You have to use debugger to solve it. If you put a breakpoint in that line, can you see if the given transaction has any company value? In the my current environment, there is an operation for the this.company value, if it is empty, that could cause similar problems.
Regards,
István
André Arnaud de Cal...
294,125
Super User 2025 Season 1
Martin Dráb
232,871
Most Valuable Professional
nmaenpaa
101,158
Moderator