Error Running Report 795 Adjust Cost - Item Entries

headley27
Member Posts: 188
Hello,
I am receiving an error when running Report 795 Adjust Cost - Item Entries. The message received is:
'There is no Value Entry within the filter.'
'Filters: Item Ledger Entry No.: 157063, Document No.: PI022470, Entry Type: Indirect Cost, Adjustment: No'
The failure occurs in C5895 in a function called 'AdjustAppliedFromEntries(AppliedFromEntry : Integer;AverageCostItem : Boolean) : Boolean'.
The line that breaks is: 'OrigValueEntry.FIND('-');' in the Case 2 Statement.
FOR i := 1 TO 3 DO BEGIN
IF (AdjustedCost <> InvoicedCost) OR (AdjustedCostACY <> InvoicedCostACY) THEN BEGIN
NewAdjustedCost := AdjustedCost - InvoicedCost;
NewAdjustedCostACY := AdjustedCostACY - InvoicedCostACY;
ChangeToActualCost := ChangeToActualCost + NewAdjustedCost;
ChangeToActualCostACY := ChangeToActualCostACY + NewAdjustedCostACY;
CASE i OF
1: // direct cost
InsertAdjmtEntry(NegValueEntry,NewAdjustedCost,NewAdjustedCostACY);
2: //indirect cost
BEGIN
OrigValueEntry.COPY(NegValueEntry);
OrigValueEntry.SETRANGE("Entry Type",OrigValueEntry."Entry Type"::"Indirect Cost");
OrigValueEntry.FIND('-');
OrigValueEntry."Invoiced Quantity" := "Invoiced Quantity";
InsertAdjmtEntry(OrigValueEntry,NewAdjustedCost,NewAdjustedCostACY);
END;
Can someone please explain to me why I have received this error and how I may go about correcting it?
Thank you,
headley27
I am receiving an error when running Report 795 Adjust Cost - Item Entries. The message received is:
'There is no Value Entry within the filter.'
'Filters: Item Ledger Entry No.: 157063, Document No.: PI022470, Entry Type: Indirect Cost, Adjustment: No'
The failure occurs in C5895 in a function called 'AdjustAppliedFromEntries(AppliedFromEntry : Integer;AverageCostItem : Boolean) : Boolean'.
The line that breaks is: 'OrigValueEntry.FIND('-');' in the Case 2 Statement.
FOR i := 1 TO 3 DO BEGIN
IF (AdjustedCost <> InvoicedCost) OR (AdjustedCostACY <> InvoicedCostACY) THEN BEGIN
NewAdjustedCost := AdjustedCost - InvoicedCost;
NewAdjustedCostACY := AdjustedCostACY - InvoicedCostACY;
ChangeToActualCost := ChangeToActualCost + NewAdjustedCost;
ChangeToActualCostACY := ChangeToActualCostACY + NewAdjustedCostACY;
CASE i OF
1: // direct cost
InsertAdjmtEntry(NegValueEntry,NewAdjustedCost,NewAdjustedCostACY);
2: //indirect cost
BEGIN
OrigValueEntry.COPY(NegValueEntry);
OrigValueEntry.SETRANGE("Entry Type",OrigValueEntry."Entry Type"::"Indirect Cost");
OrigValueEntry.FIND('-');
OrigValueEntry."Invoiced Quantity" := "Invoiced Quantity";
InsertAdjmtEntry(OrigValueEntry,NewAdjustedCost,NewAdjustedCostACY);
END;
Can someone please explain to me why I have received this error and how I may go about correcting it?
Thank you,
headley27
0
Comments
-
which version are you running? There could be a hotfix/improvement on MS website.0
-
US Version 3.70.A
We run this report everyday.
This is the first time we have seen this error message.
Thank you.
headley270 -
Additionally I see 3 records in the Value Entry table for Item Ledger Entry No.: 157063.
2 records are for Document No.: PI022470 and are Direct Cost entries..
The other record is a Direct Cost entry for a separate document.
Thanks again.0 -
I think you should check your data , if there is something missing or not
while you do that, i think you can add some code to by pass that error:
If OrigValueEntry.FIND('-') then begin
OrigValueEntry."Invoiced Quantity" := "Invoiced Quantity";
InsertAdjmtEntry(OrigValueEntry,NewAdjustedCost,NewAdjustedCostACY);
end;0 -
Thank you frutta.
This is my concern as well.
I believe that there is a missing Indirect Cost entry however I am unsure why. I am not certain of exactly how the system 'costs' items.
Also, I am concerned about bypassing the error if a record does not exist.
Should I be?0 -
i looked at version 3.7b and the code for that area hasn't changed, so it does look like bad data.0
-
Thanks ara3n
Any idea what could cause an Indirect Cost entry to be missing?0 -
I have had this problem on version 3.70 B where a Purchase Credit Memo is linked to a receipt through Applies-to Item Ledger field and posted BEFORE the receipt has been posted as an invoice. In this case you get only the Direct Value Entry on th ereturn not the indirect.
This will be a little late for you headley27 but may be of use to others....
Cheers,
Mike0 -
headley27 wrote:Thanks ara3n
Any idea what could cause an Indirect Cost entry to be missing?
No I don't know why they would be missing.0
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