Symptoms
When refreshing the Connect service instance, you receive the error "SmartObject Server Exception: Error refreshing Service Instance 'ConnectService' Service returned " 'Object reference not set to an instance of an object.'."
Diagnoses
This is a known issue when making any changes to the Connect Service Instance using the SmartObject Tester utility. The typemapping settings are lost, resulting in this error.
Changes should only be made using the Test Cockpit
Resolution
If using the Out-Of-The-Box service instance, edit the service instance and enter the following XML into the Typemapping node:
<object type="SourceCode.SmartObjects.Services.ServiceSDK.Objects.TypeMappings">
<typemappings>
<mapping name="system.datetime" sotype="datetime" />
<mapping name="system.uint64" sotype="number" />
<mapping name="system.byte" sotype="number" />
<mapping name="system.decimal" sotype="decimal" />
<mapping name="system.int64" sotype="number" />
<mapping name="system.sbyte" sotype="number" />
<mapping name="system.uint32" sotype="number" />
<mapping name="system.uint16" sotype="number" />
<mapping name="system.string" sotype="text" />
<mapping name="system.boolean" sotype="yesno" />
<mapping name="system.single" sotype="decimal" />
<mapping name="system.int32" sotype="number" />
<mapping name="system.double" sotype="decimal" />
</typemappings>
</object>