Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8733159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:35:32+00:00 2026-06-13T09:35:32+00:00

In particular, the case I have in mind is this: @@RenderComponentPresentation(Component, <vbs-legacy-ct-tcm-uri>)@@ The problem

  • 0

In particular, the case I have in mind is this:

@@RenderComponentPresentation(Component, "<vbs-legacy-ct-tcm-uri>")@@

The problem I’m having is that in my case VBS code breaks when it tries to access component fields, giving “Error 13 Type mismatch ..”.

(So, if I were to give the answer, I’d say: “Partially, of no practical use”)

EDIT
The DWT above is from another CT, so effectively it’s a rendering of component link, that’s why parameterless overload as per Nuno’s suggestion won’t work unfortunately. BTW, the following lines inside VBS don’t break and give correct values:

WriteOut Component.ID
WriteOut Component.Schema.Title

EDIT 2

Dominic was absolutely wright: it’s a missing dependencies.

A bit more insight to make this info generally useful:

Suppose, the original CT looked like this (“VBScript [Legacy]” type):

[%
Call RenderComponent(Component)
%]

This CT was meant to be called from a PT, also VBS-based. That PT had a big chunk of “#include” statements in the beginning.

Now the story changes: the same CT is being called from another, DWT-based, CT. Obviously (thanks you all for your invaluable help!), dependencies are now not being included anywhere.

The solution to make original CT working again is to explicitly hand-pick and include all necessary VBS TBBs, so the original CT becomes:

[%
#include "tcm:<uri-of-vbs-tbb>"
Call RenderComponent(Component)
%]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:35:33+00:00Added an answer on June 13, 2026 at 9:35 am

    Yes – it’s perfectly possible to mix and match legacy and modular templates. Perhaps obviously, you can’t mix and match template building blocks between the two techniques.

    In VBScript “Error 13 Type mismatch” is sometimes used as a secret code that really means “I don’t recognise the name of one of your variables, (including the names of Functions and Subs)” In the VBScript templating engine, variables from the page template could be in scope in your component template; it was very common, for example, to put the #includes in the PT so they could be used by the CT. My guess is that your component template is trying to use such a Function, and not finding it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The particular case I have is like this: I have a Transaction model, with
I have a collection with an index on :created_at (which in this particular case
I got this problem that I can't just solve algorithmically. Let's say i have
e.g. if you have code that does something like this somewhere in your codebase:
This is more a general question but my particular case involves a ruby/rails app
I'm still not sure I totally get how this particular case should work out.
I'm using a detailsview control to update a record, however in this particular case
I have a particular case where using compound dictionary keys would make a task
I'm having trouble coming up with a regular expression to match a particular case.
Macros don't seem to take into account keystrokes. In this particular case I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.