I'm hoping that someone here might be able to help me understand a specific
error code I'm getting back from the PSI remote web service, namely:
GeneralOnlyUpdatesAllowed. I've searched the SDK docs, the web and this forum
for more information about this error code, but without learning much. The
SDK docs are terse, they simply say: "Only updates are allowed."
I'm simply trying to update the TASK_DUR column of a given task for a given
project. My code looks something like this:
ProjectDataSet prjDs = new ProjectDataSet();
ProjectDataSet.TaskRow task = prjDs.Task.NewTaskRow();
task.PROJ_UID = prjGuid;
task.TASK_UID = oldTask.TASK_UID();
task.TASK_DUR_FMT = (int)Enum.Parse(typeof(PSLib.Task.DurationFormat),
"Hour");
task.TASK_DUR = nDurValue;
prjDs.Task.AddTaskRow(task);
Guid sessionGuid = Guid.NewGuid();
CheckOutProject(prjGuid, sessionGuid, "Checked out for update.");
Guid jobGuid = Guid.NewGuid();
QueueUpdateProject(jobGuid, sessionGuid, prjDs);
This results in a LastError=GeneralOnlyUpdatesAllowed response from the
project server. Any help I could get interpretting what this means would be
greatly appreciated.
Thanks in advance.
Thanks for posting your solution. :) Perhaps next time, try posting on the
developer newsgroup. Please see FAQ Item: 24. Project Newsgroups. FAQs,
companion products and other useful Project information can be seen at this
web address: http://project.mvps.org/faqs.htm
Mike Glen
Project MVP
albupp wrote:
> I was able to resolve this error by following the C# code example in
> the MS Office Project SDK help, under QueueUpdateProject method.
I refered MS office project SDK and I found "QueueAddToProject" method, which allows to add new entities. But this alone didn't solve the problem. I had call "QueuePublish" method appear the newly added task on the list.
I hope this helps you.
Thanks,
Shahaji.
Mike Glen wrote:
Hi albupp ,Thanks for posting your solution.
01-Feb-08
Hi albupp ,
Thanks for posting your solution. :) Perhaps next time, try posting on the
developer newsgroup. Please see FAQ Item: 24. Project Newsgroups. FAQs,
companion products and other useful Project information can be seen at this
web address: http://project.mvps.org/faqs.htm
Mike Glen
Project MVP
albupp wrote:
Previous Posts In This Thread:
On Wednesday, January 30, 2008 4:59 PM
albup wrote:
Error updating a project via PSI
Greetings Everyone,
Thanks in advance.
On Thursday, January 31, 2008 4:54 PM
albup wrote:
I was able to resolve this error by following the C# code example in the MS
I was able to resolve this error by following the C# code example in the MS
Office Project SDK help, under QueueUpdateProject method.
On Friday, February 01, 2008 5:36 AM
Mike Glen wrote:
Hi albupp ,Thanks for posting your solution.
Hi albupp ,
Thanks for posting your solution. :) Perhaps next time, try posting on the
developer newsgroup. Please see FAQ Item: 24. Project Newsgroups. FAQs,
companion products and other useful Project information can be seen at this
web address: http://project.mvps.org/faqs.htm
Mike Glen
Project MVP
albupp wrote:
Submitted via EggHeadCafe - Software Developer Portal of Choice
FREEWARE: ClearCache IE Cache Control Utility
http://www.eggheadcafe.com/tutorials/aspnet/acf0f4e8-0dad-4fed-8ee3-133591db718a/freeware-clearcache-ie-c.aspx