How do you set percent complete for a task in XML?

A

Abe

I'm trying to create an XML based MS Project and but I'm having trouble
setting the percent complete for the task. I'm giving the task a
<start>,<finish>, <actualstart>, and <percentcomplete> but its not working
and when the project is opened, the percent complete is always 0% (unless I
give an actual finish in which case its 100%). It seems to want an
<actualduration>, but I thought it can calculate this based on percent
complete and actualstart...

Am I missing something?
 
R

Rod Gill

Have you saved a project with a task 50% complete in xml to see how Project
saves it?
 
A

Abe

Yes I tried this, Project calculates and appends the <actualduration> value
which I don't have. If I manually enter the duration, it does set the
%Complete based on the actualduration and not the percent complete I provide.

It calculates <duration> for me fine by using <start> and <finish> which I
provide. I was hoping it would do the same for <actualduration> and if I only
give the % complete it can calculate it based on the project <duration>
calculated from <finish>-<start>. Is there an option to force it to reuse
<duration> for <actualduration>?
 
R

Rod Gill

Project has a sequence that it doesn't calculations with. Looks like you
will need to have the duration and calculate actual duration based on %
Complete. It gives poor tracking accuracy if you just use % complete. More
accurate and better practice to enter Actual Start, Actual Duration and
Remaining Duration. Project will update the rest.
 
A

Abe

So if I have a start, finish and percent complete, I need to calculate my own
ActualDuration?.. including skipping weekends etc?... that's too bad.
 

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