Copied to clipboard

Flag this post as spam?

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


  • Bo Altofte Hansen 2 posts 22 karma points
    Jun 30, 2014 @ 16:00
    Bo Altofte Hansen
    0

    Content tree nodes do not load

    I have a problem that makes /umbraco/webservices/TreeDataService.ashx crash when loading the content tree in the umbraco UI!

    umbraco v 4.5.2 (Assembly version: 1.0.3891.20719)

    Any suggestion to where and in which tables i should look for the cause of this error would be highly appreciated

    I tracked the error through the log table to:

    http://intradevbo/umbraco/webservices/TreeDataService.ashx?rnd=b72caa0abc0143e19f631a18edb557a8&id=1106&treeType=content&contextMenu=true&isDialog=false&rnd2=67.1

    Which returns the following error

    Server Error in '/' Application.

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

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    [SqlNullValueException: Data is Null. This method or property cannot be called on Null values.]
       System.Data.SqlClient.SqlBuffer.get_Int32() +5056576
       System.Data.SqlClient.SqlDataReader.GetInt32(Int32 i) +38
       umbraco.DataLayer.RecordsReaderAdapter`1.GetInt(String fieldName) +36
       umbraco.cms.businesslogic.web.Document.PopulateDocumentFromReader(IRecordsReader dr) +545
       umbraco.cms.businesslogic.web.Document.GetChildrenForTree(Int32 NodeId) +506
       umbraco.cms.presentation.Trees.BaseContentTree.Render(XmlTree& Tree) +80
       umbraco.loadContent.Render(XmlTree& tree) +50
       umbraco.presentation.webservices.TreeDataService.LoadTree(TreeRequestParams treeParams) +157
       umbraco.presentation.webservices.TreeDataService.GetXmlTree() +198
       umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context) +85
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 30, 2014 @ 19:47
    Jan Skovgaard
    0

    Hi Bo and welcome to our :)

    Could you share a bit more information about the solution? When did the error start happening? Has there been done any custom integration using the API's etc.?

    /Jan

  • Bo Altofte Hansen 2 posts 22 karma points
    Jul 04, 2014 @ 14:07
    Bo Altofte Hansen
    0

    Hi Jan!

    The solution is an intranet with a news administration module that uses the umbraco api.

    I made some changes to this module, and testing these changes made the module crash during the saving opereation of a newly created news topic.

    The problem was easyly solvedm and the newmodule works fine now, but the above mentioned crash left my umbraco content tree out off sync in some way.

    Saving news with the newsmodule does not affect the umbraco.config file, so i figure the problem must be found somwhere in one of the umbraco tables, but i just cannot figure out where.

    /Bo

Please Sign in or register to post replies

Write your reply to:

Draft