Does anyone know how I would Notify Microsoft of a bug in the NAV 2016 Upgrade Kit?

MJVMJV Member Posts: 38
Hi, our NAV2016 NavDataUpgrade Step (Step 8) has been crashing with the error:

Failed Function 'StartUpgrade' in the upgrade codeunit '104055' in the context of the company '<Our Company Name>' has failed
because of the following error: 'The type NavInteger is unknown.'.

I traced this to code unit 104051 function UpDateJob() (code snippet below).

The local Variable TempJob is a record for table UPG Credit Trans Reexport Hist

Unfortunately, when the line of code TempJob.GET("No."); is executed, the error occurs because the JobTable.No. field is a Code (20) and the UPG Credit Trans Reexport Hist.No. field is an Integer.

Since our Job Numbers contain letters, it crashes here.

For a work-around, I am thinking of commenting out this function since it only works on the table table UPG Credit Trans Reexport Hist, which is empty in our companies. However, I am wondering if the table would have data in it from some previous step, and that previous step erred out for the same reason, thereby failing to put data in the table.

Thanks,

Michael

LOCAL UpdateJob()
WITH Job DO
IF FINDSET(TRUE) THEN
REPEAT
TempJob.GET("No.");
CASE TempJob."Credit Transfer Register No." OF
TempJob."Credit Transfer Register No."::"0":
BEGIN
JobWIPMethod.SETRANGE("System-Defined Index",TempJob."Credit Transfer Register No."::"0");
JobWIPMethod.FINDFIRST;
"WIP Method" := JobWIPMethod.Code;
END;
TempJob."Credit Transfer Register No."::"1":

Best Answer

Answers

Sign In or Register to comment.