The content item has already been checked out by another user and you cannot unlock it
When editing any content item or page in sitefinity during a user edit the item become locked, tough users with modify permissions can unlock this item and therefore lock it themselves. It appears you are editing an item and at the same time other user have unlocked it, got it locked by himself and you can`t continue publishing changes to it.
Make sure before attempting further edits to unlock the item (the icon for the item will become green) and after edits will be saved without the error.
If this is not occurring let me know further details in what set of steps the issue occurs?
Has anyone found a fix for this issue.
I am putting a ticket in with Telerik to see what they have to say about the issue.
We are experiencing this same issue. Has there been a fix for this or a known culprit to the problem?
One workaround is to have an admin go re-publish the page and the Editors are then able to modify and change the item. The item is showing published when the issue occurs as well, so there is no indication that it is "checked out". When an item is Locked, we typically see that listed on the item, but for the content items we do not see this. From my knowledge the "Locked For Editing" only appears on Pages and Page Templates. I have not seen Content items be in a "Locked For Editing" status. I only have seen Published and Draft statuses.
Can someone provide any details on this issue or know a fix?
I am glad you replied because I just got a response from Telerik support on this issue. They provided me with the following code, although this will need to be modified to fit your situation. This code will correct one single item.
Thanks for the code snippet, but we do not want to implement the code every time this situation occurs. We do have a back-end solution, but would not want any functionality like this in code-behind. It would still require someone to execute the code. Hopefully we can get a response from Telerik as to why this happens and what the cause is. My concern is there is no indicator via the UI that the item is "checked-out".
Once again, thanks for the information Craig.
Below is the exact response that Telerik gave me before providing the code snippets above.
The problem occurs because indeed some items (not all) form product groups have been checked out and the check in was not completed. The icon of the item indicates published because modules built with the module builder doesn`t implement item locking (when the item have been checkout it will appear as locked by some user).
To resolve execute the below query to get the item that encounters a problem and check in this item, change the item url.
Was there ever a resolution to this besides the code work around? I have the same issue, currently anytime an editor runs into this situation they call me, I go in and publish the item as an administrator and this clears up the lock for the editor. Is there a certain permission I can give the editor that will basically do the same thing for them? In other words, which permission specifically as an Admin allows me to just publish it to unlock it for others?
Can only Administrator's role unlock items (pages, news, events, etc) still (without running some code)? Any update to this in newer released versions? I am about to make the website admin an Administrator and then have to go and set permissions for her to not be able to go into certain areas. But that's a little scary!
This is a very annoying issue caused by the auto-locking of an item when editing (which imo is a very bad idea/design - it should allow users to select then they want to check out something for edit).
The alternative solution I was given is to create a widget that displays the list of locked items and allow the user to unlock it. You can then grant permission to that page for someone below administrator.
This is an example if you are dealing with dynamic modules:
DynamicModuleManager dynamicModuleManager = DynamicModuleManager.GetManager();
Type dynamicModuleType = TypeResolutionService.ResolveType("Your dynamic content type.");
DateTime dueDateTime = DateTime.Now.AddDays(1);
var items = dynamicModuleManager.GetDataItems(dynamicModuleType)
.Where(x => x.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Temp && (x.DateCreated > dueDateTime)).ToList();
// Note: you should not do SaveChanges on more than 500 items in a single batch.
items.ForEach(tempItem => dynamicModuleManager.DeleteDataItem(tempItem));
Thank you for sharing solution with the community.
Is there a way to get around this without using code? I still have an issue where users are locking each other out of editing a content item in a module that we have built. Instead of using a module, if I set up a shared content block that they can edit, would that eliminate the problem or could they still potentially lock the content block and then only they or an administrator could unlock it?
There is a Sitefinity feature request for settings to "Enable non Administrators to unlock content items". You can vote for it here: