LoginSignup
0
0

npsp.TDTM_Contact でのエラー

Posted at

This is a delayed response and I hope your solution has already found a fix. However, my organization has also had to worry about Apex timeouts. The most likely culprit is that on either Account or Contact, you have too many automations going on at one time. The fix would be to move some of those to be asynchronous (for instance, changing an Apex trigger into a Batchable), to make a PB or a Flow into a Scheduled Flow, and to try to favor Before-Save flows over the usage of workflow fields updates and Process Builder field updates when it comes to updating fields on the same object.

これは応答が遅れており、あなたのソリューションがすでに修正を見つけていることを願っています。ただし、私の組織では、Apex のタイムアウトについても心配する必要がありました。最も可能性の高い原因は、アカウントまたは連絡先で一度に実行されている自動化が多すぎることです。修正するには、これらの一部を非同期に移動し (Apex トリガを Batchable に変更するなど)、PB またはフローをスケジュールされたフローに変更し、同じオブジェクトのフィールドを更新する場合、ワークフロー フィールドの更新とプロセス ビルダー フィールドの更新が行われます。

statusCode': 'CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY', 'message': 'npsp.TDTM_Contact: System.LimitException: Apex CPU time limit exceeded'

In an attempt to determine the source of the error, I reduced my script to import just a single account and contact and still get the error (although the error with just one contact was different:

"npsp.TDTM_Contact: System.LimitException: npsp:Too many SOQL queries: 201'"

If you use Data Loader (or another tool that isn't your script) to insert the record, do you get the same error?

Nothing has changed in NPSP and the "Too Many SOQL queries" error does suggest a customization issue. Since you're only testing with a single insert and timing within your control, you should be able to get a debug log. Even though you can't see all the managed package code you might have, you should at least get some insight on to where and what is doing queries.

データ ローダー (またはスクリプトではない別のツール) を使用してレコードを挿入すると、同じエラーが発生しますか?

NPSP では何も変更されておらず、「SOQL クエリが多すぎます」エラーはカスタマイズの問題を示唆しています。コントロール内で 1 つの挿入とタイミングのみをテストしているため、デバッグ ログを取得できるはずです。管理パッケージのコードをすべて表示することはできませんが、少なくともどこで何がクエリを実行しているのかについてある程度の洞察を得る必要があります。

False,False,,"[{'statusCode': 'CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY', 'message': 'npsp.TDTM_Contact: System.LimitException: Apex CPU time limit exceeded', 'fields': []}]"

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0