Sandbox(サンドボックス) 環境から本番環境へ変更セットを実行する際、レコードタイプや主従関係項目が不足していると以下のエラーが発生します。
カスタムオブジェクトの定義
Can't set recordTypeTrackHistory on an object with no record types
カスタムオブジェクトの定義
Cannot set ControlledByParent on a CustomObject without a MasterDetail relationship field
本エラーは、変更セット内にオブジェクトの定義情報のみが含まれており、依存する構成要素が不足している場合に発生します。
各エラーメッセージの詳細な原因は以下の表のとおりです。
「Can't set recordTypeTrackHistory on an object with no record types」
変更セット内にオブジェクトの定義情報のみが含められており
レコードタイプ自体が変更セットに追加されていないことを示しております。
オブジェクトのメタデータとしては、レコードタイプが存在するという情報が
含まれているにも関わらず、実際の変更セット内にレコードタイプ自体が
存在しないため本エラーが発生しております。
「Cannot set ControlledByParent on a CustomObject without a MasterDetail relationship field」
変更セット内にオブジェクトの定義情報のみが含められており
主従関係項目が変更セットに追加されていないことを示しております。
オブジェクトのメタデータとしては、主従関係の項目が存在するという情報が
含まれているにも関わらず、実際の変更セット内に主従関係項目自体が
存在しないため本エラーが発生しております。
変更セットにレコードタイプや主従関係項目を追加して、再度アップロードしてください。
000385330

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.