AL icon indicating copy to clipboard operation
AL copied to clipboard

Convert Delta file to AL from D365BC txt2al tool results in error

Open MatDDev opened this issue 8 years ago • 7 comments

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.

MatDDev avatar Sep 13 '18 10:09 MatDDev

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:

qutreson avatar Sep 13 '18 11:09 qutreson

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.

TAB7012.zip

Edit: I've seen these dosc and followed the steps. Still the problem appears.

MatDDev avatar Sep 13 '18 12:09 MatDDev

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

qutreson avatar Sep 13 '18 13:09 qutreson

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.

MatDDev avatar Sep 13 '18 13:09 MatDDev

I've used microsoft/bcsandbox image and the results are as follows:

  1. 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.

MatDDev avatar Sep 13 '18 15:09 MatDDev

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.

qutreson avatar Sep 13 '18 19:09 qutreson

Closing due to inactivity. Please file a new issue if you are still affected by it when using the latest bcsandbox-master image.

StanislawStempin avatar Oct 15 '18 11:10 StanislawStempin