I'm deactivated a Record Type with Name="All". It return me the error:
This record type All cannot be deactivated because it is used by the following Objects.
Opportunity.Codice_Account_opp
IF( Account.RecordType.DeveloperName = "Lead", Account.Codice_Nielsen__c,
IF( Account.RecordType.DeveloperName = "Lead_Personali", Account.Id ,
IF( Account.RecordType.DeveloperName = "Cliente", Account.PARTNER__c,
IF( Account.RecordType.DeveloperName = "Cliente_Cancellato", Account.PARTNER__c,
IF( Account.RecordType.DeveloperName = "Agenzie", Account.PARTNER__c,
IF( Account.RecordType.DeveloperName = "Agenzia_Cancellata", Account.PARTNER__c,
""))))))
As you can see, that Object does not use the Record Type of the Opportunity, i.e., there is not in that code "Account.RecordType.DeveloperName="All".
So, what happens?