Hello Everyone, I have created a MasterReport which calls a subReprot with datasource as XML. I am passing the same xml file with different nodes in the subReport. I have tested my MasterReport with SubReport with the datasource expression. I have got the results without any issues. In the MasterReport, I was trying to sort a filed in the detail section. While I add the sorting option I was getting an error in my subreport datasource expression. This is something strange, If I remove the sorting option then the subreport is working fine. Is it a bug or is there any solution to solve this issue. Please help me out on this issue. Below is my subreprot expresssion, and this is working fine if i remove the sort field. Time zone: Default Error filling print... Error evaluating expression : Source text : ((net.sf.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).subDataSource("/document[name="+$F{DocumentName} +"]/version") Thanks