V
Vincenzo
Hi all,
I have a problem to create a project by PSI. In the queue the job is show as
failed with error 9135 (Exception in database update).
Can you help my?
Thanks.
Vincenzo
My code is:
PSI_Project.ProjectDataSet dsProject = new PSI_Project.ProjectDataSet();
PSI_Project.ProjectDataSet.ProjectRow projectRow =
dsProject.Project.NewProjectRow();
Guid projectGuid = Guid.NewGuid();
projectRow.PROJ_UID = projectGuid;
projectRow.PROJ_NAME = projName;
projectRow.PROJ_TYPE = Convert.ToInt32(PSLibrary.Project.ProjectType.Project);
dsProject.Project.AddProjectRow(projectRow);
Guid jobGuid = Guid.NewGuid();
bool validateOnly = false;
project.QueueCreateProject(jobGuid, dsProject, validateOnly);
// Wait 3 seconds (more or less) for Queue job to complete.
System.Threading.Thread.Sleep(3000);
PSI_Project.ProjectRelationsDataSet dsProjectRelations = new
PSI_Project.ProjectRelationsDataSet();
jobGuid = Guid.NewGuid();
string wssUrl = "";
bool fullPublish = true;
dsProjectRelations = project.QueuePublish(jobGuid, projectGuid, fullPublish,
wssUrl);
LogOff();
I have a problem to create a project by PSI. In the queue the job is show as
failed with error 9135 (Exception in database update).
Can you help my?
Thanks.
Vincenzo
My code is:
PSI_Project.ProjectDataSet dsProject = new PSI_Project.ProjectDataSet();
PSI_Project.ProjectDataSet.ProjectRow projectRow =
dsProject.Project.NewProjectRow();
Guid projectGuid = Guid.NewGuid();
projectRow.PROJ_UID = projectGuid;
projectRow.PROJ_NAME = projName;
projectRow.PROJ_TYPE = Convert.ToInt32(PSLibrary.Project.ProjectType.Project);
dsProject.Project.AddProjectRow(projectRow);
Guid jobGuid = Guid.NewGuid();
bool validateOnly = false;
project.QueueCreateProject(jobGuid, dsProject, validateOnly);
// Wait 3 seconds (more or less) for Queue job to complete.
System.Threading.Thread.Sleep(3000);
PSI_Project.ProjectRelationsDataSet dsProjectRelations = new
PSI_Project.ProjectRelationsDataSet();
jobGuid = Guid.NewGuid();
string wssUrl = "";
bool fullPublish = true;
dsProjectRelations = project.QueuePublish(jobGuid, projectGuid, fullPublish,
wssUrl);
LogOff();