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