We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

LINQ Reporting Engine - JsonDataSource gets confused about objects

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’:


{ "foo": [1,2,3],
  "bar": {
    "foo": { "baz":null }



var doc = new Document("template.docx");
var json = new JsonDataSource("data.json");
var rb = new ReportingEngine();
rb.BuildReport(doc, json, "data");


We were able to reproduce the issue on our end. It is logged as WORDSNET-24720 into our tracking system. You will be notified through the forum thread, once it is fixed.

1 Like

The issues you have found earlier (filed as WORDSNET-24720) have been fixed in this Aspose.Words for .NET 23.2 update also available on NuGet.