All Collections
Gearset for data sandbox seeding
Troubleshooting
Resolving data deployment errors: INACTIVE_OWNER_OR_USER
Resolving data deployment errors: INACTIVE_OWNER_OR_USER

This article explains when and why the INACTIVE_OWNER_OR_USER errors occur, and how to fix them

Ben Thompson avatar
Written by Ben Thompson
Updated over a week ago

The INACTIVE_OWNER_OR_USER error can occur during a data deployment when attempting to assign a record to an inactive user.

What causes the error?

By default, Salesforce does not allow you to assign records to users that are inactive.

If you try and assign a record to an inactive user, it will return a INACTIVE_OWNER_OR_USER error with the IDs of the records which cannot be deployed.

Gearset will show an error like so:

A common example of this is when attempting to restore from a backup when the user that created the record is now set to inactive.

How do I fix the error?

First, consider whether you wish to reactivate the user in question in order to proceed with the deployment.

Alternately, you can change some user permissions to enable you to update records with inactive owners:

  1. Click Setup

  2. In the Quick Find box, enter User interface and select the User interface menu option

  3. Tick the Enable “Set Audit Fields upon Record Creation” and “Update Records with Inactive Owners” User Permissions box as shown

  4. Enable Update Records with Inactive Owners of the user profile or in a Permission Set. More details in this article.

    Once you have followed these steps, try rerunning the deployment.

Did this answer your question?