I currently have two reports, both of which have a subreport.
The dataset for each main report and the subreport is exactly the same.
The subreport simply returns the name of an employee based on their ID within the main report.
The first report works fine and correctly returns the employee name, however my second report is only returning the data from the main dataset.
The second report works fine within the preview.
The only real difference between the two is that the second report ask for an order id so that you are able to see which employee dealt with the order, but as I said this works fine within the preview.
I've attached how the folders are structured on the server. Within both main files the subreport is called using "repo:subreport2.jrxml"