メールを送信するかトリガーによる送信を使用し、メールを受信しない場合、次のエラーメッセージが表示されることがあります。
エラーメッセージの完全なテキスト:
MachineName: MAIL010101 MemberID: 12345678 JobID: 654321 OMMSlotID 44433322266 ExactTarget.OMM.FunctionExecutionException: Invalid index (parameter 2) passed to Row function. (無効なインデックス (パラメータ 2) が Row 関数に渡されました。)
Index must be less than or equal to the row count. (インデックスは行数以下である必要があります。)
Index Value (無効な値): 1 Row Count (行数): 0 Function (関数): Row(BuildRowsetFromXML(XML,"//URL"),1) Error Code: OMM_FUNC_EXEC_ERROR - from OMMCommon
AMPscript で、空の rowset が Row 関数に渡されました。Row 関数のパラメータには NULL の値を渡すことができないため、動作は失敗します。
エラーを解決するには、ROWCOUNT 関数を含めて、システムに値が空または NULL の場合の処理を指示するように追加の AMPscript を記述します。
1.rowcount を実行します。
2.行数が 0 より多い場合、データエクステンションから値を取得します。
3.データエクステンションからの値が NULL 以外の場合、購読者に送信します。ただし、データエクステンションからの値が NULL の場合は「raiseerror」関数をコールします。
%%[
var @rowset, @row
/*the below Rowset returns no rows*/
set @rowset = LookupRows('Target_DataExtension','Value_to_Return','Value_Does_Not_Exist')
/*the below Row function looks for the first row but does not exist*/
set @row = Row(@rowset,1)
]%%
%%[
var @rowset, @row
set @rowset = LookupRows('Target_DataExtension','Value_to_Return','Value_to_Search')
if RowCount(@rowset)> 0 then
/*if there are rows present then return the first row*/
set @row = Row(@rowset,1)
else then
/* do something else */
endif
]%%
000388006

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.