AL icon indicating copy to clipboard operation
AL copied to clipboard

Txt2AL Generated xlf files are unstable.

Open rdebath opened this issue 8 years ago • 7 comments

The Txt2AL program generates different XLF files each time it's run. Please sort them so we can see the differences between runs.

rdebath avatar Jul 19 '18 16:07 rdebath

Can you explain a bit more? Do you mean that it generates a different filename each time or you get different content each time?

StanislawStempin avatar Jul 24 '18 08:07 StanislawStempin

I get a different content each time. It appears that the order of the labels are randomised due to the txt2al program being a multi-threaded program which completes conversion of various objects in an unpredictable order.

This also causes object numbers for the extension objects to be assigned in an apparently random order.

rdebath avatar Jul 24 '18 12:07 rdebath

After the strange stuff I experienced with #3026 and #3013 I executed two further runs with Convert-ModifiedObjectsToAl using the same unchanged database from the same container (version 13.0.23474.0-DE) and I can confirm that this happens. The content of the xlf file changes tremendously with each run. Even the file size differs. Attached are 3 versions (for de-DE), which really should be identical.
XLIFFVariations.zip

Kowa63 avatar Jul 26 '18 09:07 Kowa63

@Kowa63, Oh "****"!

The random tableextension (pageextension) numbers are in the translation file. It looks like those numbers would have to be pre-allocated or something.

translation-de-DE_V2.xlf:          <note from="Xliff Generator" annotates="general" priority="3">TableExtension tableextension70000014 - Field OPP ISO Bank Code - Property Caption</note>
translation-de-DE_V3.xlf:          <note from="Xliff Generator" annotates="general" priority="3">TableExtension tableextension70000013 - Field OPP ISO Bank Code - Property Caption</note>
translation-de-DE.xlf:          <note from="Xliff Generator" annotates="general" priority="3">TableExtension tableextension70000014 - Field OPP ISO Bank Code - Property Caption</note>

rdebath avatar Jul 26 '18 10:07 rdebath

Actually, there should not be anything in the 70000000 range in the file, that it another bug I reported with #2987.

Kowa63 avatar Jul 26 '18 11:07 Kowa63

Thanks for your input, we will look into fixing this issue

StanislawStempin avatar Aug 03 '18 10:08 StanislawStempin

The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 25582.

If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo

For more details on code branches and docker images please read: https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/ https://blogs.msdn.microsoft.com/freddyk/2018/04/16/which-docker-image-is-the-right-for-you/

ALGitHubBot avatar Dec 12 '18 12:12 ALGitHubBot