Error occur when post the item using Item Journal Line

Hi

Error occur when post the item using Item Journal Line as shown below


Microsoft Dynamics NAV

The expression Date cannot be type-converted to a Option value.


OK

Thanks in advance

Can you show line of code that generated that error?

I am using Default Item Journal line and get the data from Function Calculate Whse. Adjustment. It pulls all the item data into item journal line. After that i simply post the Journal. Then is show an error like this . I did not find the fiedl for expression Date.


Microsoft Dynamics NAV

The expression Date cannot be type-converted to a Option value.


OK

Posting Date Entry Type Document No. Item No. Description Location Code Quantity Unit of Measure Code Unit Amount Applies-to Entry

10/02/08 Positive Adjmt. T05001 S00035 Shuttle Parallel Port Cable 0 76 EACH 1.7 0

Discount Amount Unit Cost Amount
0.0 1.70 129.20

This is line from item journal line table.

Nuno Maia meant the C/AL code that is generating the error. You can find it by using the debugger without “breakpoint on triggers”. After enabling the debugger, launch your process and Navision will launch the debugger to show the line that generates the error. That is the line we want to see.

Post was made to developer’s forum I assumed to know I want I meant [:P]. I guess I was wrong. Thanks kriki for clarifying.