function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Admin YakkalaAdmin Yakkala 

How to change OwnerId to null or Empty


I'm trying via BatchApex update Account field OwnerId to empty (or null) value. But it impossible.  If I set "null" to this field - update falling with INVALID_CROSS_REFERENCE_KEY. Heed help, thx!
Boss CoffeeBoss Coffee
OwnerId cannot be blank or null. What is your use case for trying to set OwnerId to empty/null?