0

Is it possible to change the Company Information owner? I am facing an INACTIVE_OWNER_OR_USER error which is due to the owner being an inactive user.

enter image description here

Does not appear I can query for OwnerId either to simply do an update. SELECT Id,LanguageLocaleKey,Phone FROM Organization

Can this be done either via Apex or Salesforce Admin Settings?

  • When are you getting this error? On a specific action/workflow/etc? – Kris Goncalves Dec 10 '19 at 19:39
  • From an Apex Job which is utilizing code from an installed package that is not visible. But the error code indicates that the owner of this record (created by) is inactive which is true. Looking for a way to change the owner to someone else. – ebar Dec 10 '19 at 19:53
  • 2
    I'm confused what you're looking for in Organization. It sounds like the apex job is running as an inactive user. Are you able to abort the job and re-run it as someone else? – Kris Goncalves Dec 10 '19 at 23:40
  • There are many places in SFDC where automated operations may have been set up using an inactive User: scheduled reports/dashboards, email-to-case/other automated case operations, default workflow user, etc. These are all defined in Setup. The Organization's CreatedById should never need to be changed nor can it be – cropredy Dec 11 '19 at 2:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.