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
Developer BaseDeveloper Base 

Creating record type for an object results in old records having no RecordTypeId

Hello there!

I created two record types on the Account object. Record that were already existent remained with an unassigned record type Id. Seems like this is an expected behaviour, but I can't find an explanation in the documentation.

Can anyone help me with the research and explanation?

Thank you
DevBase
Best Answer chosen by Developer Base
AnudeepAnudeep (Salesforce Developers) 
Yes, this is working as designed. We see this issue if the records were created before the two record types were created. There isn't any documentation that I can point you to but you can try setting an option to automatically insert your default record type when you create records.

https://help.salesforce.com/articleView?id=user_recordtype.htm&type=5

I recommend taking a look at this post where this issue is already discussed 

Let me know if this helps, if it does, please close the query by marking it as solved. It may help others in the community. Thank You!