Hi, I have a problem when doing a backup in Navision Attain 3.60 (I'm using native Database). It gives me error 1192 in module 19.
Table: Item
Company: (it's blank)
Key fields: Number
I've found a possible solution in an old post from Timo Lässer:
"With similar code I corrected the internal error 1192 in module 19 "BoolOutOfRange":"
RecRef.OPEN(DATABASE::"MyCorrupTable");
IF RecRef.FIND('-') THEN
REPEAT
FOR I := 1 TO RecRef.FIELDCOUNT DO BEGIN
FldRef := RecRef.FIELDINDEX(I);
IF (UPPERCASE(FORMAT(FldRef.TYPE)) = 'BOOLEAN') AND (UPPERCASE(FORMAT(FldRef.CLASS)) = 'NORMAL') THEN BEGIN
IF FORMAT(FldRef.VALUE) = FORMAT(TRUE) THEN
FldRef.VALUE := TRUE
ELSE
FldRef.VALUE := FALSE;
END;
END;
RecRef.MODIFY;
UNTIL RecRef.NEXT = 0;
My problem is that recref is not recognized (I'm trying to put it in a report). Am I doing something wrong or must I define recref function or anything else? or maybe this code is for a different version?
Thanks in advance
EDIT: I changed recref to recordref and now that is accepted, but it says that open is not recognized when saving the report (says I must define the variable)
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Regards
You should have no problems running 3.60 objects with the 3.70B executables. There are still quite a lot of companies out there with this combination. That was the time when a lot of people stopped paying upgrade and support, so they are stuck. 3.70 does have a lot of issues on SQL, but on Native, its rock solid.