English

Error: The userId [userID] does not match a named user in your organization and is active in your project. See more info on how to remove the user from this project

Error Message

When an administrator attempts to remove a user with the Mobile Worker role from a Workforce for ArcGIS project, the following error message is returned:

Error:   
The userId [userID] does not match a named user in your organization and is active in your project. See more info on how to remove the user from this project.

In the USERS tab, the user ID of the mobile worker shows invalid but the role is displayed as 'Active' in the Workforce for ArcGIS application. In some instances, when the USERS tab is clicked, the content is blank. The images below show the error message with the invalid userID and the blank content.
Image with error message<

Image with blank content

Cause

This issue occurs if the user with the Mobile Worker role has started or completed work assignments assigned to them in a project, or the work assignment is in progress.

Solution or Workaround


To delete users with the Mobile Worker role from the Workforce for ArcGIS application, use one of the following workarounds:

For assignments not started or completed
Re-assign the assignment to another user with the Mobile Worker role and delete the previous user in the Workforce for ArcGIS application. For more detailed steps, refer to Workforce for ArcGIS Web Help: Reassign assignments.

For assignments in progress or completed
Re-assign the assignment at the feature service level in ArcGIS Online. Follow the instructions described below:

  1. In ArcGIS Online, click Content > My Content and navigate to Folders.

    Content and My Content pane
     
  2. Click the folder containing the desired Workforce for ArcGIS assignment and click the worker feature layer.

    Folder and worker feature layer pane
     
  3. Click Data > Table and click the Options button. Select Show/Hide Columns.

    Data and table pane with the option button
     
  4. Check the ObjectID check box. Identify the ObjectID of the previous user to be deleted and the new user to be re-assigned the assignment.

    ObjectID check box
    ObjectID of users
Note:
Workers are identified by ObjectID. The ObjectID is used to change the WorkerID of the assignment.
  1. Open the assignment layer in Map Viewer and change the WorkerID of the assignment to the new user's ID:
    1. Open the assignment in Map Viewer and in the Contents pane, click Show Table.

      Contents pane
       
    2. In the table, double-click the assignment WorkerID to change the ObjectID to the new mobile worker's ID, and click Save.

      Table with WorkerID
       
  2. Open Workforce for ArcGIS and delete the previous user.

Related Information