When I execute the ‘Adjust Cost – Item Entries’ routine in the Inventory Module the program gives the following error message:
“Another user has modified the record for this Item after you retrieved it from the database. Enter your changes again in the updated window, or start the interrupted activity again. Identification fields and values: No.=’010001’”
This message only occurs when I’m working with SQL database. When I execute the referred transaction with a native navision database I do not have any problem.
Is it a conflict in the sql database? Can anyone give me a clue on this matter?
Thank you in advance
Luis Santos
0
Comments
Problem is that in line marked as //1 is filled the variable Item, on lines //2 are sometime called functions that change data on the item (but only item no. is passed) and on line //3 is Item variable modified = conflict, because between //1 and //3 was record changed in lines //2.
Solution - change part with //3:
We are using it without error now.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
thank you very much. It solved my problem.
we had the same problem using a SQL Server. We've got the answer that this seems to be a locktable-problem within SQL. MBS Support gave us some coding to fix the problem and it works as well (at least so far). The coding is the one that kine published at last but we didn't make any more changes. Maybe I should have a look at kine's coding as well...
Best regards,
N. Gebhard
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt
we were asked to use the code as it follows (didn't realize before that the line is "missing" in Kine's code).
IF (CostingMethod <> CostingMethod::Standard) AND (Item."No." <> '') THEN BEGIN //Added BEGIN
Item.LOCKTABLE; //ADD THIS LINE AS WELL
Item.GET(Item."No."); //Refresh Item card
ItemCostMgt.UpdateUnitCost(Item,'','',0,0,TRUE,FALSE,FALSE);
END; //added END;
We didn't have any error messages afterwards any more.
Regards,
N. Gebhard
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt
I want to know, because when I sent them this problem, there was no solution for me and I sent them my code. :-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
one of our customers migrated from native DB to sql DB and afterwards the error which LSANTOS described occured. We started a mbs support request (partnersource) about it and some support engineer gave this code to us. But we didn't need to fill out this paper from mbs (with the 9 pages) though it might not be an official feedback from Denmark but only from the support engineer. Don't know for sure...
Best regards,
N. Gebhard
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt
I am posting this to show, how is MS support working and that you never know from where is the code... 8-[ :whistle:
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯