web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Answered

Error " Stack trace: The company does not exist " when validating a Journal voucher

(0) ShareShare
ReportReport
Posted on by 14,855

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

I have the same question (0)
  • Suggested answer
    István Orosz Profile Picture
    2,137 on at

    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

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    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.

  • Abdo Khoury Profile Picture
    14,855 on at

    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

  • Verified answer
    Abdo Khoury Profile Picture
    14,855 on at

    so far the below got me closer to my issue

    blogs.technet.microsoft.com/.../advance-holder-functionality-not-available-without-finance-ii-license

    i am checked the license General ledger II and synchronizing ,

    i will let you know if it works for not , fingers crossed.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans