getChildTasks( ) API is returning '1' for leaf level tasks.
Multi platform library to read and write schedule data
Brought to you by:
joniles
Hello,
We are facing an issue while reading data using mpxj. On debugging, we observed that the API "getChildTasks( )" was returning 1 for some tasks/activities which are present at the leaf level.
Could you please help me resolve this issue or provide me with any leads as to why the API is returning incorrect value? We are using the latest version of MPXJ (7.2)
Please find the attached mpp file.
Best Regards,
Nimish.
What langauge are you working in? Can you post some sample code? (just a few lines will do).
Hi Jon,
Thanks for reverting. So we are using JAVA (8). Below is the snippet of code used:
Kindly revert for any concerns.
Best Regards,
Nimish.
Hi,
I've been unable to reproduce. I ran the sample file you provided through MPXJ here and printed out the child task count for all tasks. The output is shown below. Can you let me know which leaf tasks you were getting incorrect results for?
Jon
Hi Jon,
Thanks for the update.
Just a correction, I had tested this on latest MPXJ version(7.2), there this issue seems to be fixed.
Actually, we recently upgraded from 5.13 to 7.2. Based on this observation it appears that the issue is fixed somewhere between 5.13 to 7.2.
Would you please check if you are able to reproduce this issue on MPXJ (5.13) and if you are able to, could you please point me to the version where this issue was addressed?
Best Regards,
Nimish.
Apologies, unfortunately I won't have time to go through the 17 releases of MPXJ to identify where the fix was applied. Looking at the release notes (http://www.mpxj.org/changes-report.html) it may be that 5.14.0 had the relevant fix as it mentions correcting the task hierarchy.