Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to get rendered content error in SDL Tridion

I would like to know the scenarios in which "Unable to get rendered content" error might occur in SDL Tridion. We use VBScript for templating and I get a few scenarios as listed below in my event logs. But I am not able to make head or tail of it.

Scenario 1: Unable to get rendered content of 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).

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

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

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

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

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

It would be helpful if any of you could give me any clue as of where the problem might possibly be so that I could have a lead. Thanks a lot in advance!

like image 631
Keirthana Avatar asked Dec 14 '12 10:12

Keirthana


1 Answers

Scenario 1 looks like a VBScript syntax error, so most likely a typo in your template code. Scenario 2 looks a bit more problematic, because its a database error. Scenario 3, 4, 5 and 6 all look like standard VBScript syntax errors again.

Some examples, Scenario 3:

If Rendermode() != "PreviewDynamic" Then

Has a syntax error and it mentions Expected 'Then' so we know the error is somewhere before the Then statement. Taking a closer look, you have parentesis behind the variable RenderMode, which is incorrect, it should be:

If RenderMode != "PreviewDynamic" Then
like image 157
John Bax Avatar answered Nov 18 '22 07:11

John Bax