I got a "a non-generated template is already present" error using TcmUploadAssembly
Asked Answered
K

1

6

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.

Kuban answered 25/4, 2016 at 15:2 Comment(0)
K
6

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.

Kuban answered 25/4, 2016 at 15:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.