none
<PercentComplete> is not generated by Microsoft Project RRS feed

  • Question

  • I'm developing an application using PHP that extracts data from the XML archive generated from Microsoft Project. I'm experiencing problems to extract the percent complete of a task. Microsoft Project is not generating the <PercentComplete></PercentComplete> tag. How to make Project generate it?
    Monday, May 28, 2012 6:51 PM

Answers

  • Jayme,

    You will probably get a better response if you re-post this to the Project customization and programming forum at, http://social.technet.microsoft.com/Forums/en-US/project2010custprog/threads.

    However, you might want to include a little more information in your post. For example Project DOES provide the Percent Complete data in XML format but it may not be what you are expecting (e.g. it may be a text string when you are expecting a decimal numeric value).

    John

    Monday, May 28, 2012 7:47 PM

All replies

  • Jayme,

    You will probably get a better response if you re-post this to the Project customization and programming forum at, http://social.technet.microsoft.com/Forums/en-US/project2010custprog/threads.

    However, you might want to include a little more information in your post. For example Project DOES provide the Percent Complete data in XML format but it may not be what you are expecting (e.g. it may be a text string when you are expecting a decimal numeric value).

    John

    Monday, May 28, 2012 7:47 PM
  • I created a .xml file from Project 2010 and it did include a <PercentComplete></PercentComplete> tag for each task. What version of project?

    Rod Gill

    The one and only Project VBA Book

    Rod Gill Project Management

    Tuesday, May 29, 2012 3:29 AM
    Moderator
  • the version is 2003

    Tuesday, May 29, 2012 3:31 AM
  • Even 2003 has <PercentComplete>. You can refer to following links for any further reference on Project 2003 :

    http://msdn.microsoft.com/en-us/library/aa210577%28v=office.11%29.aspx

    http://msdn.microsoft.com/en-us/library/aa210593%28v=office.11%29.aspx


    Sapna S

    Tuesday, May 29, 2012 8:20 AM
    Moderator
  • Look at one example of a <Task> tag generated by M Project

     <Task>
               <UID>145</UID>
               <ID>145</ID>
               <Name>2.1.5. Desenvolvimento da Tela Inicial</Name>
               <Type>0</Type>
               <IsNull>0</IsNull>
               <CreateDate>2009-12-22T07:46:00</CreateDate>
               <WBS>1.3.1.5</WBS>
               <OutlineNumber>1.3.1.5</OutlineNumber>
               <OutlineLevel>4</OutlineLevel>
               <Priority>500</Priority>
               <Start>2009-07-13T09:00:00</Start>
               <Finish>2009-09-29T16:00:00</Finish>
               <Duration>PT446H0M0S</Duration>
               <DurationFormat>7</DurationFormat>
               <Work>PT0H0M0S</Work>
               <ResumeValid>0</ResumeValid>
               <EffortDriven>1</EffortDriven>
               <Recurring>0</Recurring>
               <OverAllocated>0</OverAllocated>
               <Estimated>0</Estimated>
               <Milestone>0</Milestone>
               <Summary>0</Summary>
               <Critical>0</Critical>
               <IsSubproject>0</IsSubproject>
               <IsSubprojectReadOnly>0</IsSubprojectReadOnly>
               <ExternalTask>0</ExternalTask>
               <StartVariance>0</StartVariance>
               <FinishVariance>0</FinishVariance>
               <WorkVariance>0</WorkVariance>
               <FreeSlack>0</FreeSlack>
               <TotalSlack>397620000</TotalSlack>
               <FixedCost>0</FixedCost>
               <FixedCostAccrual>3</FixedCostAccrual>
               <Cost>0</Cost>
               <OvertimeCost>0</OvertimeCost>
               <OvertimeWork>PT0H0M0S</OvertimeWork>
               <ActualDuration>PT0H0M0S</ActualDuration>
               <ActualCost>0</ActualCost>
               <ActualOvertimeCost>0</ActualOvertimeCost>
               <ActualWork>PT0H0M0S</ActualWork>
               <ActualOvertimeWork>PT0H0M0S</ActualOvertimeWork>
               <RegularWork>PT0H0M0S</RegularWork>
               <RemainingDuration>PT0H0M0S</RemainingDuration>
               <RemainingCost>0</RemainingCost>
               <RemainingWork>PT0H0M0S</RemainingWork>
               <RemainingOvertimeCost>0</RemainingOvertimeCost>
               <RemainingOvertimeWork>PT0H0M0S</RemainingOvertimeWork>
               <ACWP>0</ACWP>
               <CV>0</CV>
               <ConstraintType>4</ConstraintType>
               <CalendarUID>-1</CalendarUID>
               <ConstraintDate>2009-06-18T09:00:00</ConstraintDate>
               <LevelAssignments>0</LevelAssignments>
               <LevelingCanSplit>0</LevelingCanSplit>
               <LevelingDelay>0</LevelingDelay>
               <LevelingDelayFormat>5</LevelingDelayFormat>
               <IgnoreResourceCalendar>0</IgnoreResourceCalendar>
               <Notes/>
               <HideBar>0</HideBar>
               <Rollup>0</Rollup>
               <BCWS>0</BCWS>
               <BCWP>0</BCWP>
               <EarnedValueMethod>0</EarnedValueMethod>
               <PredecessorLink>
                   <PredecessorUID>143</PredecessorUID>
                   <Type>1</Type>
               </PredecessorLink>
               <ActualWorkProtected>PT0H0M0S</ActualWorkProtected>
               <ActualOvertimeWorkProtected>PT0H0M0S</ActualOvertimeWorkProtected>
           </Task>

    Tuesday, May 29, 2012 12:50 PM
  • Jayme,

    I see you cross-posted to the customization forum. Normally we don't like cross posting, since it can create unnecessary duplication from people who respond. It is better to re-post or request that your post be moved by a moderator (I am not a moderator).

    Nonetheless, I just created a sample file in Project 2003 with SP-3 installed. I saved as XML and the opened with Notepad. The percent complete data shows up right after the fixed cost accrual data.

    Perhaps it's not working for you because you do not have SP-3 installed. To download and install the update go to, http://technet.microsoft.com/en-us/office/ee748587.

    John

    Tuesday, May 29, 2012 2:39 PM
  • Sorry. The version is 2000.
    Tuesday, May 29, 2012 4:26 PM
  • Jayme,

    Wait a minute, something doesn't quite gel here. As far as I can tell there is no option to save a Project 2000 file as XML. What do you really have?

    John

    Tuesday, May 29, 2012 6:30 PM
  • Now my client said what was happening.

    He is using project 2000. And he can't generate xml file. So, he is
    using another software to generate the xml. I didn't know about that.
    This software is not generating the xml properly.

    Sorry.
    Tuesday, May 29, 2012 6:53 PM
  • Jayme,

    So the truth finally comes out. You're right, whatever software the client is using to generate the XML, isn't quite up to par.

    I assume that we (actually you) have now answered your original question, at least as far as this forum is concerned. If so, please mark it as answered.

    John

    Tuesday, May 29, 2012 8:38 PM