Menu

#336 ResourceAssignment.getResource() returns null

v1.0_(example)
closed
Jon Iles
None
5
2019-09-10
2019-07-05
No

Here's an mpp file with two resources: "Resource One" and "Resource Two". One resource assignment imports fine, the other does not. Not sure why.

Unit test is added.

2 Attachments

Discussion

  • Andrej Gabara

    Andrej Gabara - 2019-07-05

    Screenshot

     
  • Andrej Gabara

    Andrej Gabara - 2019-07-05

    What's straing is that if I click on "Resources" on the task, I get a drop-down where "Resource Two" is appended by "(Enterprise)". However, enterprise resource pool is not used.

    This is a modified file gotten from a customer, and I know know how they created those resources. Any ideas?

     
  • Jon Iles

    Jon Iles - 2019-09-10

    I think the issue here is that the resource belongs to a resource pool, or something similar, which is held outside of the MPP file we're reading, so we have no way of finding the corect resource. We do actually receive the unique ID for the resource assigned to the task, it's just that we haven't read the data yet. The resource unique ID is preserved in the assignment record, so in theory if you were able to read in the resource pool you could create the necessary resources and attach them to the correct assignments. I could potentially imaging this being something that MPXJ could do (e.g. read the resource pool MPP file first, then read the schedule MPP file) but that's not something I'm looking at implementing presently.

     
  • Jon Iles

    Jon Iles - 2019-09-10
    • status: open --> closed
    • assigned_to: Jon Iles
     
  • Andrej Gabara

    Andrej Gabara - 2019-09-10

    Thanks John. The customer says that resource pools are not used. And when I exported the MPP to XML via MS Project, the resources look identical to the other resources that imported fine, except that they had large IDs. We've only ran into this once.

     

Log in to post a comment.

MongoDB Logo MongoDB