Get AssignmentWork for Primavera

Hi,

We are performing tests with the aspose library in an example schedule of the Primavera software (Attachment “EC00515.xer”). When trying to read some tasks we are not getting the expected result.

For example, the ActivityId EC1240 task has 2 assignments resources, both with 38.4 hours planned (Attachment “Image 01.png”). When reading the TimephasedDatata according to the code below, we get a different result than expected.

I posted an example of the code used for reading it is in the attachment “Code.txt” and below the result obtained: start date, finish date and value (ValueToUnits).

Result:

First Resource Assignment:

Start: 04/05/2011 07:00:00
Finish: 05/05/2011 08:00:00
ValueToUnits: 8,084210555555556

Start: 05/05/2011 08:00:00
Finish: 06/05/2011 08:00:00
ValueToUnits: 8,084210555555556

Start: 06/05/2011 08:00:00
Finish: 07/05/2011 08:00:00
ValueToUnits: 8,084210555555556

Start: 07/05/2011 08:00:00
Finish: 08/05/2011 08:00:00
ValueToUnits: 0

Start: 08/05/2011 08:00:00
Finish: 09/05/2011 08:00:00
ValueToUnits: 0

Start: 09/05/2011 08:00:00
Finish: 10/05/2011 08:00:00
ValueToUnits: 8,084210555555556

Start: 10/05/2011 08:00:00
Finish: 11/05/2011 08:00:00
ValueToUnits: 8,084210555555556

Second Resource Assignment:

Start: 04/05/2011 08:00:00
Finish: 05/05/2011 08:00:00
ValueToUnits: 8

Start: 05/05/2011 08:00:00
Finish: 06/05/2011 08:00:00
ValueToUnits: 8

Start: 06/05/2011 08:00:00
Finish: 07/05/2011 08:00:00
ValueToUnits: 8

Start: 07/05/2011 08:00:00
Finish: 08/05/2011 08:00:00
ValueToUnits: 0

Start: 08/05/2011 08:00:00
Finish: 09/05/2011 08:00:00
ValueToUnits: 0

Start: 09/05/2011 08:00:00
Finish: 10/05/2011 08:00:00
ValueToUnits: 8

Start: 10/05/2011 08:00:00
Finish: 11/05/2011 08:00:00
ValueToUnits: 8

Tests with other Primavera files showed the same situation.

Are there any errors in the way to get the data? Please could you help us?

ZipFile with the attachments (83.1 KB)

Thanks.

@luiscarvalhal,

a ticket with ID TASKSNET-10686 has been created to further investigate the issue. This thread has been linked with the issue so that you may be notified once we finish the investigation.

@luiscarvalhal,
could you check the same scenario in version 22.11 ?