ORIGAM version: 2025.10.1.4038
If Data parameter input is a virtual data structure then it results in error:
Key "Data" should be of type Origam.Service.Core.IDataDocument (Parameter 'Data')
ORIGAM version: 2025.10.1.4038
If Data parameter input is a virtual data structure then it results in error:
Key "Data" should be of type Origam.Service.Core.IDataDocument (Parameter 'Data')
What do you mean by virtual data structure? That it contains virtual entity?
Are you sure you pass the context store correctly? Can you attach a screen shot of configuration? This error might be also a result of missing value.
The referenced context store is _any (XSD) that was filled in a transformation in a previous workflow step. The transformation result looks correct with ROOT element and further element/attributes structure.
This is the input data for the following step that fails:
<ROOT>
<data Name="Insert all team tasks" Due="31.12.2025" Assignee="John Boulder" />
<data Name="Get rid of all outdated paper documents" Due="31.12.2026" Assignee="Joan Bezos" />
<data Name="Testovací úkol" Due="31.12.2025" Assignee="Viktor Ter" />
<data Name="Test" Due="12.01.2026" Assignee="Viktor Ter" />
<data Name="TEST2" Due="13.01.2026" Assignee="Peter Mann" />
</ROOT>
And yes, “virtual data structure” = data structure with a virtual entity ![]()
The _any (XsdDataStructure) context store is internally represented by an object implementing the IXmlContainer interface. This means there is no structure or dataset to rely on.
A context store based on a DataStructure is represented by an object implementing the IDataDocument interface, which provides access to the DataSet property. This property is then used by the XmlJsonConvertService.TypedXmlJson method to read type information for JSON generation.
Side note: IDataDocument inherits from the IXmlContainer interface.
Therefore, a context store based on _any cannot be used as the Data parameter for the XmlJsonConvertService.TypedXmlJson method. You must use a context store based on DataStructure.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.