Error 1192 in module 19 (Navision Attain 3.60)

Riven3
Member Posts: 4
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":"
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)
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)

0
Comments
-
RecordRef is not working correctly in 3.60. To be able to use RecordRef without problems is better to use 3.70 or some latest version as best solution. On 3.60 you need to be prepared for some system bugs...0
-
Thanks for your answer. So my only solution is to migrate to 3.7? Can I do it painless? I mean, is automatic or are there big differences?0
-
Did you test it with 0 and 1?
RecRef.OPEN(DATABASE::"MyCorrupTable"); IF RecRef.FIND('-') THEN begin 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 //Why if true then set true ?????? FldRef.VALUE := TRUE //here test with 1 ELSE FldRef.VALUE := FALSE; //here test with 0 RecRef.MODIFY; // this we move here, because we modify only if we change some datas END; END; UNTIL RecRef.NEXT = 0; end;
RegardsDo you make it right, it works too!0 -
My problem with that code is that recref is not recongnized, so I must use recordref (no problem here), but then when I save the report it says OPEN is not recognized and I must supply the variable (and we know is not a variable, it's a command)0
-
Riven3 wrote:Thanks for your answer. So my only solution is to migrate to 3.7? Can I do it painless? I mean, is automatic or are there big differences?
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.David Singleton0
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