Transformation Error

rajitha somarathna asked on October 24, 2014 07:33

I used a transformation which has custom transformations too.. But it comes an error CMSAbstractTransformation.DataBind]: Object reference not set to an instance of an object.

can you please tell me how to overcome.. what is the wrong with transformation..

My transformation as below

<a href="<%# CMS.DocumentEngine.DocumentHelper.GetDocument(CMS.Helpers.ValidationHelper.GetInteger(Eval("NodeLinkedNodeID"), 0), "en-gb", new CMS.DocumentEngine.TreeProvider(CMS.Membership.MembershipContext.AuthenticatedUser)).NodeAliasPath %>">
<img class="img-responsive" src="<%#GetRangeDefaultImageForFeaturedOrRelated(Eval<int>("NodeLinkedNodeID"))%>" alt=""></li>
 <%#Eval("ItemName") %>
 <%#Eval("ItemCode") %>
 <%#Eval("ItemDescription") %>
 </a>
<input name="txtQty_<%# Eval<int>("NODEID") %>_<%# Eval<int>("SKUID") %>" type="text" size="3" id="txtQty_<%# Eval<int>("NODEID") %>_<%# Eval<int>("SKUID") %>" value="01"></li>
<%# GetCustomerBasedSKUListPriceOfRelatedProduct(Eval<int>("SKUID"))%>
<%# GetCustomerBasedSKUPriceOfRelatedProduct(Eval<int>("SKUID"))%>
<%# GetSKUCustomBuyActions(Eval<int>("SKUID"), Eval<int>("NODEID"),Eval<string>("ItemCode"))%>

Recent Answers


rajitha somarathna answered on October 24, 2014 07:35

<a href="<%# CMS.DocumentEngine.DocumentHelper.GetDocument(CMS.Helpers.ValidationHelper.GetInteger(Eval("NodeLinkedNodeID"), 0), "en-gb", new CMS.DocumentEngine.TreeProvider(CMS.Membership.MembershipContext.AuthenticatedUser)).NodeAliasPath %>"> <img class="img-responsive" src="<%#GetRangeDefaultImageForFeaturedOrRelated(Eval

0 votesVote for this answer Mark as a Correct answer

rajitha somarathna answered on October 24, 2014 07:36

<%#Eval("ItemName") %> <%#Eval("ItemCode") %> <%#Eval("ItemDescription") %> <input name="txtQty_<%# Eval

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 24, 2014 13:46

Kind of hard to read your code and it looks like some is missing. You might try the preview button prior to posting.

0 votesVote for this answer Mark as a Correct answer

Yehuda Lando answered on October 24, 2014 19:36

Just guessing, but this seems wrong: new CMS.DocumentEngine.TreeProvider(CMS.Membership.MembershipContext.AuthenticatedUser)).NodeAliasPath

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.