Adjust Cost - Item Entries

navuser1
Member Posts: 1,334
I am facing a problem when I am runing The Batch job named "Adjust Cost - Item Entries".It gives the
Error mesage is like that
Another user has modified the record for this Item After you retrieve it from the database.
Enter the change again in the updated window or start the....again.
Item No. = xxx.
plz suggest.how to solve it??
Error mesage is like that
Another user has modified the record for this Item After you retrieve it from the database.
Enter the change again in the updated window or start the....again.
Item No. = xxx.
plz suggest.how to solve it??
Now or Never
0
Comments
-
-
I am using Navision version 3.7Now or Never0
-
Have you some modification in this report and the codeunit for the Cost adjustment?0
-
Yes Sir,
There are some modifycation in the related objects.Now or Never0 -
Dear All,
I have replaced all the Modified objects(related to Adjust Cost - Item Entries) with the Navision Base.but the batch job shows the same error message.Now or Never0 -
have you tried it with everyone off the system?
Have you tried turning on the debugger to see where is stops?0 -
Debugger stop in the codeunit 5804,function name "Updateunitcost".
code...
WITH Item DO BEGIN
IF NewStdCost <> 0 THEN
"Standard Cost" := NewStdCost;
IF "Costing Method" = "Costing Method"::Standard THEN
"Unit Cost" := "Standard Cost"
ELSE BEGIN
IF CalledFromAdjustment THEN BEGIN
CostCalcMgt.GetRndgSetup(GLSetup,Currency,RndgSetupRead);
IF CalculateAverageInclExpCost(Item,AverageCost,AverageCostACY) THEN
IF AverageCost <> 0 THEN
"Unit Cost" := ROUND(AverageCost,GLSetup."Unit-Amount Rounding Precision");
END ELSE BEGIN
IF ("Unit Cost" = 0) AND (InvoicedQty > 0) AND (LastDirectCost <> 0) THEN BEGIN
CALCFIELDS("Net Invoiced Qty.");
IF ("Net Invoiced Qty." > 0) AND ("Net Invoiced Qty." <= InvoicedQty) THEN
"Unit Cost" := LastDirectCost;
END;
END;
END;
IF RecalcStdCost THEN
RecalcStdCostItem(Item);
IF LastDirectCost <> 0 THEN
"Last Direct Cost" := LastDirectCost;
VALIDATE("Price/Profit Calculation");
MODIFY; //errorNow or Never0 -
Hi All,
Is there any solution to this issue? Even I am facing the same problem in Nav 3.70
Thanks,
Manpreet0 -
Change the code to the following
WITH Item DO BEGIN //MOD start Get("No."); //mod end IF NewStdCost <> 0 THEN
If you want the MS solution, then you'll need to search partner source for hotfixes or upgrade to latest version of NAV.0 -
Dear Subroto
same Field of item is modified twice(The field with vaidate which u show us), thats y it is showing u error.Vikram Dabas
Navision Technical Consultant0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions