The following error may appear when you send an email or use Triggered Send but don't receive an email:
Full error message text:
MachineName: MAIL010101 MemberID: 12345678 JobID: 654321 OMMSlotID 44433322266 ExactTarget.OMM.FunctionExecutionException: Invalid index (parameter 2) passed to Row function. 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
In AMPscript, an empty rowset was passed to the Row function. Since row parameter passed cannot be null the operation failed.
To resolve the error, write more AMPscript to includes a ROWCOUNT function and instruct the system what to do when it encounters an empty or NULL value.
1. Perform the row count.
2. If row count is greater than 0, retrieve a value from the data extension.
3. If the value from the data extension is not NULL, send to subscriber. However, if the value from the data extension is NULL, call the 'raiseerror' function.
%%[
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
]%%
If this is a Triggered Send, once you've made these changes, you'll want to pause, republish and restart it.
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.