Assign Activity Error

I am getting an error in the Assign Activity.

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

I am assigning specific content from my queue in orchestrator to a variable.

If anyone can explain it to me how to resolve it

1 Like

Hi
–usually this error occurs when the variable in the activity where this error occured has null value in it
–kindly check once with the queue name mentioned
–it should be within double quotes
–and check whether it has any value in it or not
and check whether orchestrator is connected or not

hope this would help you
Kindly try this and let know for any queries or clarification
Cheers @Shanky_Bhatnagar

1 Like

@Palaniyappan Thank you! for your reply. I have checked the points u have mentioned, but they have been taken care of, I have attached the screenshot of the assign activity giving me the error. If u can further suggest.

Thanks in advance!

1 Like

Fine
—kindly check with whether in_transaction.SpecificContent(“StockName”).ToString is getting is any value and for that use a write line activity before to this assign and check for the value ie display panel
This would help us to validate this
Cheers @Shanky_Bhatnagar

1 Like

@Palaniyappan, It has a predefined value… different Stock names eg: Glenmark, Trident, Gati, in different queues

1 Like

@Palaniyappan

see the queue… I have pushed the data from different excels

1 Like

That’s fine buddy
Check once with a writeline activity
With that if we are able to see the value in the output panel then we are good, This error won’t occur
But if not we need to check with IN argument of in_TransactionItem

Cheers @Shanky_Bhatnagar

1 Like

Kindly check once whether name of the queue in the config file is correct
Cheers @Shanky_Bhatnagar

@Palaniyappan it is still giving me the same error… also the write line activity is also giving me same error as the Assign Activity

1 Like

No worries
Is the queue name in excel is correct
— kindly check with IN Argument as well whether it is passed correctly while invoking
Cheers @Shanky_Bhatnagar

Is the IN argument passed to this invoked workflow
Kindly check that once with Arguments property of the invoke workflow activity
Cheers @Shanky_Bhatnagar