Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Jul 31, 2012 @ 20:03
    Carlos
    0

    System.ArgumentException: The query didn't return a value.

    We are getting an error when we try to open some of our trees with the Multi-node tree picker.  Our tree is about 4 levels deep. But it works on some nodes in the tree and not on others. Below is the log error we are getting.  What would be the issue? Does anyone have a fix. We are a large organization with a large site.
     We are using Umbraco 4.7.1 and uComponents 3.1.  

    I did see a thread with and issue with 4.5.2 and a "Remove at" date, but there is not Remove at date set.  Could it be special characters? or anything like that?

    Error below:

    At /umbraco/webservices/TreeDataService.ashx?rnd=c243a834cfbd4e3fa904e9e226250820&id=12986&treeType=FilteredContentTree&contextMenu=false&isDialog=true&dialogMode=id&nodeKey=13009&rnd2=27.1 (Referred by: http://www.ourwebsite.org/umbraco/editContent.aspx?id=12925): System.ArgumentException: The query didn't return a value. at umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, P[] parameters) at umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, IParameter[] parameters)

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 04, 2012 @ 10:27
    Lee Kelleher
    0

    Hi Carlos,

    I haven't seen that issue with MNTP before.  It could be to do with content being unpublished, but not sure at this stage.

    Next time it happens, could you try viewing the full "TreeDataService.ashx" URL, (with all the querystring data), to see if you find any other error messages. If so, could you copy-n-paste the full stack/trace exception on here? (It might give me a pointer to where the issue lies.)

    Thanks, Lee.

  • Carlos 338 posts 472 karma points
    Aug 06, 2012 @ 17:59
    Carlos
    0

    Lee, 

    Thanks for the response. I can actually get it to do it everytime on certain nodes.  

    The nodes are published though.  I will try to look in the TreeDataService.ashx and let you know what I find.

    Thanks again for the response.

  • Carlos 338 posts 472 karma points
    Aug 06, 2012 @ 18:29
    Carlos
    0

    @Lee,

    This is the StackTrace I got back:

    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.ArgumentException: The query didn't return a value.

    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.
    [ArgumentException: The query didn't return a value.]
       umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, P[] parameters) +136
       umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, IParameter[] parameters) +86
    
    [SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteXmlReader]
       umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, IParameter[] parameters) +141
       umbraco.cms.businesslogic.web.Document.importXml() +135
       umbraco.cms.businesslogic.web.Document.ToXml(XmlDocument xd, Boolean Deep) +46
       uComponents.Core.DataTypes.MultiNodeTreePicker.FilteredContentTree.OnRenderNode(XmlTreeNode& xNode, Document doc) +238
       umbraco.cms.presentation.Trees.BaseContentTree.Render(XmlTree& Tree) +166
       umbraco.presentation.webservices.TreeDataService.LoadTree(TreeRequestParams treeParams) +75
       umbraco.presentation.webservices.TreeDataService.GetXmlTree() +140
       umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context) +55
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

     

    Below are screen shots of my process.  There are child nodes in the tree that are unpublished that I am trying to open to view their children , but I can't get to them to chose them because I can not open the some of the trees in the Multi Tree Node Picker. But other nodes with unpublished children, I am able to get inside those trees. So I am not sure what the issue is.  Again, some work and others don't.  But specific ones are having the issues, it is not very random.  Certain nodes I try to view the children of are having the issue.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 06, 2012 @ 22:35
    Lee Kelleher
    0

    Hi Carlos,

    I've taken a look at the source-code for MNTP (and Umbraco core) to see where it might be failing. From how I understand it, when each tree node is rendered by MNTP the XML for that document/content node is called.  But for some reason the nodes that are failing must be in some *dirty* state, where they are marked as published, but don't have any XML generated for them. (Not sure how that situation could happen!)

    It might be worth re-publishing those content nodes to make sure that the XML is generated for them.

    Cheers, Lee.

  • Carlos 338 posts 472 karma points
    Aug 06, 2012 @ 23:22
    Carlos
    0

    @Lee,

    That totally worked.  I republished the trees that were having issues and they work now. Do you think it could be the huge amount of nodes the the size of the XML we have?  Either way, republishing worked.

     

    Thanks again.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 06, 2012 @ 23:29
    Lee Kelleher
    0

    Not sure how it might have happened, it does seem that certain content nodes were marked as Published but didn't have any XML. Wondering if there is any custom code (or 3rd party package) that might be interferring with the publishing?

    Glad that you've got this immediate problem sorted.

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft