REFramework : Object reference not set to an instance of an object

Hi All,

We are using REFramework without queues. Transaction item will be based on number of rows in excel input file. We want to assign below values of input excel to variable in Assign activity but its throwing an error as Object reference not set to an instance of an object.

in_CustomerName = in_TransactionItem.Item(“Customer Name”).ToString

Thanks,
Kalpana

Check whether transactionitem is correctly assigned or not @KalpanaKumari

@KalpanaKumari

Check the arguments are passing correctly

Hope this helps you

Thanks

In a nutshell it means… You are trying to access an object without instantiating it… You might need to use the “new” keyword to instantiate it first i.e create an instance of it from class.

public class MyClass
{
   public int Id {get; set;}
}

MyClass myClass;

myClass.Id = 0; //error comes here

You will have to use:

myClass = new MyClass();
myClass.Id = 0;