Error when trying to Update % Completed using ChangeXml

U

UMAN

I am trying to use ChangeXml and i am getting GeneralUnhandledException. I
am using the PROJ_UID and TASK_UID and they are correct, so i am not sure why
i might be getting this. Here is my code: Does anyone have any ideas???


StringBuilder changeXml = new StringBuilder();
changeXml.AppendFormat("<Changes><Proj ID=\"{0}\">",
pGuid.ToString());
changeXml.AppendFormat("<Assn ID=\"{0}\">", tGuid.ToString());
string pidPctWorkComplete =
PSLibrary.AssnConstID.s_apid_pct_wrk_complete.ToString(System.Globalization.CultureInfo.InvariantCulture);
changeXml.AppendFormat("<Change PID=\"{0}\">{1}</Change>",
pidPctWorkComplete, "50");
changeXml.Append("</Assn></Proj></Changes>");
statusingSvc.UpdateStatus(changeXml.ToString());
 
J

Jim Corbin [MSFT]

Maybe your previous message is related?

For the 401, the first step is to check that you've correctly initialized
the Statusing Web service object with the Url and Credentials (or
CookieContainer, if Forms logon) properties.

Are you able to use the ChangeXML utility described in the SDK?
(http://msdn2.microsoft.com/en-us/library/bb428819.aspx)
You can get the source and compile it from the SDK download
(http://www.microsoft.com/downloads/...f9-7028-4b30-99a2-18cb1eed1abe&displaylang=en).

For the unhandled exception, compare the changeXml value you create with
what the ChangeXML utility creates. Or, validate your changeXml value
against the ChangeList schema (ChangeList.xsd is also in the download). See
http://msdn2.microsoft.com/en-us/library/bb428824.aspx.

--Jim

----- Original Message -----
From: "UMAN" <[email protected]>
Newsgroups: microsoft.public.project.developer
Sent: Monday, August 27, 2007 1:16 PM
Subject: 401 Unauthorized error when performing UpdateStatus()
 
U

UMAN

Yea i had found out that i was using thw wrong value for Actual work. Also i
had posted this somewhere else as well. From what i read, it doesnt seem
like you can use changexml to update actual cost. Do you have a
reccomendation for updating actual cost??

Thanks!
 

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