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)

Account number for transaction type Production offset account, resource issue does not exis

(0) ShareShare
ReportReport
Posted on by 720

Hi,

I am getting the bellow error message when production order end.

i have configured the production posting as below screen shots

i have setup the Production resource issue offset account at category and resource level, but system through error while production order end
i am able to post picking list, route card and report as finished, but no production order end for some orders only.

Prod-End2.png

Prod-End-Error2.png

Resource1.png

Cost-category1.png

Would you please support for this issue

Thanks

Rajkumar

*This post is locked for comments

I have the same question (0)
  • Brandon Wiese Profile Picture
    17,790 on at

    Double click on both warnings, and put a breakpoint on those lines of code, and try again, and then respond with the exact lines responsible for each warning with a complete call stack.

  • grajkumarmscax Profile Picture
    720 on at

    Find below the complete call stack

    (S)\Classes\LedgerPostingMessageLog\logCheckFailed,24,

    (S)\Classes\LedgerPostingMessageLog\logCheckFailedTableIdRecId,24,

    (S)\Classes\LedgerVoucherTransObject\check,76,

    (S)\Classes\LedgerVoucherTransObject\checkData,37,

    (S)\Classes\LedgerVoucherObject\checkTransactions,21,

    (S)\Classes\LedgerVoucherObject\check,137,

    (S)\Classes\LedgerVoucher\check,18,

    (S)\Classes\LedgerVoucher\post,29,

    (S)\Classes\LedgerVoucherPost\end,10,

    (S)\Classes\ProdUpdHistoricalCost\run,90,

    (S)\Classes\ProdTableType\runHistoricalCost,8,

    (S)\Classes\ProdStatusType\runHistoricalCost,38,

    (S)\Classes\ProdMultiHistoricalCost\run,23,

    (S)\Classes\RunBaseMultiParm\runOnServerInternal,31,

    (C)\Classes\RunBaseMultiParm\runOnServer,8,

    (C)\Classes\ProdMultiHistoricalCost\main,12,

    (C)\Classes\FormFunctionButtonControl\Clicked,0

     

    If you want to know exact lines of code, responsible to throw error, it’s here as below

     

    \Classes\LedgerVoucherTransObject\check >> Line Number 79 (Almost, based on version, we are on 6.3.1000.309 which is AX 2012 R3 CU8)

     

    X++ code for error

     

    if (generalJournalAccountEntry.LedgerDimension == 0)

           {

               ok = ledgerPostingMessageCollection.logCheckFailedTableIdRecId(

                   sourceTableId,

                   sourceRecId,

                   strFmt("@SYS24816", generalJournalAccountEntry.PostingType));

           }

     

     

     

     

  • Brandon Wiese Profile Picture
    17,790 on at

    Please open the production order, and on the Setup fast tab, under the Other field group, what is shown for Ledger?

    Item and resource?  Item and category?  Production groups?

  • grajkumarmscax Profile Picture
    720 on at

    Item and resource

  • Brandon Wiese Profile Picture
    17,790 on at

    I see in your original screenshot that you provided this already.

  • grajkumarmscax Profile Picture
    720 on at

    Yes

  • Verified answer
    Brandon Wiese Profile Picture
    17,790 on at

    On the class ProdJobType in the method updateCalcLedger, locate these lines and put a breakpoint on them.  Then try to End your production order, and step through them for each ProdRouteTrans record until you locate the record where the IssueLedgerDimension or IssueOffsetLedgerDimension has been set to 0.  Once you've found the record, inspect the ProdRouteTrans data or step into the methods that assign those fields until you figure out which WrkCtrTable record is responsible.

            prodRouteTrans.IssueOffsetLedgerDimension = this.resourceIssueOffsetLedgerDimension(prodRouteTrans);
            prodRouteTrans.IssueLedgerDimension       = this.resourceIssueLedgerDimension(prodRouteTrans)
    


  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Rajkumar,

    Have you checked all your resources used in the production order whether the ledger accounts are setup? Can you also check your costing sheet whether some indirect cost elements are setup that possibly miss a ledger account setup?

    Ludwig

  • Suggested answer
    grajkumarmscax Profile Picture
    720 on at

    Thank you very much. Problem has been solved by your code direction

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

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 24

#2
Michel ROY Profile Picture

Michel ROY 14

#3
Jagadabi Profile Picture

Jagadabi 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans