3

I am getting an error for Failed to convert parameter value from a String to a Int32

Code :

var @temp
set @temp = "-536885345"

set @rows = LookupOrderedRows("data",1,"date Desc","oid",@temp))

here "oid" field is defined as "Number" in my "data" data extension

on execution getting the below error : Getting an error Failed to convert parameter value from a String to a Int32.

Please help me in fixing this issue.

2
  • 1
    I'm not familiar with ampScript, but shouldn't set @temp = "-536885345" be without double quotes if it's a number ? Commented Feb 20, 2015 at 8:44
  • Make sure to mark the answer as correct if it worked for you. Commented Feb 20, 2015 at 19:26

1 Answer 1

1

You are passing a string into a number field. Remove the quotes to make it a number.

var @temp 
set @temp = -536885345
set @rows = LookupOrderedRows("data",1,"date Desc","oid",@temp))`
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .