D365 Finance & Operations and Dynamics AX Forum

Expand all | Collapse all

D365 F&O user attempting to approve BOM - error message 'employee is not specified'

  • 1.  D365 F&O user attempting to approve BOM - error message 'employee is not specified'

    SILVER CONTRIBUTOR
    Posted 18 days ago
    Hello!
    I want to help a user who is trying to approve a BOM but I have little experience in this error - my D365 F&O experience is with security and access, so I have double checked access and that does not appear to be the problem.

    The error message encountered upon attempting to approve is "Employee is not specified".  The user is linked to a worker record and the worker is currently hired with a start date of yesterday.  I don't know the variables involved with approving BOM's. The user is performing a role for someone else that is out of the office.

    Any suggestions are welcome.
    Thank you!

    ------------------------------
    Calvin Eddings
    The Church of Jesus Christ of Latter-Day Saints
    Salt Lake City UT
    ------------------------------


  • 2.  RE: D365 F&O user attempting to approve BOM - error message 'employee is not specified'

    GOLD CONTRIBUTOR
    Posted 17 days ago
    Calvin,
    This is a technical answer explaining how that error message came up, but lacking the functional side as to why this would  e the case.

    The actual message is found in a translatable "label" with a LabelId of @SYS8980. That label is found in several places in the code, but the two most likely related to your situation are from the validate methods in each of two classes (BomRouteApprove and BomRouteVersionApprove). The code in both classes is identical. I have included it below:

    boolean validate(Object _calledFrom = null)
    {
        boolean ret;

        if (remove)
        {
            ret = true;
        }
        else
        {
            if (this.parmApprover())
            {
                //only active workers within the current legal entity may approve a BOM or route
                ret = HcmWorkerLookup::newOnlyActiveWorkersWithinCompany().validateWorker(this.parmApprover());
                if (!ret)
                {
                    //"ALA" is not active or is not an employee
                    error(strfmt("@SYS39817", HcmWorker::find(this.parmApprover()).PersonnelNumber));
                }
            }
            else
            {
                ret = checkFailed("@SYS8980");
            }
        }
        return ret;
    }

    The error message label is highlighted in yellow. The key as to why you are getting the message is highlighted in blue. That call to the this.parmApprover method returns the corresponding BOMRouteApprover value. You are getting the error message because that value is empty.

    I'm not sure that will help you resolve the issue, but at least it should help you understand the underlying cause. Hopefully that sparks enough from your (or your user's functional background to arrive at a solution.

    ------------------------------
    Kirk Blackburn
    Engineer - Software Development
    The Church of Jesus Christ of Latter-day Saints
    Salt Lake City, UT
    ------------------------------



  • 3.  RE: D365 F&O user attempting to approve BOM - error message 'employee is not specified'

    SILVER CONTRIBUTOR
    Posted 17 days ago
    Thanks so much for your detailed response.  I will review and share your response with others.

    ------------------------------
    Calvin Eddings
    The Church of Jesus Christ of Latter-Day Saints
    Salt Lake City UT
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role