AL icon indicating copy to clipboard operation
AL copied to clipboard

Txt2Al: The Change is not a known trigger

Open rslovak opened this issue 6 years ago • 5 comments

Describe the bug I am converting C/AL objects to AL. I have prepared delta files and run txt2al. For some files (47 from over 1000 files) with this error :

----ERROR---- Error converting file: c:\txt2al\delta\PAG132.DELTA The Change is not a known trigger. Parameter name: elementType

To Reproduce txt2al.exe --source=c:\txt2al\delta --target=c:\txt2al\target --translationFormat=XLIFF --addLegacyTranslationInfo

  1. example of delta files PAG132.txt TAB97.txt

Expected behavior

Screenshots obrazek

5. Versions:

  • Business Central: Versions: 14.0.38560.0

rslovak avatar Jan 14 '20 07:01 rslovak

I have the same issue at around 80 Std. Range Objects. trying to convert a DK Version to AL. Txt2Al is from a 14.0.41862.

KristofKlein avatar May 15 '20 06:05 KristofKlein

Have the same problem

Txt2AL version 14.0.41862.0 and 14.0.45012.0 both fail

Example on delta that fails

OBJECT Modification "General Ledger Setup"(Table 98) { OBJECT-PROPERTIES { Date=20180919D; Time=130000T; Version List=NAVW113.00,PF1.01; } PROPERTIES { Target="General Ledger Setup"(Table 98); } CHANGES { { Insertion ;Documentation=BEGIN PF1.00 PKR 29.06.2018 Added fields 50000..50005. END; } { Insertion ;InsertAfter="Show Amounts"(Field 164); ChangedElements=FieldCollection { { 50000; ;From Salary Dimension Code;Code20 ;TableRelation=Dimension; CaptionML=[DAN=Fra dimensionskode l›n; ENU=From Salary Dimension Code] } { 50001; ;From Salary Dim. Value Filter;Code50; TableRelation="Dimension Value"."Consolidation Code" WHERE ("Dimension Code"=FIELD("From Salary Dimension Code"), "Dimension Value Type"=CONST(Standard)); ValidateTableRelation=false; TestTableRelation=false; CaptionML=[DAN=Fra dim.v‘rdifilter l›n; ENU=From Salary Dim. Value Filter] } { 50002; ;To Salary Dimension Code;Code20 ;TableRelation=Dimension; CaptionML=[DAN=Til dimensionskode l›n; ENU=To Salary Dimension Code] } { 50003; ;To Salary Dim. Value Filter;Code50 ;TableRelation="Dimension Value"."Consolidation Code" WHERE ("Dimension Code"=FIELD("To Salary Dimension Code"), "Dimension Value Type"=CONST(Standard)); ValidateTableRelation=false; TestTableRelation=false; CaptionML=[DAN=Til dim.v‘rdifilter l›n; ENU=From Salary Dim. Value Filter] } { 50004; ;Default Dimension Code;Code20 ;TableRelation=Dimension; CaptionML=[DAN=Standard dimensionskode; ENU=Default Dimension Code] } { 50005; ;Default Dimension Value Code;Code20;TableRelation="Dimension Value".Code WHERE ("Dimension Code"=FIELD("Default Dimension Code"), "Dimension Value Type"=CONST(Standard)); CaptionML=[DAN=Std. dimensionsv‘rdikode; ENU=Default Dimension Value Code] } } } { PropertyModification; Property=Version List; OriginalValue=NAVW114.01; ModifiedValue=NAVW113.00,PF1.01 } } CODE {

BEGIN
END.

} }

slnbornerup avatar Nov 03 '20 08:11 slnbornerup

The problem relates to CaptionML and problaby special chars, in my case danish letters. Removing the CaptionML fixes the problems.

slnbornerup avatar Nov 04 '20 09:11 slnbornerup

Removing the --addLegacyTranslationInfo parameter from the Txt2Al on the command line also fixed the problem, but now without the extra 'note from="Transitional"' node in the xlf files.

ian-scho avatar Sep 23 '21 15:09 ian-scho

Hi! Thank you for reporting this issue with the Txt2Al conversion tool.

The Txt2Al tool was designed for the initial migration from C/AL to AL. Since this was reported, the tool has received updates, and the AL ecosystem has matured significantly. We're closing this as part of a cleanup of older issues.

If you still need to convert C/AL objects and encounter this error, please open a new issue with the specific delta file content.

Thank you for your contribution to the Business Central developer community!

SBalslev avatar Mar 16 '26 11:03 SBalslev