Symptoms
Error when refreshing K2 Connect Service Instance
Diagnoses
I have been following the 400.WUH - Developing with K2 connect LABS in our Development environment. After doing LAB 2 (Extending existing Service Objects, using Structures and XML Properties) I then published the service object from Visual Studio and got the following error:
SmartObject Server Exception: Error refreshing Service Instance 'ConnectService' Service returned " 'Object reference not set to an instance of an object.'."
I looked at the following Community Article: http://community.k2.com/t5/K2-blackpearl/Error-when-refreshing-K2-Connect-service-instance/ta-p/74399 but I dont understand what it is advising to do to resolve it (where is the service instance XML ?)
I removed the ReadEmployeeCommunicationasXML method (LAB 2 part 3) and was able to successfully publish the service instance. So it seems the issue is with the XML output parameter.
Resolution
Error when refreshing K2 Connect Service Instance
Please edit the Service Instance via the SMO Tester , copy the XML mentioned in the KB into TypeMapping and update
See if the issue persists after this
http://community.k2.com/t5/K2-blackpearl/Error-when-refreshing-K2-Connect-service-instance/ta-p/74399