Jump to content
We've recently updated our Privacy Statement, available here ×
  • After upgrade from an older version subreports pointing to a different data source stopped working


    Friendly User
    • Features: Reports, Repository Version: v7.2, v7.2.2, v7.2.1, v7.2.0 Product: JasperReports® Server

    Scenario:

    You have developed reports in older versions of JasperServer (<7.2.0) which have subreports that connect to different data sources using property

    <property name="com.jaspersoft.jrs.data.source" value="/organizations/organization_1/datasources/somedatasource"/>

    Now it's not displaying any data. What could be the problem?

    Solution:

    In 7.2.0 and higher the resources belonging to organization need to be referenced from the organizational root instead of repository root. The users that belong to organization and develop reports for organization are not supposed to know there's something above the organization in the repository structure. So for users from organization_1 to run this properly the correct repository path would be the following:

    <property name="com.jaspersoft.jrs.data.source" value="/datasources/somedatasource"/>

    Notice the /organizations/organization_1 removed. Same thing applies to any other resource reference such as image, subreport, etc.


    User Feedback

    Recommended Comments

    There are no comments to display.



    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...