shenoyvb Posted September 9, 2014 Share Posted September 9, 2014 Hi,I am new to jaspersoft and I am using the 5.6 server and studio community edition for development.I created a Main report and subreport in Studio and set the subreport expression to the subreport path on the server i.e "repo:/Audio/Reports/NPS_subreport" and exported/published both the main report and subreport under the same location on server (/Audio/Reports/...). Also I have parameter used to link main and sub reports. While I run the main report on server with appropriate input parameters, the I am getting the error "Repository file resource /Audio/Reports/NPS_subreport could not be loaded". Can someone please advice. Is it an issue with the 5.6 version OR am i missing something?Thanks in advance for your help!! Link to comment Share on other sites More sharing options...
hozawa Posted September 10, 2014 Share Posted September 10, 2014 This sometimes happen. The easiest way I've found is to just delete the report from JasperReports Server repository and to upload the report from Studio once again after deleting server info from the jrxml source. Link to comment Share on other sites More sharing options...
anbuselvans Posted September 10, 2014 Share Posted September 10, 2014 1.Check the log to see whether the file path is correct.2.I created 2 parameters SUBREPORT_DIR - (Default Value Experession) - "repo:/public/My_Domain/Reports/Reports/" SUBREPORT_EXT - (Default Value Experession) - ".jrxml"and used this in the "Subreport Expression" like $P{SUBREPORT_DIR}+"SampleReport"+$P{SUBREPORT_EXT}.It works.You can make the parameter to popup so that you can enter local values to view in iReports and the defult to be used in Jasper Server.Hope it helps. Link to comment Share on other sites More sharing options...
merctron Posted September 25, 2014 Share Posted September 25, 2014 incase it helps someone:for me this worked out:repo:/root/reports/myorg/report_name/main_jrxmlusing community edition 5.6 jasperreports server Link to comment Share on other sites More sharing options...
fnmorenop Posted February 5, 2015 Share Posted February 5, 2015 In the JasperServer, the subrepots must be called as a resource from the main report, this can be done setting the subreport expression same as subreport resource id, as says the "JasperReports Server - User Guide - Release 5.6" page 149, 5.3 Adding a Complex Report Unit to the Server.Kind regards,Fabio Nelson Moreno Palacio Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now