A Tip A Day #17 – Upload Records with Inactive Owner

This post is a part of the daily blog series 

A Tip A Day, daily dosage of learning!


Day #17 – Upload Records with Inactive Owner

Recently I was migrating few old records into Salesforce using Data loader.  The upload csv file had of course Record Owner field referring to the User record.  I got the User record Id from Salesforce and mapped it to the Owner field.

While uploading, I got the error – “A record owner cannot be Inactive!”.  Apparently, few record owners are Inactive.  I cannot assign them to an active owner as these belong to an old owner who no longer is active since these are legacy system records.

Here’s the workaround.  Salesforce does give us the ability to assign a record to an Inactive owner but there are couple of settings that need to be set to be able to do so.

1. Setup –> User Interface

First, in the User interface settings, check the check box “Update Records with Inactive Owners” user permission.  Note that this is associated with “Set Audit Field upon Record creation” setting as well.  The Audit field setting allows you to set the Created Date of the newly created record to an old date (which is quite useful) while migrating old data to reflect the exact creation date.

user_interface_permission_sfdcfanboy_inactive_owner.png

2. Profile Permission OR Permission Set

Next, you need to give the same permission in the Profile level also.  If you don’t want to give all the users in a Profile with this permission, you can instead create a permission set with this particular permission and assign it to the users whom you want to give the ability to.

At the profile level, check the checkbox “Update Records with Inactive Owners” or in the permission set choose this permission.

 


Read all other tips of the blog series here – A Tip A Day, daily dosage of learning!


Enter your email address to follow this blog and receive notifications of new posts by email.

Advertisements

3 Replies to “A Tip A Day #17 – Upload Records with Inactive Owner”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s