Protecting changes to generated JET transformation code

To prevent changes to the main.jet template from being overwritten when you modify the main.jet template directly, you must modify or remove the <%--@generated--%> comment that corresponds to the change that you want to protect.
To protect the changes to the main.jet template:
  1. In the Project Explorer view, in the transformation project, right-click the main.jet file; then click Open.
  2. Search for the c:set JET tag that contains the name of the input schema element or action that you want to modify.
  3. Remove or modify the <%--@generated--%> tag. For example, you might change this tag to <%--@!generated--%>.
  4. Edit the element or action.
  5. Click File > Save.
The next time that you run the Update Project command, code is not generated for the schema element or attribute.
Related concepts
JET transformation authoring
Related tasks
Generating JET templates
Editing JET templates
Editing calculation instructions for derived attributes for JET transformations
Related information
Tutorials for JET transformations

Feedback