Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

DIXF - Workers, Positions and Position Hierarchy

$
0
0

Using DIXF, there doesn't seem to be a straightforward way of getting workers imported with positions that have a hierarchy.

My best shot to date imports workers using the Employee entity without referencing JobId or PositionId.

Then I import positions using the Position entity specifying the personnel number of the worker (HcmWorker_WorkerPersonnelNumber). Here I also specify the parent position and hierarchy type (e.g. "Line"). This is to build the hierarchy of positions.

This does everything bar the hierarchy, i.e.

Workers setup

Positions setup as active

Positions linked to Workers by worker position assignment records

I've tried to re-import the same Position staging data over the top again, thinking that it is chicken-and-egg with Positions not being written before Parent positions can be established.

However, here I get an error "Cannot edit a record in Position worker assignments (HcmPositionWorkerAssignment). The 'Assignment end' value needs to be greater than or equal to the 'Assignment start' value."

I have tried a lot of different ways too many to list all, but notably other problems include getting the hierarchy correctly imported but unfortunately overwriting the Position assignment records in the process. This happens when first creating the Position via the Employee import (referencing just the PositionId here).

Any suggestions welcomed!


Viewing all articles
Browse latest Browse all 72043