< class="prominent-subhead ">

"Object reference not set to an instance of an object" error when executing ADO query

This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.


When you have a SmartObject directly correlated to K2 Connect and try to execute a list method to allow data to be returned from SAP, this fails with an error on the user interfaces screen. 

The same error can occur if you are executing an ADO query  when using the "UNION ALL SELECT" method. This is tested within the SmartObject tester tool.


The following error will appear within the SmartObject tester tool:

"Object reference not set to an instance of an object."


This issue has been resolved by applying Fixpack 6 for March CU. This can be obtained by contacting K2 Support.