Hi @kl28morr,
The above error is showing you that deliveryid is being treated as a nvarchar instead of an integer (bigint).
You will need to try to convert the variable befor passing it to a stored procedure. I would be somehitng like this:
EXEC [CDL].[dbo].[test] @deliveryid = CONVERT(BIGINT, [vars.deliveryId])
Alternatively, if it this does not work you can try CAST function.
Finally, I leave you with useful documentation:
CAST AND CONVERT (TRANSACT -Sql)
Create a stored procedure
Hope it helps, if you need more guidance please let me know.
Regards,
Celia