none
Check Out Error in PSI Code (CICOCheckedOutInOtherSession = 10103) trying to save a custom enterprise field RRS feed

  • Question

  • HI All,

    I'm developing a custom Webpart, that inside a PDP, is trying to save the custom field values to the Project Server 2010....

    The code im using is the following. It works perfectly when the Project is Checked IN...

    ..........
    Guid sessionUid = Guid.NewGuid();

                project.CheckOutProject(projectId, sessionUid, "Updating CF");
                Guid jobUid = Guid.NewGuid();
                project.QueueUpdateProject(jobUid, sessionUid, projectDs, false);
                jobUid = Guid.NewGuid();
                project.QueueCheckInProject(jobUid, projectId, false, sessionUid, "Updating CF");

    ..............

    The problem is that i'm trying to insert this code in the CheckIN Event for example, or overwritting the save button functionality....

    In that moment, obviously, the project is in Checkout, then i get this error code...  (CICOCheckedOutInOtherSession = 10103)

    What is the strategy for solving that problem??? Am i  missing any possibility in the code?? May be getting the current SessionID or JobUID, is this possible??

    I was thinking to launch some kind of retarded sharepoint timer, for waiting for the process of Checking in to be completed, before executing that code...

    Very Thanks in advance...

     

     

     


    Savuton

    Saturday, October 13, 2012 9:49 AM

Answers