MoveRequest Adapter ProcessMove fails (Valid empID is required)

I’m trying to use the MoveRequest adapter to add a record to the request queue, this is selected from a custom control in the Production Planner Workbench screen.

When I run the moveRequestAdapter.ProcessRequest method, it fails saying a valid EmployeeID is required. I have all permissions set up correctly (copied from our Live environment). It works in our Live environment 10.2.600.30.

As we are staying with classic screens for now and upgrading to web based on a per-department basis, I am trying to fix some issues found in our classic style screens.

I tried adding in the following, but had no luck:

moveRequestAdapter.CheckEmployee(_session.EmployeeID, out userName);

Any ideas why this error could be thrown?

If you’re trying to grab the EmpID from the session, then make sure that every configured user in User Account Maintenance has a user selected in the dropdown.

On my custom screens where I need to know EmpID I ask for it to be selected because there are some shared terminals in production areas.

Figured this one out!

I had to manually set moveRequest.EmpId in the dataset to _session.EmployeeID.