Hi Khalil, Generally, this error comes when Ax creates the inventTransId, that is already created. So when it checks for Inventory updates in classes, it searches whether that inventtransId is already created and checks that new record and searched record for inventTransId, are similar(i.e. having the same itemId etc, I am not at my system so I cant tell you the exact fields to checks, but it checks 3 fields to ensure that new record and searched record for that inventTransId are same). If the records are not same, it throws an error "Illegal reference".
So I suggest you to tell your technical guy to check for the created inventTransId, and check whether that inventTransId is already created in salesLine. Change the value of "next" numberSequenceTable, so that, now, Ax picks the value of InventTransID, that is unique in salesLine. Hope it helps... Manish --- On Sat, 2/5/09, Khalil Rehman <khalilrehm...@hotmail.com> wrote: From: Khalil Rehman <khalilrehm...@hotmail.com> Subject: [Axapta-Knowledge-Village] Error "Illegal Reference" in Sales Order. To: "Knowlege Village" <axapta-knowledge-village@yahoogroups.com>, "Development Axapta" <development-axa...@yahoogroups.com>, axapta-consult...@yahoogroups.com, "AX Consultant Sumit Loya" <loya.su...@gmail.com>, "Adeel AX Technical Consultant" <adeel...@gmail.com> Date: Saturday, 2 May, 2009, 8:12 PM Dear All, i stuck up in above mentioned Error. scenario is we have three companies & in one Production related company last two to three weeks i am having problem in creation of Sales Orders. whenever i am going to create new sales order and adding new sales line. then its giving error message "Illegal Reference". also i noticed that any item i select its assuming only one item. and throw error "Illegal reference" See the Attached Error. KHALIL UR REHMAN See all the ways you can stay connected to friends and family Cricket on your mind? Visit the ultimate cricket website. Enter http://beta.cricket.yahoo.com