QueueUpdateProject error

M

med111

hi all,

I encounter a problem whe I tried to use QueueUpdateProject . here is
the code

private ProjectREF.ProjectDataSet projectDataSet
....
this.projectDataSet = this.project.ReadProject(projectGuid,
ProjectWS.DataStoreEnum.WorkingStore);
....
this.project.CheckOutProject(projectGuid, sessionGuid,
"Just for test");
this.project.QueueUpdateProject(jobGuid, sessionGuid,
projectDataSet,false);
Guid jobGuid2= Guid.NewGuid ();
this.project.QueueCheckInProject(jobGuid2, projectGuid,
false, sessionGuid, "Just for test");


when trying to execute "QueueUpdateProject ", I have this error :

System.Web.Services.Protocols.SoapException: ProjectServerError(s)
LastError=CustomFieldRequiredValueNotProvided Instructions: Pass this
into PSClientError constructor to access all error information
at
Microsoft.Office.Project.Server.WebService.Project.QueueUpdateProject(Guid
jobUid, Guid sessionUid, ProjectDataSet dataset, Boolean validateOnly)


Can someone help, please!
 
M

med111

I am back!
I found the solution
We should use ReadProjectEntities instead of ReadProject. No need to
read all tables of the ProjectDataset, only Tables concerned will be
read.
Hope that this will help someone else.

bye
 

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