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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Currency code must be specified

(0) ShareShare
ReportReport
Posted on by 1,551

Helle,

when i try to delete General journals from GL it tells me "Currency code must be specified", and it never been deleted ,

How to delete this evil journal ! ?

Abdulrahman.

*This post is locked for comments

I have the same question (0)
  • Klaas Deforche Profile Picture
    2,433 on at

    Hi,

    Is it possible that one or more lines in this journal doesn't have the field currency code filled in?
    This might be why you are getting the error.

    If you want to trace where the message comes from, put a breakpoint in infolog.add, and try to delete the journal.
    The debugger will pop up, and you can go back in the trace to see where the message comes from.

    Hope this helps,
    Best regards,
    Klaas Deforche

  • Nabil Abdelrahman Profile Picture
    1,551 on at

    Hi Klaas,

    I'm new to X++ almost I know a littel, can you give me this into steps so I can apply your solution ?

    yours

    Abdulrahman

  • Klaas Deforche Profile Picture
    2,433 on at

    Hi,

    Please check first if all manditory fields are filled in on your journal. There is a field 'currency' on the setup tab of your journal, maybe this is set to manditory (you should see a red line) but is empty? Try putting a currency there and see if that solves the problem.

    If it doesn't, open the AOT (ctrl+d), go to classes - info class - method add, and put a breakpoint on the line that says 'switch (logLevel)' by pressing F9 when your cursor is on that line. Then close the editor, and try deleting your journal.
    The debugger should pop up. The 'Call Stack' should be visible in the lower left. You can doubleclick the methods in bold to see why the error is thrown. You should have some basic knowledge of X++ though.

    Best regards,
    Klaas Deforche.

     

  • Community Member Profile Picture
    on at

    its problem of cache, in first time entry if you dont define currency second if you define then also its throwing error, delete the whole and recreate

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans