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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Debugger is not hitting in the insert method

(0) ShareShare
ReportReport
Posted on by 931

Hi All,

While posting purchase order invoice, the debugger is not hitting in the insert method of GeneralJournalEntry and GeneralJournalAccountEntry.The currency conversion is not applied to only one record in voucher transactions for other records it is working perfectly when posting the invoice(below screenshot).

If I uncheck the Execute business operations in CIL Currency conversion is working correctly...

I have tried with Full CIL, VS debugging and debugging in AX with CIL disabled but no Luck...

Please suggest me the solution for this..

 

CurrencyConversionNot-Working.png

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Place breakpoint in the method postPurchaseOrderInvoice of class FormletterService and debug the code during purchase invoice process. Also uncheck the checkbox "Execute business operations in CIL" on options window to hit the breakpoint.

  • ThivaKar Profile Picture
    931 on at

    Hi Sukrut,

    Thanks for your reply..

    The problem is with currecny conversion of voucher transaction..

    I have tried calculate method of CurrencyExchangeHelper but while posting invoice the method was not called.

    Please tell me how or where the new record gets inserted to GeneraljournalAccountEntry Table or Provide any stack trace if possible?

  • ThivaKar Profile Picture
    931 on at

    Thanks for your reply.I will try this and get back to you..

  • ThivaKar Profile Picture
    931 on at

    Hi Suktrut,

    Thanks for your valuable reply...

    Can you please confirm the following..?

    I ran Full CIL with the necessary steps,So the Code in CIL should be upto date.So the currency conversion shouldn't work in both scenarios right...?

    Why it is working when the CIL is off(uncheck the Execute business operations)...?

    Please suggest me on this?

  • ThivaKar Profile Picture
    931 on at

    Any suggestions about the last reply ..?

  • ThivaKar Profile Picture
    931 on at

    Thanks for the confirmation sukrut...I will check and let you know...

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

    Hi,

    Record creation in table GeneralJournalEntry happens at line#48 in method transferReferences of class LedgerPostingGeneralJournalController through setbased operation. Place a break point here and debug the code, by unmarking the checkbox "Execute business operations in CIL".

    Code:

    // create the permanent GeneralJournalEntry records
        generalJournalEntryCollection.insertDatabase();


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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
Harisgillani Profile Picture

Harisgillani 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans