I had a problem with the Default Finish Actions
TBB containing the wrong namespace for some of the Parameter Schemas it referenced (but didn't use). This was causing the publishing of items (Pages and Components) that used the TBB to fail:
<TemplateInvocation>
<Template xlink:href="tcm:9-378-2048" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="Convert Xml to Html" />
<TemplateParameters>
<Parameters xmlns="uuid:1129c935-725b-4c65-a38e-161ce749f2f1" />
</TemplateParameters>
</TemplateInvocation>
As the parameters were not being used, I removed the reference from the Default Finish Actions
TBB:
<TemplateInvocation>
<Template xlink:href="tcm:9-378-2048" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="Convert Xml to Html" />
</TemplateInvocation>
This appeared to fix the problem and I was able to preview the pages and run them through Template Builder. However, when I came to publish the page, it failed with the same error as before in the publish transaction:
Unexpected namespace URI: uuid:1129c935-725b-4c65-a38e-161ce749f2f1. Expecting: uuid:faf6fb43-0c5b-4459-be1c-46c8842ad289.
Remembering that the Publisher caches some of the templating code, I restarted the Publisher and Transport services on the Publisher server. (The Publisher is located on a separate server than the Content Manger install.) This did not fix the problem and I was still getting the same publishing error.
Following this I've restarted the Publisher server - and I am still getting the same error.
I have enabled logging for the Publisher (in the Snap-in) and I'm getting the following message in the logs:
15/03/2013 09:39:24 <5056> Storage location: c:\Temp\tcm_0-397559-66560.Content\
15/03/2013 09:39:25 <5056> Using resolver [Tridion.ContentManager.Publishing.Resolving.PageResolver]
15/03/2013 09:39:25 <5056> Resolving the pages [tcm:53-127413-64] took 00:00:00.1104738
15/03/2013 09:39:25 <5056> Page tcm:53-127413-64 resolved to 1 items. Resolving took: 00:00:00.1907868
15/03/2013 09:39:25 <5056> Rendering item [tcm:53-127413-64] 'Index' with template [tcm:53-2532-128] 'PT01 Landing Page' in publication target [tcm:0-5-65537] 'Training Staging'
15/03/2013 09:39:32 <5056> Rendering item [tcm:53-21778] 'About us - Content' with template [tcm:53-2430-32] 'CP17_ContentBlock_CT' in publication target [tcm:0-5-65537] 'Training Staging'
15/03/2013 09:39:39 <5056> Rendering of item [tcm:53-127413-64] 'Index' with template [tcm:53-2532-128] 'PT01 Landing Page' in publication target [tcm:0-5-65537] 'Training Staging' failed
15/03/2013 09:39:39 <5056> Deleting the transport package.
15/03/2013 09:39:39 <5056> Updating the publish transaction with the list of processed items
15/03/2013 09:39:39 <5056> Unexpected namespace URI: uuid:1129c935-725b-4c65-a38e-161ce749f2f1. Expecting: uuid:faf6fb43-0c5b-4459-be1c-46c8842ad289.
Unfortunately, this does not give me any more information that I had before! Is there a way to increase the logging level so that I get more information? (I think that this is in the TcmPublisher.exe.config, but I cannot see where to update it.)
Is the template cache stored on the file system somewhere? Or do I need to restart something on the CM machine maybe to pick up the changes?
CP17_ContentBlock_CT
still has the XML with the namespace? I had to do quite some template hunting recently with the same issue...