I got a "generated template is already present" error message using TcmUploadAssembly

We used TcmUploadAssembly to update C # TBB in a Tridion 2013 installation and recently met:

Error: Cannot generate template with name Correct Self Closing Elements, since a non-generated template is already present. 

In our case, "Correct Self-Closing Elements" is the name of the C # class. It is contained in an assembly that was previously downloaded and works correctly. At this point, the C # project compiles correctly, the assembly is included as TBB, and the class is included as TBB, which refers to the assembly.

+6
source share
1 answer

One of our users manually created a TBB entry in Tridion. He had the code entered:

 <%RunTemplate Template="tcm:14-29653-2048" Class="Tridion.AccountCenter.TemplateBuildingBlocks.CorrectSelfClosingElements"%> 

What he forgot, from his copy and paste, was a seemingly innocuous commentary above this. The code he inserted was supposed to read:

 /* This template was generated through the Tridion Assembly Template Upload */ <%RunTemplate Template="tcm:14-29653-2048" Class="Tridion.AccountCenter.TemplateBuildingBlocks.CorrectSelfClosingElements"%> 

TcmUploadAssembly explicitly searches for this comment and generates a "non-generated" error if it does not find it.

+6
source

All Articles