「Apex CPU 時間の制限を超えました」というメッセージは、Salesforce (セールスフォース) での Apex コードの実行にかかる時間が、Salesforce サーバ上の最大 CPU 時間として許容される限界より長くなっていることを示しています。これらの限界についての詳細は、ドキュメンテーションを参照してください。
しかしほとんどの場合、この現象は単独ではなく、同時に実行される複数のトリガーによって発生します。Account Engagement がすべてのリソースを消費し尽くすことはありませんが、限界を超えた時に実行されていたプロセスが原因となっている可能性があります。これにより Salesforce で Account Engagement がエラーのトリガーとして参照される可能性があります。
この記事に記載されているように、Account Engagement ビジネスユニットのコネクターユーザー / インテグレーションユーザーに対してデバッグログを有効化することをお勧めします。
推奨されるデバッグレベルは以下のとおりです。
デバッグログを有効化した後、エラーの再現を試みます。再現したら、Salesforce の設定のクイック検索に「デバッグ」と入力します。
ここにはリソースの使用に関するより多くの情報が含まれています。
こちらに記載されているように、他の Apex クラス/トリガーに最適化の必要性があることが可能性として考えられます。この方法が常に有効であるとは限りませんが、Salesforce のログからどのトリガーが多くの時間を消費しているか、情報に基づいた推理を行うことができます。
000388822

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.