Txt2AL: Multi-word tablerelations without quotes
In the November build when exporting and converting objects with multi-word tablerelation's, then the table name is without quotes.
Example from table 36: field(23;"Payment Terms Code";Code[10]) { Caption = 'Payment Terms Code'; TableRelation = Payment Terms;
Here are the files exported and converted: T36.txt
We found out about this bug as well, this will be fixed in the next update.
Out of curiosity as we continously convert our text objects, will this bug result in an .al compile error?
Could be nice to know before we update our development environment to the november release.
In the case of a table with a name that should be quoted (like in the example, since the table contains a space), it will result in a compilation error. However, if the table relation does not need to be quoted or if the table relation contains if conditions, the property value given by the converter is correct.
Did this fix not make it into the NAV 2018 update? I'm still running into missing quotes on RunPageLink, RunPageView, SubPageLink and SubPageView. Also on DataItemTableView and DataItemLink in the reports.
The fix went into our December update and also made it into NAV 2018. I tried to reproduce it on the properties you mentioned, but it seemed to work for me. Were your files exported using the new syntax (the files should be compiled and then exported with ExportToNewSyntax)?
@qutreson I did export using the new syntax.
I ran through the following steps:
- Technical Upgrade of NAV 2017 cu4 database to NAV 2018 RTM
- Export with finsql, command=ExportToNewSyntax
- Split using Split-NAVApplicationObjectFile
- Create Delta using Compare-NAVApplicationObject
- Run txt2al on Delta files
- Import into new AL project
I'm attaching one of the files here:
@qutreson
I think I found it. Your remark that the object should be compiled had me go back and compile the object after the technical upgrade. After that, I do end up with a better file. This was a customer database, so all objects were compiled, both before and after the TU, but there must be something in the compilation routine that does need to be explicitly rerun.
Thanks for the assist!