我想知道 SDL Tridion 中可能出现“无法获取渲染内容”错误的场景。我们使用 VBScript 进行模板化,我在我的事件日志中得到了如下所列的一些场景。但我无法理解它的头部或尾部。
场景一:
无法获取页面的渲染内容 (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.
如果你们中的任何人能给我任何关于问题可能在哪里的线索,以便我可以得到指导,那将会很有帮助。非常感谢!
最佳答案
场景 1 看起来像是 VBScript 语法错误,因此很可能是模板代码中的拼写错误。场景 2 看起来有点问题,因为它是一个数据库错误。场景 3、4、5 和 6 都再次看起来像标准的 VBScript 语法错误。
一些例子,场景 3:
If Rendermode() != "PreviewDynamic" Then
有一个语法错误,它提到了
Expected 'Then'
所以我们知道错误在 Then
之前的某个地方陈述。仔细看看,你在变量 RenderMode
后面有括号。 ,这是不正确的,它应该是:If RenderMode != "PreviewDynamic" Then
关于tridion - 无法在 SDL Tridion 中获取渲染内容错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13877140/