Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Inventory transaction line without reference in Invent closing

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

  • Modiseh Profile Picture
    Modiseh 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
    Rustem Galiamov 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
    Ludwig Reinhard 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
    guk1964 10,877 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
    Modiseh 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
    Ludwig Reinhard 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
    Rustem Galiamov 8,072 on at
    RE: Inventory transaction line without reference in Invent closing

    Is there the Reference field is filled?

  • Raheel-Khan Profile Picture
    Raheel-Khan 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans