Failed to find the root item "/"

260 views
Skip to first unread message

Dave Brooks

unread,
May 21, 2014, 12:22:26 PM5/21/14
to glass...@googlegroups.com

Hi,

(I realise before I type this that probably we have a Sitecore issue not a Glass issue... but our system is built around Glass and the exception is being thrown when we call a Glass method so I'm hoping you can shed some light on it in the first instance. I'll then raise a ticket with Sitecore)

We are importing data into Sitecore and I've just tweaked the importer so instead of using SecurityDisabler it now uses Sitecore.Security.Accounts.UserSwitcher to import the data as a real user with the appropriate security permissions.

Creating items works fine, but when updating existing items, this line throws an exception:

    _sitecoreService.Save(existingEntity);

As well as throwing an exception, it appears to also save the data to Sitecore. The error message we are seeing is:

    An instance of Sitecore.Data.Items.Item was null. Additional information: Failed to find the root item "/".

The user has read access everywhere and should have write access everywhere it needs to have it, so the message is a bit meaningless to me.

Can anyone give me any advice?

Thanks in advance for your help!

Regards

David

Tom Underhill

unread,
Aug 22, 2014, 5:43:19 AM8/22/14
to glass...@googlegroups.com
I realise it's been a while, but did you find a solution to this issue? Seeing the same thing.

Thomas W.

unread,
May 11, 2015, 8:52:07 AM5/11/15
to glass...@googlegroups.com
me the same.Any solutions.

Thomas W.

unread,
May 12, 2015, 3:52:00 AM5/12/15
to glass...@googlegroups.com
FYI. I solved it by enabling viewstate again in the web.config:

<pages validateRequest="false" controlRenderingCompatibilityVersion="4.0" enableViewState="true">
Reply all
Reply to author
Forward
0 new messages