P
Paul
I am new here, so please forgive if this is in the wrong place. Actually,
forgiveness and then redirection would be great
I am trying to use the Project Server Interface to do a large data
conversion from one project scheduling software program to Microsoft Project
Server. This has been confusing so far, but I am working my way through it
slowly. For now, the latest problem I have seems to be some type of
limitation when creating predecessors.
This code works great for the first 36 predecessors, but then it bombs. If
I limit this call to 36 times, everything works great, but when I call it 37
times, the data on the schedule gets hosed. Every activity becomes a 0-day
milestone. Again, as long I only call it 36 times, the predecessors look
great and the task durations are perfect. I ruled it something specifically
being wrong with the 37 predecessor performing some tests.
Is there some limitation on the call of this method?
C# Code:
public static System.Guid linkPredecessorToTask(System.Guid
projectGuid,
ProjectWebSvc.ProjectDataSet
projectDs,
Activity activ,
Predecessor pred)
{
ProjectWebSvc.ProjectDataSet.DependencyRow dependency =
projectDs.Dependency.NewDependencyRow();
dependency.LINK_UID = Guid.NewGuid();
dependency.PROJ_UID = projectGuid;
dependency.LINK_PRED_UID = pred.guid;
dependency.LINK_SUCC_UID = activ.guid;
dependency.LINK_TYPE = (int)
ProjectServerUtilities.convertLinkTypeToPSLinkType(pred.lagType);
dependency.LINK_LAG_FMT = (int)PSLibrary.Task.DurationFormat.Hour;
dependency.LINK_LAG = pred.lag * 8 * 60 * 10;
projectDs.Dependency.AddDependencyRow(dependency);
return dependency.LINK_UID;
}
Thanks so much!
Paul
forgiveness and then redirection would be great
I am trying to use the Project Server Interface to do a large data
conversion from one project scheduling software program to Microsoft Project
Server. This has been confusing so far, but I am working my way through it
slowly. For now, the latest problem I have seems to be some type of
limitation when creating predecessors.
This code works great for the first 36 predecessors, but then it bombs. If
I limit this call to 36 times, everything works great, but when I call it 37
times, the data on the schedule gets hosed. Every activity becomes a 0-day
milestone. Again, as long I only call it 36 times, the predecessors look
great and the task durations are perfect. I ruled it something specifically
being wrong with the 37 predecessor performing some tests.
Is there some limitation on the call of this method?
C# Code:
public static System.Guid linkPredecessorToTask(System.Guid
projectGuid,
ProjectWebSvc.ProjectDataSet
projectDs,
Activity activ,
Predecessor pred)
{
ProjectWebSvc.ProjectDataSet.DependencyRow dependency =
projectDs.Dependency.NewDependencyRow();
dependency.LINK_UID = Guid.NewGuid();
dependency.PROJ_UID = projectGuid;
dependency.LINK_PRED_UID = pred.guid;
dependency.LINK_SUCC_UID = activ.guid;
dependency.LINK_TYPE = (int)
ProjectServerUtilities.convertLinkTypeToPSLinkType(pred.lagType);
dependency.LINK_LAG_FMT = (int)PSLibrary.Task.DurationFormat.Hour;
dependency.LINK_LAG = pred.lag * 8 * 60 * 10;
projectDs.Dependency.AddDependencyRow(dependency);
return dependency.LINK_UID;
}
Thanks so much!
Paul