Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a document library. When I upload a document and try to check in the same, I get the following error.

0x81072186 An event receiver has canceled the request.

Stack Trace:

[COMException (0x81072186): 0x81072186An event receiver has canceled the request.]

Microsoft.SharePoint.Library.SPRequestInternalClass.CheckInFile(String bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) +0

Microsoft.SharePoint.Library.SPRequest.CheckInFile(String bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) +195

[SPException: An event receiver has canceled the request.]

Microsoft.SharePoint.SPFile.CheckIn(String comment, SPCheckinType checkInType, Boolean bIsMigrate, SPUser modifiedBy) +27676034

Microsoft.SharePoint.SPFile.CheckIn(String comment, SPCheckinType checkInType) +21

Microsoft.SharePoint.ApplicationPages.Checkin.ExecuteAction() +686

Microsoft.SharePoint.ApplicationPages.Checkin.OnLoad(EventArgs e) +2001

System.Web.UI.Control.LoadRecursive() +66

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

Can anyone please help?

share|improve this question
add comment

1 Answer

It seems as if an Event Receiver has been added to the library or to the Content Type and that it for some reason rejects the checkin.

You can use SharePoint Manager to find out what/where the event receiver is.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.