Marketing Cloud Engagement の Email Studio における送信ログ DE の作成時や運用時に注意が必要なポイントをまとめた記事です。
標準の送信ログテンプレートから作成できる送信ログ DE は、ビジネスユニット(BU、MID)ごとに、メール用 1 つまでです。1つ以上作成しようとすると、作成時にエラー (generic error) となり作成できません。もし既存の送信ログ DEが存在しないにも関わらず、エラーが発生する場合には対象のMIDを添えてお問い合わせください。
参考)
タイトル: Create an Email Send Logging Data Extension
メール送信がエラー・キャンセルになり、その後の検証で当該メールの AMPscript やプレビュー、データ検証でも要因が見当たらない場合は、送信ログ DE への主キー重複によるエラーの可能性があります。
送信ログ DE に主キーが設定されている場合、送信過程でのリトライ処理により、すでに書き込まれた行を再び挿入を試みて、重複キーエラーが発生するというお問い合わせが多く報告されています。
* すでに送信ログ DE に 主キーを設定してしまった場合、主キーは、DE の作成後に変更できません。変更する場合は、DE を削除して作り直す必要があります。そのため作成をしなおすか、この事象に伴う送信エラーが発生した場合は未送信分を手動で再送するなどの対応が必要になります。
参考)
タイトル: Send Logging Best Practices and Tips
URL: https://help.salesforce.com/s/articleView?id=mktg.mc_es_send_logging_best_practices.htm&type=5
送信ログ DE は送信のたびに記録されるため、運用期間が長くなるとレコード数が大きくなります。
レコードが多いまま放置した場合には、送信ログ DE へのクエリのタイムアウトや、そのDEを Lookup するメールで送信に時間を要する事象が発生するリスクが高まります。
そのためデータ保持ポリシーを活用した定期的なレコードの自動削除、ならびに別のDEやCSVなどへのレコードのバックアップを計画します。
*別DEへバックアップする場合はこちらも同様にレコード数が大きくならないよう注意します。
・送信ログ DEに対するそのほかの推奨については下記を参照してください。
タイトル: Send Logging Best Practices and Tips
URL: https://help.salesforce.com/s/articleView?id=mktg.mc_es_send_logging_best_practices.htm&type=5
・主キーの設定による送信時の重複エラーは、Emailの 送信ログ DE 以外 (LINEや MobilePush等) でも同様に発生し得ます。そのため基本的に 送信ログ DE (テンプレート・自作問わず) には主キーを付与しないことが推奨されます。
タイトル: Marketing Cloud Engagement | How to Store LINE Send Logs in a Data Extension
URL: https://help.salesforce.com/s/articleView?id=005131990&type=1
・主キー重複が発生し送信エラーが発生する事象については、下記の Known Issue にも紹介されています。
タイトル: Marketing Cloud email sends can fail for "Violation of PRIMARY KEY" when InsertDE AMPscript is present
URL: https://help.salesforce.com/s/issue?id=a028c00000ziSBqAAM
005461249

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.