Automation Studio のインポートアクティビティや SQL クエリアクティビティを使用して、データエクステンションへデータの「追加および更新」を行う際に下記エラーが発生する場合があります。
Error 1946: Operation failed. The index entry of length XXXX bytes ... exceeds the maximum length of xxxx bytes for nonclustered indexes.」
本事象は複合インデックスのサイズが最大サイズを超えた場合に発生します。
エラーを回避するためには、適切な Primary Key を設定します。
Automation StudioのインポートアクティビティやSQLクエリアクティビティを使用してデータエクステンションを更新する際のエラーの要因と、Primary Keyの適切な設定について説明します。
エラーの要因
データエクステンションにおいて複数の項目を Primary Key として指定した場合、複合インデックスが作成されます。アクティビティによるデータの「追加および更新」処理の実行時には、作成された複合インデックスのサイズがシステムによってチェックされます。このとき、Primary Key に指定されている項目の実際の値の合計サイズが最大サイズを超過していると、エラーが発生します。
なお、更新タイプが「上書き」の場合、ターゲットとなるデータエクステンション内のデータが一度クリアされてから再挿入される動作となります。この場合は、インデックス生成までの内部処理過程が異なり、インデックスサイズの超過エラーは発生しませんが、インデックスが適切に利用されない可能性があるため、Primary Key の適切な設定をご検討ください。
Primary Keyの適切な設定
005465534

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.