In a BeforeUpsert Flow for Accounts, I want to update the RecordTypeId from a PersonAccount RecordTypeId to a BusinessAccount RecordTypeId, depending on a Picklist Value on the Account Object. According to following Link it should work fine and also it did work fine when testing it via Apex. (Link: https://help.salesforce.com/s/articleView?id=000323364&type=1)
In debug mode the Flow also works fine, just as I expect it to. However, when activating the Flow and doing changes in the System I get the following error:
- Record Type ID: value not valid for the entity: PersonAccount
What can be the reason for the error and can I avoid it?