10

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

场景一:无法获取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).

场景二:

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).

场景四:

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.

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

4

1 回答 1

7

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

一些例子,场景 3:

If Rendermode() != "PreviewDynamic" Then

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

If RenderMode != "PreviewDynamic" Then
于 2012-12-14T11:42:26.240 回答