Related Tags:
CMS A content management system (CMS) is a software application or set of related programs that are used to create and manage digital content. CMSes are typically used for enterprise content management (ECM) and web content management (WCM) Learn More, Sitecore Sitecore is one of the leading enterprise-level content management systems built on ASP.NET, enabling web content editors and marketers to have full control over all aspects of their website from social integration and blog posts to advanced personalisation, e-commerce and more. Launched in 2001, Sitecore has used the .NET platform from the beginning of the language itself, and has been growing in popularity over the last few years. Currently on its 7th major version, it now runs on .NET 2.0/4.0, and the core has been rewritten from scratch to take advantage of the improvements made in ASP.NET 4.5. Learn More, Back-end relating to or denoting the part of a computer system or application that is not directly accessed by the user, typically responsible for storing and manipulating data. e.g "a back-end database server" Learn More, Sitecore 8.1 Sitecore is a Web Content Management System (CMS) built on Microsoft ASP.net. This tag is for sitecore version 8.1 Learn More,

"Sitecore: Value cannot be null. Parameter name uri" error makes items inaccessible in sitecore cms backend

Description:we are using sitecore 8.1 and while using the cms backend our content team have raised some issue that they have mistakenly updated some wrong value in the "__Source Item" field of an item and after that the even the home item in that tree is inaccessible and throwing the following error

Sitecore: Value cannot be null.
Parameter name uri



Note: previous value for the "__Source Item" was empty and it was unintentionally updated

Posted by: | Posted on: Sep 13, 2021

2 answers

Replies

4

we had also faced similar issue on one of our site as well. The solution worked for us was that we needed to make an update directly to our master database.
For that we need to follow the three steps
1)connect to your master database and execute the following query which bring all the records where the "__Source Item" has updated as '19B597D3-2EDD-4AE2-AEFE-4A94C7F10E31' is the default field Id for "__Source Item"

SELECT TOP 100 [Id],[ItemId],[FieldId],[Value],[Created],[Updated]
FROM [SharedFields]
where Fieldid = '19B597D3-2EDD-4AE2-AEFE-4A94C7F10E31'
order by [Updated] desc

2)Then need to run the following command to delete that specific entry where there is some wrong value updated. By replacing the ItemId in the following query, the ItemId can be obtained through the query mention in the step 1)

DELETE FROM [SharedFields]
where FieldId='19B597D3-2EDD-4AE2-AEFE-4A94C7F10E31' and ItemId = 'yourItemId'

3) After deleting that entry from the database we need to restart the site.

Replied by: | Replied on: Sep 13, 2021



1

Thanks a lot @Tabish Usman that solution really solved the problem and saved my day as well.




Replied by: | Replied on: Sep 14, 2021



Reply
×

Code block Hyperlink bold Quotes block Upload Images

Preview