I am using the below SSJS to remove a row from a data extension.
<script runat="server" >
Platform.Load("Core","1.1.1");
try
{
var DeleteCustomerNumber = Variable.GetValue("@DeleteCustomerNumber");
var DeletedResult = Platform.Function.DeleteData('ReferenceMicrositeModifyData',['CustomerNumber'],['1111']);
}
catch (e)
{
Write("<br><br>Error: " + Stringify(e));
}
</script>
This works successfully, and removes the record with CustomerNumber '1111' from the data extension, but the below error page is shown in the landing page.
If I change the static value to one that does not exist in the data extension, then I do not get the same error page.
I have the exact same issue if I try and delete the row with ampscript.
Any ides what might be going on here?