We've been using TcmUploadAssembly to update the C# TBBs in a Tridion 2013 installation, and have recently come across:
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 a C# class. It is contained in an assembly that had previously been uploaded and was working correctly. At this point the C# project compiles properly, the assembly is included as a TBB, and the class is included as a TBB that references the assembly.
One of our users had manually created the TBB entry within Tridion. He had the code entered as:
<%RunTemplate Template="tcm:14-29653-2048"
Class="Tridion.AccountCenter.TemplateBuildingBlocks.CorrectSelfClosingElements"%>
What he had left out, from his copy & paste, was a seemingly innocuous comment above that. The code that he pasted should have read:
/* This template was generated through the Tridion Assembly Template Upload */
<%RunTemplate Template="tcm:14-29653-2048"
Class="Tridion.AccountCenter.TemplateBuildingBlocks.CorrectSelfClosingElements"%>
TcmUploadAssembly looks for that comment explicitly, and throws the "non-generated" error if it doesn't find it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With