Error deploying Compact Layouts - In field: RecordTypeId - no CustomField named Account.RecordTypeId found
Last updated 2019-02-09 ·Reference W-2063124 ·Reported By 69 users
When deploying object metadata including Compact layouts to an Org without an existing record type for that object in the destination Org (but that is included with the object as part of the deploy), It fails with the below error -
objects/Account.object (Account.Account_Compact_Layout) -- Error: In field: RecordTypeId - no CustomField named Account.RecordTypeId found
If we attempt the same deployment to an Org where the object has an existing record type, deployment is successful.
In an Org with no existing record types on Account, attempting to deploy a package which contains an Account record type and a compact layout which references the RecordTypeId field fails deployment with an error that Account.RecordTypeId does not exist while processing the compact layout.
Create at least one RecordType on the object being deployed as a Pre-deployment step. RecordTypeId field is available only when at least one record type exists on an object.
Reported By (69)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.