Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Checking in a document.

  Asked By: Kiel    Date: Dec 11    Category: Sharepoint    Views: 814

I got a problem with checking-in a checked-out document through code.

What I do is
- Open the knowledge document (KnowledgeDocument.DataSource.Open)
- Make the relevant changes to the properties.
- Call the Knowledge Documents.Save method to save the changes.
- Then I call KnowledgeVersion.Checkin and give the KnowledgedDocument

The above procedure fails at the check-in. It says Access Denied.

Is this the correct procedure to check-in of a checked out document?
I don't think it has anything to do with security because I am a coordinator
of the server, and the required folder.



5 Answers Found

Answer #1    Answered By: Jayme Raymond     Answered On: Dec 11

Are you using .Net for this? I have seen other posts where there was
trouble using .Net and Interop.

Answer #2    Answered By: Devika Bellad     Answered On: Dec 11

Yes i am using .NET
I've got it to work for almost everything, like upload, check-in,
check-out, download, query asset details etc.

Just that i am unsure how to do this check-in  thing

Answer #3    Answered By: Diego Paul     Answered On: Dec 11

Although i've done my bit of dabbling in PKMCDO i still cant seem to
check-in a particular file through code.

My attempts of achiveing this in .net and vbscript have not

It gives me the error saying access  denied (checkin is an operation
allowed - i checked)

I need this for a solution i am developing.

Answer #4    Answered By: Denis Cantrell     Answered On: Dec 11

Are you able to try the check in/ call  via VB6. This would provide you
with some idea if the code  is incorrect or if it is the Interop with
.Net is incorrect.

Answer #5    Answered By: Sarita Patel     Answered On: Dec 11

Nope couldnt get it to work with VB6 too.

I still am not sure of the procedure  here.
Any idea how its done.
I just dont want to do a oVer.Checkin, but actually check in a
modified document. the SDK doesnt say anthing usefull.

Can some one add their 2cts on this matter?

Didn't find what you were looking for? Find more on Checking in a document. Or get search suggestion and latest updates.