origam.com

Invalid error message for missing data structure entity in a screen

I have a screen based on the SD data structure. When I try to open the screen, I get the following error:

DataMember not set for a screen section inside a screen. Cannot render a screen section. 
MeasurementRequest_Email/MeasurementRequest_EmailRootControl/AsPanel1

When I check the screen section properties both in the Architect and in the XML file, both have the DataMember set.

<pvi:PropertyValueItem
asi:abstract="false"
x:id="9b0d2417-c455-44ea-aa2b-691b29574453"
asi:name="DataMember"
apvi:propertyId="8c12e0ab-e4bd-4675-8f12-c5930a07be14"
pvi:value="SD" />

From the discussion it seems that you had a wrong context store assigned to the screen which did not have the right entity SD.

In that case the error message is misleading and should be fixed to correctly indicate that it is the entity that was not found in the data source, not a missing DataMember.