Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6536651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:31:09+00:00 2026-05-25T10:31:09+00:00

i got a problem with checkincomments on a spfile object in SharePoint 2007. The

  • 0

i got a problem with checkincomments on a spfile object in SharePoint 2007.
The checkincomments on a custom doclib with custom contenttypes and custom code in the itemadding, itemadded, itemupdating and itemupdated eventreceivers are not stored.

I found the following links regarding this problem
http://social.technet.microsoft.com/Forums/en-SG/sharepointgeneral/thread/e7c42f6b-1dab-419a-aee6-010845b31ea0

and
http://www.theblackknightsings.com/HowToChangeCheckinCommentAfterSave.aspx

But i dont want to make direct changes in the database so i haven’t tried the last links solution.

In the itemupdating event you can get the comment by properties.AfterProperties[“vti_sourcecontrolcheckincomment”]. In itemupdated this property is empty.

So following the first lik i store the comment in one of the custom content fields in itemupdating, get it from there in itemupdated and make a file.CheckIn(“mycomment”, SPCheckinType.OverwriteCheckIn) with disabled eventfiring.

When i upload a file to the document library a second time and increase versions by one (major versioning enabled), itemupdating and itemupdated are fired twice.

After the second itemupdating the asynchronous itemupdated seems not to be ready and i get an information that the file is currently in use by myself. So the update fails.

Is there any easier way to make sure that checkincomments in a custom documentlibrary are stored correctly?

Whats the solution for the second time the events fire?

Any help would be great!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:31:10+00:00Added an answer on May 25, 2026 at 10:31 am

    I have found the answer finally after days of research and testing:

    http://social.technet.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ffed71b1-d255-4da3-90c7-537540c27a36

    this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i got problem with my code and hopefully someone able to figure it out.
Hello I got problem with scroll on my grid. Here is the code (nothing
I got problem with two AJAX calls. I'm calling it from a jquery object.
Got problem with opening custom context menu using advanced user interactions API in Selenium
i got problem to convert String time to Time object because it print together
I've got problem with connecting to MySQL database on my freshly installed Windows 7
Got a problem with ADOMD.NET 8.0, SQL2008 and our app. It isn't giving us
Got a problem with a query I'm trying to write. I have a table
Got a problem with ComponentListener. I'm using it to check if a certain component
I got a problem like this (this is html/css menu): Eshop | Another eshop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.