Notifications
Announcements
No record found.
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
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
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
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2