Hi all!
I have weird problem when trying to rename G/L Account."No." -field. When answering Yes to question "Do you want to rename the record" I get error "Field no. 296704 is not defined in the G/L Account table." G/L Account table is not modified. Doing this in native database with same backup works fine. When I tried this with year old backup in SQL database it works fine.
When trying to debug, I get nothing, error comes before debugger activates?
I have Navision 4.03 and SQL 2005. Also Navision 4.01 and SQL 2000 gives same error.
Any Ideas?
Answers
First try to compile the G/L Acc. table which is present with the SQL Server.
For any queries you can also visit my blog site: http://msnavarena.blogspot.com/
My Blog - nav.education
I have tried all of them, I did not find anything from text export, re-compiled G/L account table and checked change log (which is not activated)...
What happens before debugger kicks in when trying to rename records?
While programming data transfer from an old 2.60 FR into a 6.01 DE we spared some time by exporting the old 2.60 GL Account table object into text, changing the number and importing the object into the 6.01 and a staging table. There we deleted all code, functions and variables from the table but did not check on table relations. But there were some existing which pointed from that import table to a non existing field / table.
Export all objects to text did not help as you will not be able to find the field number in the text. When we identified what the problem was we scanned in all 20 import tables we had done like this all fields and easily found the wrong table relations.
FD Consulting
Create a new tabular form for table 2000000041 (Field), put in all fields and run it. The form will display 2 columns RelationTableNo, RelationFieldNo. No idea whether it helps but it's worth a try.
FD Consulting
Nav, T-SQL.
I also made the form for table Field. This is good tip, but I did not find problems with table relations with it.
](*,)
1. "G/L Account".OnRename
2. ApplicationManagement.OnGlobalRename
Nav, T-SQL.
Update: this seems to happen also with other installations with 4.01 and SQL 2005!
Thank you all!