Hello,
I am trying to migrate NAV 5.0 SP1 native to SQL Server db. When using Migrate.fob file, after importing 104015 codeunit from a generated .txt file it is impossible to compile this imported 104015 codeunit.
I get an error:
"FIELDNAME is not a function, and only functions can be called with '(...'.
Please, help me with an advise, how it can be solved?
0
Answers
My guess you have some field name that causing this issue.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
http://www.mibuso.com/dlinfo.asp?FileID=1149
Just run it with default options.
TVision Technology Ltd
Thanks Rashed!
Here it is (I pointed out the line of error by line comment):
Thank you, I will try it.
Is this "Field Check" supposed to be as a replacement to Migrate.fob or just as a tool for additional checking before using standard methodology with Migrate.fob?
TVision Technology Ltd
My guess is that you have a field called "Fieldname" in table 17235. If you rename that field, the codeunit will compile.
Thank you, Luc!
Yes, there was a field called "Fieldname" in table 17235. I renamed it to "Fieldname1" and then tried to compile, but got another error:
When the function is called, the minimum number of parameters should be used. For example:
MyFunc( .. , .. , .. )
ROUND(MyVar)
ROUND(MyVar,0.05)
And the error occured on the same line of code (trigger Table17235), but after the first parameter "TableName" (I pointed it out by a line comment):
Then I tried to rename yet another field in the table 17235 - TableName. I changed its name to TableName1. Then trying to compile I get an error on the same line (and exactly the same point) of code. The error message is following:
A field from a record variable was expected. For example:
Record.Field
Customer.Name
Thanks! That was the reason!
I changed back the TableName1 field to TableName, regenerated CU 104015, imported it again and, yes, it compiled without problems.
Should I return the initial name of a FieldName field in the table 17235 before running CU 104015 for scanning database?
The scariest thing here is the field number 17,325 meaning that its a localization done by whoever localized this version. This is disastrous that a, so called, developer was able to do this.
This needs to be reported to Microsoft. And they need to fix this.