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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Inventory transaction line without reference in Invent closing

(0) ShareShare
ReportReport
Posted on by 85

Hi all

I have several  weighted average lines in the inventory transaction for specific items without any origin in the invent closing table. 

How can I delete it form the inventtrans table ? Because when I want delete it in the AOT show me different error .   

*This post is locked for comments

I have the same question (0)
  • Modiseh Profile Picture
    85 on at
    RE: Inventory transaction line without reference in Invent closing

    Hi Ludwig

    I did it in the test server.

    I do not know why the recalculation and closing for these items is not done

    Best Regards

  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at
    RE: Inventory transaction line without reference in Invent closing

    Hi Rahele!

    Delete records from InventTrans table it's not a good idea.

    Try to run this job to recalculate InventSum:

    static void InventSumRecalc(Args _args)
    {
        InventTable                 inventTable;
        InventSumReCalcItem         inventSumReCalcItem;
        
        ttsbegin;
    
        while select inventTable
            where inventTable.ItemId == "yourItemId"
        {
            inventSumReCalcItem = new InventSumReCalcItem(inventTable.ItemId, true, CheckFix::Fix);
            inventSumReCalcItem.updateNow();
        }
    
        ttscommit;
        info("done");
    }
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Inventory transaction line without reference in Invent closing

    Hi Rahele,

    When you say 'remove it from the inventtranstable' do you mean that you simply deleted that recorded?

    Best regards,

    Ludwig

  • Suggested answer
    guk1964 Profile Picture
    10,886 on at
    RE: Inventory transaction line without reference in Invent closing

    Recalculation is not the same as closing. Which are you using?

  • Modiseh Profile Picture
    85 on at
    RE: Inventory transaction line without reference in Invent closing

    Hi guys 

    I have a problem recalculation. The system doesn't recalculate ( or closing) it and some of item.

    I thought the issue was with these rows. 

    This is a photo of transaction list for a product that has closing problem :

    2161.2.jpg

    and also when I wanted delete it in the AOT, Show me below error :

    2161.2.jpg

    then I enabled a negative inventory in the warehouse, then I could remove it from  the inventtrans table.

    But my problem wasn't resolved and the recalculation isn't done. :(

    BR \ Rahele

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Inventory transaction line without reference in Invent closing

    Hi,

    Can you share details of those transactions?

    Why do you want to delete them?

    Have you checked the settlements and the settlement report that you can generate from the closing and adjustment form?

    Best regards

    Ludwig

  • Rustem Galiamov Profile Picture
    8,072 on at
    RE: Inventory transaction line without reference in Invent closing

    Is there the Reference field is filled?

  • Raheel-Khan Profile Picture
    1,371 on at
    RE: Inventory transaction line without reference in Invent closing

    Please share the error you getting while deleting it in the AOT

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
KP-31070522-0 Profile Picture

KP-31070522-0 3

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans