リリース時に「Dependent class is invalid and needs recompilation」エラーが発生する場合、クラスとトリガーを再コンパイルしてください。
このエラーは、クラスやトリガが依存するメタデータが変更された場合に発生します。具体的には、オブジェクト名や項目の変更、または他のクラスからの呼び出しが影響します。解決策として、Salesforce Classic (セールスフォース クラシック)または Lightning Experience (ライトニング エクスペリエンス)の設定メニューからクラスとトリガを再コンパイルしてください。これにより、エラーが解消されます。
クラスとトリガーは、クラスが最後にコンパイルされてから依存するメタデータが変更されていない限り、有効であるとマークされます。クラスで使用されているオブジェクト名や項目に変更が加えられた場合 (オブジェクトや項目の説明の編集などの表面的な変更を含む)、またはこのクラスを呼び出しているクラスに変更が加えられた場合、isValid フラグは false に設定されます。
この情報は「Apex クラスの定義」で公開されています。
組織で管理パッケージをアップグレードすると、すべてのクラスおよびトリガーが無効としてマークされることに注意してください。
リリース時に「Dependent class is invalid and needs recompilation」というエラーが発生した場合は、クラスとトリガーを組織でコンパイルする必要があることを意味します。
000388111

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.