Monthly Archives: September 2018

ECMA2: Unable to retrieve schema. Error: Exception from HRESULT

Developing a new ECMA2? Importing schema? Receiving “Unable to retrieve schema. Error: Excpetion from HRESULT:” message? Not seeing anything helpful in the event log?

Same here. It turns out it was a legitimate error, although it could be more usefully phrased. I had simply forgotten to specify an anchor attribute. You must make sure that there is at least one anchor attribute specified in your SchemaType. And also, of course, make sure to specify an object name for the SchemaType when calling SchemaType.Create()