NAV2018 : Token StartAttribute XML Error
While working with NAV2018 extension, I encountered this strange error when trying to build the package. The error message doesn’t explain much as well.
Processing of message 'al/createPackage' failed with error: 'Token StartAttribute in state Element Content would result in an invalid XML document.
It turned out the issue was on the compiler bug. One way to fix this issue was to update to newer version of AL Language. However, since I needed to develop for NAV2018, the latest AL Language that I could use was v0.13.472035. So what’s the workaround ?
Surprisingly enough, the error happens because the complier doesn’t like it when you put Allowed property after SourceTableView.
To fix it, you just need to put the SourceTableView after Allowed property, then the error magically disappears.
Or you can just run AZ AL Dev Tools to sort properties in the correct order.
Hope that helps you if you have the same issue with NAV2018.