Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • seanrock 241 posts 462 karma points
    Aug 21, 2011 @ 17:37
    seanrock
    0

    Error when adding Templates

    i'm getting this:

     

    Data is Null. This method or property cannot be called on Null values.

    [SqlNullValueException: Data is Null. This method or property cannot be called on Null values.]
       System.Data.SqlClient.SqlBuffer.get_Int32() +4839015
       System.Data.SqlClient.SqlDataReader.GetInt32(Int32 i) +38
       umbraco.DataLayer.RecordsReaderAdapter`1.GetInt(String fieldName) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\RecordsReaderAdapter.cs:285
       umbraco.cms.businesslogic.template.Template.setupTemplate() +150
       umbraco.cms.businesslogic.template.Template.GetAllAsList() +223
       umbraco.loadTemplates.Render(XmlTree& tree) +49
       umbraco.cms.presentation.tree.LoadTree(String treeAlias) +69
       umbraco.cms.presentation.tree.Page_Load(Object sender, EventArgs e) +153
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    

     

    when trying to add new templates. i can see in the db there are templates - as this site was working ok previously.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Aug 21, 2011 @ 18:47
    Jan Skovgaard
    0

    Hi Seanrock

    Could you tell us a bit more about the version of Umbraco you experience this on and what database you're running it on etc.?

    Can you describe how you're trying to add the templates?

    /Jan

  • seanrock 241 posts 462 karma points
    Aug 21, 2011 @ 22:28
    seanrock
    0

    umbraco v 4.0.3 (Assembly version: 1.0.3625.27276)

  • seanrock 241 posts 462 karma points
    Aug 21, 2011 @ 22:30
    seanrock
    0

    right click on the templates node and 'create'. when i click the arrow to expand the templates node i can see in firebug this same exception.

Please Sign in or register to post replies

Write your reply to:

Draft