Morning all,
I'm trying to import an XML/MPP file into P6 v8.2 and keep getting an error
SEVERE: Unable to invoke setHoursPerYear on business object Calendar. Value for field "HoursPerYear" in Calendar may not be set to greater than 8784. com.primavera.integration.client.xml.xmlimporter.XMLImporterException: Unable to invoke setHoursPerYear on business object Calendar. Value for field "HoursPerYear" in Calendar may not be set to greater than 8784. I've checked the MPP file and cannot see any problems. Does anyone have any idea how to solve this problem? Thanks in advance, Thom
thanks both Toms
Perfect diagnosis from Zoltan. One clarification:
There is no need to repeat the process for different calendars. DaysPerMonth in MSP is a singular property of a Project, not of a Calendar, and it only occurs once in a project xml file. (P6's XML importer multiplies the Project|HoursPerDay by the Project|DaysPerMonth to arrive at an HoursPerMonth that it then writes to each non-elapsed-duration calendar in P6.)
Zoltan, as usual you're a star. Thank you for that, I shall get started immediately.
Kind regards,
Thom
The issue is caused by the incorrect calendar setting inside Microsoft Project.
The total working hours per year in P6 is
366 Days *24 hours / day = 8784 hours / year
The Microsoft Project XML file defined more then 31 working days per week. This violation of the business rules hence P6 import function stopped and report the above error.
31 days X 12 months x 24 hours = 8928 hours /year
This problem can be fixed either in Microsoft Project (MSP) or in MSP XML file
A. Microsoft Project method
B. Without MSP installed