Problem psi - Chekin - checkout

A

alex

Hi,

It's the following of my post named Problem psi - Update Project Team.
This post has been solved and it's working, fine.

The context is the following.
I add sereval resources to one project team for one project.

So it's working but sometimes, I really says sometimes.
I obtain an error during this process in the queue
=>Project Checkin Blocked Due To A Failed Job
In that case, the project is in checkout and I can't launch the simple
method checkin
=>
jobId = Guid.NewGuid();
projectSvc.QueueCheckInProject(jobId, selProject, false, sessionId,
"description op");
System.Threading.Thread.Sleep(2000);

I see I can try to restart checkin but the process never works.
So the only solution is to go in the servers settings->Force checkin, choose
the project.

I search but I don't find the method to process to a "Force Checkin".

Thanks,

Best Regards,
Alexandre
 
C

charlesj

Alexandre,

The third argument in QueueCheckInProject() indicates whether you want to
force the checkin or not, so instead of calling it like you mentioned:

projectSvc.QueueCheckInProject(jobId, selProject, false, sessionId,
"description op");

Call it like this:

projectSvc.QueueCheckInProject(jobId, selProject, true, sessionId,
"description op");

charlesj
 
A

alex

Hi Charles,

I'm apologize for my mistake.
I try it and I'm coming back to say if it's solve this problem.

Thanks.

Best Regards,
Alexandre
 
M

Martin Winzig

No it's not so easy :)

There is same blocking task in you you can't solve it by force checking, the
force checking only insert this request to queue but this request will be
also blocked.

So the right sollition is to cancel blocking job in queue, and ussualy all
jobs which are blocked. And then you can checkin your project.

Regards Martin Winzig
 
A

alex

Martin,

I find why I obtain some problem with the queue. that's because you can't
assign a inactive resource to a team project. So about your proposition, I
think you have right in the following case: the queue does'nt work on my last
request : the force checkin, so in my program, when there is a checkin
exception, I force a ckeckin and between each action, my program wait 1
seconde. Normally every project should be checkin, I should add a method to
extract only the project checkin.

Your remark is good.

thanks,
best regards,
Alexandre
 
C

Chris Boyd

You want to be careful force checking in project plans. What if someone else
legitimately has the plan checked out and is working on it? They will lose
all their changes when they try to save it back to the server. Your code
should only force check in if it owns the checkout.

--
Chris Boyd
MS Project
Program Manager

Blog: http://blogs.msdn.com/project_programmability/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top