Copied to clipboard

Flag this post as spam?

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


  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Apr 16, 2009 @ 11:36
    Jan Skovgaard
    0

    umbraco.library:GetCurrentMember() fails in v4.0.1 ?

    Hi People

    Have any of you expierienced that the insertion of umbraco.library.GetCurrentMember() fails?

    When I hit save in my macro the following error message is thrown at me

    [code]
    umbraco.DataLayer.SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteXmlReader ---> System.ArgumentException: The query didn't return a value.
    at umbraco.DataLayer.SqlHelper1.ExecuteXmlReader(String commandText, P[] parameters) in d:\inetpub\wwwroot\ccnet\Source\Umbraco 4.0\umbraco\datalayer\SqlHelper.cs:line 314<br /> at umbraco.DataLayer.SqlHelper1.ExecuteXmlReader(String commandText, IParameter[] parameters) in d:\inetpub\wwwroot\ccnet\Source\Umbraco 4.0\umbraco\datalayer\SqlHelper.cs:line 263
    --- End of inner exception stack trace ---
    at umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, IParameter[] parameters) in d:\inetpub\wwwroot\ccnet\Source\Umbraco 4.0\umbraco\datalayer\SqlHelper.cs:line 267
    at umbraco.cms.businesslogic.Content.ToXml(XmlDocument xd, Boolean Deep)
    at umbraco.cms.businesslogic.member.Member.ToXml(XmlDocument xd, Boolean Deep)
    at umbraco.library.GetCurrentMember()
    [/code]

    It is in v4.0.1 I expierience this. I just tried to insert the following in a clean macro in v3 and there I have no trouble saving the file.

    [code][/code]

    Has anyone expirienced something similar?

    Do I need to modify something in the installation? Otherwise I think I could alternatively use the GetMember() function, but I would rather use this one.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies