【问题标题】:Unable to get rendered content error in SDL Tridion无法在 SDL Tridion 中获取呈现的内容错误
【发布时间】:2012-12-02 08:43:42
【问题描述】:

我想知道 SDL Tridion 中可能出现“无法获取呈现的内容”错误的情况。我们使用 VBScript 进行模板化,我的事件日志中列出了一些场景。但我无法确定它的头或尾。

场景 1: 无法获取 Page (tcm:48-215280-64) 的渲染内容。

Error 5 occurred while rendering the Component Presentation (SMS gruppe:Artikkel): 
Invalid procedure call or argument: 'RemoveChild' (source:
        .RemoveChild .selectSingleNode("tcm).

场景 2:

Unable to get rendered content of Component (tcm:57-215271).
No data found. [ETA_ITEMS, U]
Cannot insert the value NULL into column 'ITEM_ID', table 'Tridion_cm_2011.dbo.ITEM_ASSOCIATIONS'; column does not allow nulls. INSERT fails.
The statement has been terminated.

场景 3:

Unable to get rendered content of Page (tcm:52-213774-64).
Error 1017 occurred while rendering the Page: Expected 'Then' (source:
   If Rendermode() != "PreviewDynamic" Then).

场景 4:

Unable to retrieve rendered data from Component Presentation.
Error 3004 occurred while rendering the Component Presentation (Nytt dagstilbud iPhone 4S:Artikkel): 
Write to file failed. (source:
              .SaveToFile strTempFile, conSaveCreateOverWrite).

场景 5:

Unable to get rendered content of Page (tcm:48-215164-64).
Error 3004 occurred while rendering the Component Presentation (Ring inn julen med Comoyo:Artikkel): 
Write to file failed. (source:
              .SaveToFile strTempFile, conSaveCreateOverWrite).

场景 6:

Unable to get rendered content of Page (tcm:48-215164-64).
Invalid value for property 'BinaryContent'. Unable to open uploaded file: C:\Windows\TEMP\tcm-48-215158square940.jpg.

如果你们中的任何人都可以给我任何关于问题可能出在哪里的线索,这将是有帮助的,以便我可以找到线索。提前非常感谢!

【问题讨论】:

标签: tridion tridion-2011 tridion-content-delivery


【解决方案1】:

场景 1 看起来像 VBScript 语法错误,因此很可能是模板代码中的拼写错误。场景 2 看起来有点问题,因为它是一个数据库错误。场景 3、4、5 和 6 看起来又像标准的 VBScript 语法错误。

一些例子,场景 3:

If Rendermode() != "PreviewDynamic" Then

有一个语法错误,它提到了Expected 'Then',所以我们知道错误在Then 语句之前的某个地方。仔细一看,变量RenderMode后面有双亲,不正确,应该是:

If RenderMode != "PreviewDynamic" Then

【讨论】:

  • 您希望将 VBScript 模板迁移到模块化模板的典型原因,因为您将不再遇到 C# 程序集或片段在运行时出现语法错误的问题。
  • VBScript 中的“不等于”运算符是“”,而不是“!=”。这就是错误的原因。
  • @John:非常感谢您的解释。模板中的这些语法错误可能仅在运行时导致问题,因为这些会导致内存问题,可能在我的脑海中,对象正在创建但未释放。
  • @Bart:是的,我们想迁移到 C# 程序集,但是该应用程序使用 VBScript 和 tridion 2009 已经很长时间了,现在我们将它迁移到了 2011。希望我们的客户能够试一试-ahead 用于 C# 而不是 VBScript。 :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-06-24
  • 2014-06-24
  • 1970-01-01
  • 1970-01-01
  • 2015-06-23
  • 1970-01-01
相关资源
最近更新 更多