GSE3006N Invalid internal type id.
Explanation
The internal data type identifier for this geometry is a null value and therefore invalid.
This error can occur if the internal representation of the geometry is corrupted, or if the geometry was not constructed by one of the supported constructor functions or methods.
User response
Construct the geometry again by using one of the supported constructor functions or methods.
msgcode: -3006
sqlstate: 38SU6