Attempting to print double : Object reference not set to an instance of an object

Hello All

I am trying to print the value of a double variable using "write line "

VarName = CDbl(in_TransactionItem.SpecificContent(“Salary”))

VarName.ToString

but getting below error

VisualBasicValue: Object reference not set to an instance of an object.

@bibhu

Try this:

VarName = CDbl(in_TransactionItem(“Salary”).Tostring)

Are you reading data from orchestrator Queue ? And also check whether you passed arguments properly or not ?

I tried that as well but no luck

Yes i am reading from a queue, the variable is system
Double type