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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

validate Ledger Journal before posting in ssrs report x++

(0) ShareShare
ReportReport
Posted on by 163

I made a ssrs report that loop on all lines of ledger journal and validate journal 

main account suspended or not , vendor on hold or not , project status finished or not and financial dimensions . 

I solved all of this but I didn't find how to validate financial dimensions . 

which method should I use to validate ?

when I try to use ledgerJournalcheckPost.run () --- it validates well but throw error at the end so my report throw error and doesn't continue (I put this method in try catch but doesn't work )

how can I validate this without throw this error ?  

I have the same question (0)
  • Martin Dráb Profile Picture
    238,599 Most Valuable Professional on at

    Did you set "post" parameter to No when creating a LedgerJournalCheckPost instance (e.g. by newLedgerJournalTable())?

  • Menna Allah Ahmed Profile Picture
    163 on at

    No , I set it yes , I create Instance from ledgerJournaltrans not ledgerJouralTable (T tried both of them and have the same issue )

    when I set post to no it didn't give me all validations 

    this is my code 

              while select  LedgerJournalTrans
                order by LedgerJournalTrans.LineNum
                where LedgerJournalTrans.JournalNum == JournalId
    
              outer  join LedgerJournalProject
                where LedgerJournalProject.RefRecId == LedgerJournalTrans.RecId
                    {
                    checkPost = ledgerJournalCheckPost::newLedgerJournalTrans(LedgerJournalTrans,LedgerJournalVoucher::Journal,NoYes::Yes);
                    checkPost.parmJournalNum(JournalId);
                    checkPost.run();
                    }

  • Martin Dráb Profile Picture
    238,599 Most Valuable Professional on at

    Well, setting "post" to Yes is definitely wrong, if your intention is validating the journal and not posting it.

  • Menna Allah Ahmed Profile Picture
    163 on at

    Then How can I get All validations without posting ? , I get all errors with different ways but financial dimensions I can't find How to validate it ?

  • Menna Allah Ahmed Profile Picture
    163 on at

    I tried to call simulate posting () but gave me the same issue , so which method should I use and give me all of errors , Or method validate financial dimensions ?

  • Martin Dráb Profile Picture
    238,599 Most Valuable Professional on at

    If your problem is that some code throw an exception and you'd like to avoid, you need to find what code it is. Then you consider if it can be prevented.

  • Menna Allah Ahmed Profile Picture
    163 on at

    there is no way to validate financial dimension direct ? , which method can I call to validate financial dimensions ?

  • Martin Dráb Profile Picture
    238,599 Most Valuable Professional on at

    That dimension values aren't suspended is validated already when selecting a value (by LedgerDimensionEntryController.validateValue()), isn't it?

  • Menna Allah Ahmed Profile Picture
    163 on at

    I don't know what is this all I want to know which method can I call or use to check if financial dimensions validated or not in ledger Journal

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 663 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 289 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 232 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans