Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

XsltListViewWebpart with custom xsl throws exception - The file is not checked out

$
0
0

Hi

I am using a XSLTListViewWebpart on a page. I have written a custom xsl for rendering and referred that in XSL link in Miscellaenous section in toolpart. The webpart once in a while throws an exception that webpart cannot be updated as the file is not checked out. Here's the complete exception

"Attemping to add or update an IListWebPart.

Attemping to add or update webpart id C3A3C2E3-3057-4CF0-A878-3BD0464D6CBC, list {D2806BA4-BA94-416D-B222-D78D6FC5A487}, flags 8388621, type 1, base view id 1.

The file is not checked out.  You must first check out this document before making changes.

Error while executing web part: Microsoft.SharePoint.WebPartPages.WebPartPageUserException: The file is not checked out.  You must first check out this document before making changes.     at Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesCore(SPLayoutProperties layoutProperties, Boolean httpGet, Boolean saveCompressed, Boolean skipRightsCheck, Boolean skipSafeAgainstScriptCheck, WebPartTypeInfo& newTypeId, Byte[]& newAllUsersProperties, Byte[]& newPerUserProperties, String[]& newLinks)     at Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesInternal(SPLayoutProperties layoutProperties, Boolean skipRightsCheck, Boolean skipSafeAgainstScriptCheck)     at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.get_CustomizedXsl()    at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)"

I referred this blog - http://blog.vossers.com/

It says it is caused because of the xsl transformation when trying to retrieve the complied xsl from cache. I'm not sure if it is caused by the same in my case. Is there any workaround for this issue?

I'm planning to use Content Query webpart instead if this keeps occuring.

Any help is much appreciated.

Thanks

Rajesh



Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>