Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update PercentComplete in XML Format

Status
Not open for further replies.

Malluce

Programmer
Aug 28, 2012
2
0
0
Hi all -

I'm trying to write a Python script to update the weekly status automatically. My method is:
1. Scan through each developer's Excel status sheet
2. Store the task and % complete in a list of tuples [(task1, % complete1), (task2, %complete2),...]
3. Scan through MS Project file in XML format
4. Find the matching task name and replace the % complete value
However, I ran into this problem that even I change the PercentComplete value in XML, it doesn't get updated when I import to MS Project. I've been doing LOTS OF research and found out that apparently a lot of people are suffering from the issue.
The XML contains a lot of tags that I never seen or used, but some people suggested that MS Project has a sequence of calculating % complete (e.g., it has to do with the ActualDuration, RemainingDuration...etc.) I tried to play around with it but got not luck. Does anyone here know how to handle this problem? Thanks!
 
Sorry, I am not as familiar with the XML schema as I should be - but here are a couple of references to get you started.

XML Schema for Project 2010:
XML Schema for Project 2007:
You are correct that % complete in Project is calculated by project based upon Actual and Remaining Duration.

Do you have any better luck just updating the data in Excel and bypassing the XML?
 
Hmmm...I never thought about that but I'll give it a shot. Thanks and I'll keep you updated!
 
Good luck. I would also match on UID on the task versus the task name. Import only the data you want to change - for example, if you want to change % complete, do not import actual and remaining duration -- let Project calculate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top