The following template, json data, and code snippet yield a ‘Cannot add a nested relation or an element column to a table containing a SimpleContent column’ exception in the LINQ reporting engine. Template and JSON data are valid - the problem seems to originate from name/type confusion in JsonDataSource about the nature of ‘foo’:
data.json:
{ "foo": [1,2,3],
"bar": {
"foo": { "baz":null }
}
}
template.docx:
<<[data.foo]>>
code:
var doc = new Document("template.docx");
var json = new JsonDataSource("data.json");
var rb = new ReportingEngine();
rb.BuildReport(doc, json, "data");