+ Start a Discussion
TheCustomCloudTheCustomCloud 

Inserting a Share record with an inactive user

I am inserting share records on a custom object fine through dataloader.

 

I am trying to insert a share record in a trigger and I get errors when the user is currently inactive.

 

 

This is going to be a huge problem for my project, anyone know how to get around this?

 

 

thank you!!

Tim BarsottiTim Barsotti

Re-active the users and after the sharing records are inserted you can deactivate them again. 

TheCustomCloudTheCustomCloud

Thanks Tim for reply.

The problem with that is we have millions of records to insert with 2000 users. Hundreds of these users are inactive. So we would either need to have hundreds of unused licenses sitting aorund for this purpose or we bulk load with a very small batch scope size causing the loading time to go from quite bad to unacceptable.

Tim BarsottiTim Barsotti

What's the business case for creating records associated to inactive users? I would push back on these types of requests unless there was a real business case to have records created and associated to inactive users. Record Ownership should typically be reserved for active users, hence the enforcement by SFDC.