iscoscar Posted July 13, 2016 Share Posted July 13, 2016 I have a master report with many sub-reports, from sub reports, I’m calling another sub reports, basically I have three levels of reports, like the example below: Master Report Sub Report 1 Sub Report 2 Sub Report 2.1 Sun Report 3 In Studio, the report is able to call all the sub reports and get all the information without issue. My problem is when I’m moving this report to Jasper Server.From Jasper Server, I’m getting this error:Error Messagenet.sf.jasperreports.engine.JRException: Resource not found at: Paltel/AgentsPerformance/Sub_AgentsPerformaceByUserDomain.jasper.This error is in reference to the Sub Report 2.1 (IN RED COLOR)I have tried to publish the report using repo: location and also form Server add the report .jrxml file as resources into the specific location, however is not working. any idea how to fix this issue will be highly appreciate. Link to comment Share on other sites More sharing options...
iscoscar Posted July 20, 2016 Author Share Posted July 20, 2016 below the answer to my question:1. In studio, go to Repository Explorer, navigate to the specific project, select main.jrxml file, using right button select Properties2. Go to Resource Editor Tab3. Copy Parent Folder contain4. In Studio, go the main report and all sub reports, replace the sub report Expression using the value from Parent FolderEx.Replace this value:"Reports/AgentsPerformance/Sub_AgentsPerformaceSummary.jrxml"With the following value:"repo:/Reports/AgentsPerformance/AgentsPerformance_files/Sub_AgentsPerformaceSummary.jrxml"5. Save the main report and sub reports6. Compile all the reports modified7. Publish Main report8. In studio, go to Repository Explorer, select the folder where is the specific project and using right button select option New9. Select JRxml option10. Type the sub report name to aggregate to the specific project. Click Next11. Select option Upload From Workspace12. Select the sub report from workspace list13. Select Finish14. Repeat steps 8 to 12 for each sub report existing (in the main report and also in sub reports called by other sub reports) NOTE: Once modified the sub report Expression, the report won’t run in Studio, will be necessary to restore the original Expression to execute the report in Studio. 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