Error while calculating order planing

santa100
Member Posts: 8
We are using order planing from forever but with starting yesterday we get the following error while calculating order planing.
NAV ERROR
The expression Code cannot be type-converted to a Option value.
When I go into debbuger the line where all stops is in the table 246 - Requisition Line in record: Ending Time
I bolded the line where all stops.
The search of the knowledge base didn't helped nor did any changes that i made to the code, GET statement looks o.k and debbuger doesn't reveal any code type data that should be option.
We are using NAV 5.0 sp1 localized to slovenian.
NAV ERROR
The expression Code cannot be type-converted to a Option value.
When I go into debbuger the line where all stops is in the table 246 - Requisition Line in record: Ending Time
I bolded the line where all stops.
TESTFIELD(Type,Type::Artikel);
IF ReqLine.GET("Worksheet Template Name","Journal Batch Name","Line No.") THEN
BEGIN
MODIFY;
PlngLnMgt.Recalculate(Rec,1);
GET("Worksheet Template Name","Journal Batch Name","Line No.");
END
ELSE
CalcStartingDate('');
IF CurrFieldNo <> FIELDNO("Due Date") THEN
SetDueDate;
SetActionMessage;
IF "Ending Time" = 0T THEN
BEGIN
MfgSetup.GET;
"Ending Time" := MfgSetup."Normal Ending Time";
END;
UpdateDatetime;
The search of the knowledge base didn't helped nor did any changes that i made to the code, GET statement looks o.k and debbuger doesn't reveal any code type data that should be option.
We are using NAV 5.0 sp1 localized to slovenian.
0
Comments
-
There are two options:
1: The primary key of the Requisition Line was changed, including a new option field
2: The ReqLine variable points to a different table, with an option as one of the primary key fields.0 -
Yep I also thought that i had change something by mistake but when I look at dates in object designer there are no changes in the time period of last 7 days in anything else but in reports, changed reports also don't affect anything, they just show data.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