When i using LINQ Reporting Engine Template Syntax, form json data get a empty array, its worng

the template is:

when trials is empty array, will create a worng!

{“code”:500,“error”:“An error has been encountered at the end of expression ‘trial_drug?]’. Can not get the value of member ‘trial_drug’ on type ‘class com.aspose.words.net.System.Data.DataRow’.”,“data”:null}

What should I do? Hope to give a suggestion, thank you!

other:
i see a example

<<if [!items.Any()]>>No data.
<<else>><<foreach [item in items]>><<[item]>>
<</foreach>><</if>>

bug i get a error return.

{"code":500,"error":"An error has been encountered at the end of expression '!d.any()]>'. Can not resolve method 'any' on type 'class com.aspose.words.net.System.Data.DataRow'.","data":null} {"code":500,"error":"An error has been encountered at the end of expression '!d.any()]>'. Can not resolve method 'any' on type 'class com.aspose.words.net.System.Data.DataRow'.","data":null}

@zongsan Could you please attach your actual template and sample data here for testing? We will check the issue and provide you more information.

I’ve fixed the issue and found out that I need to increase the configuration through questions from other users in the forum.

engine.setOptions(ReportBuildOptions.ALLOW_MISSING_MEMBERS); 

thank you very much

@zongsan It is perfect that you managed to resolve the problem.