Convert Delta file to AL from D365BC txt2al tool results in error
Hello, I am trying to convert .delta (between objects from NAV2018) file to .al by using txt2al converter, although coming from D365BC docker container. I am getting an error:
----ERROR---- Error converting file:c:\run\my\Delta\TAB7012.DELTA Length cannot be less than zero. Parameter name: length
Does it mean that I can use txt2al.exe (from D365BC folder) to convert .delta to .al files only in D365BC, and not NAV2018? I've noticed that this converter creates also .xliff files which I need (but I don't have them when converting with txt2al.exe from NAV2018 container).
Or maybe there is another parameter in txt2al.exe? Thanks for help.
Hi @MatDDev, did you export the objects to new syntax and used the argument -ExportToNewSyntax flag when generating the delta files with Compare-NAVApplicationObject? If yes, can you provide us with some code from your table TAB7012.DELTA that we could use to reproduce the issue?
See docs:
Yeap, both the base objects and modified ones have been exported in the new syntax. There were basically no changes - there was just one field added, that's all.
Edit: I've seen these dosc and followed the steps. Still the problem appears.
Which version of the server are you using? I couldn't reproduce this issue on our master and I believe it got fixed with #2803
I am using it locally, on Win10. Should I use txt2al on e.g. Windows Server 2016?
Edit: I am using DK version of D365BC. I will try to use microsoft/bcsandbox and see what happens.
I've used microsoft/bcsandbox image and the results are as follows:
- Out of 40 delta files I got 12 errors which is better than before, because earlier I got 40 erros out of 40 delta files.
Can you provide us with some code that we could use to correct the errors that you got? Are they all failing the same way? Can you try to run the txt2al with --stacktrace? This will give you the full stack trace in case exceptions occured.
Closing due to inactivity. Please file a new issue if you are still affected by it when using the latest bcsandbox-master image.