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)

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)
  • Raheel-Khan Profile Picture
    1,371 on at

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

  • Rustem Galiamov Profile Picture
    8,072 on at

    Is there the Reference field is filled?

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    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

  • Modiseh Profile Picture
    85 on at

    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
    guk1964 Profile Picture
    10,888 on at

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

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Rahele,

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

    Best regards,

    Ludwig

  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at

    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");
    }
  • Modiseh Profile Picture
    85 on at

    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

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