Assistant - Object reference not set to an instance of an object - One user gets error other does not

Hi @jholstine,

Welcome to the community

“Object reference not set to an instance of an object”

This error occurs when the BOT control tries to access/read any object which has not been initialized or a collection which is empty.

A little more info is required to answer the query but, as you say its working for 1 BOT and not working for another, It implies that there may be an external factor for it.

According to me experiences I can suggest some possible reason for this issue.

  • The data in the an config file related to second bot is missing.
  • You must be accessing or extracting data from a source(Database, web, excel… ) which is returning null in the second BOT scenario, and when the BOT tries to access the data the “Object reference not set to an instance of an object” exception gets invoked.

I am suggesting some investigation on your part for second scenario.

Thanks and Regards
Rishabh