Reporting Q2 2014 "Object reference not set to an instance of an object"

13 posts, 1 answers
  1. Mike
    Mike avatar
    8 posts
    Member since:
    Mar 2014

    Posted 26 Jun 2014 Link to this post

    I recently upgraded to Q2 2014 and now I cannot open any reports created in any previous version. When I open the report, I get the error as shown in the screen shot. If I ignore and continue, I get the report designer, but some of the data sources are messed up. I am on Visual Studio 2012. Did I miss something in my project to upgrade the project?

    I can create a new report and it will work okay.
  2. David
    David avatar
    125 posts
    Member since:
    Jan 2011

    Posted 26 Jun 2014 in reply to Mike Link to this post

    I can report a similar problem.  I am using Visual Studio 2013 Premium Edition with a full Dev Edition of Telerik Suite.  I have found I get the similar error when I have more than one report open in the Studio designer at the same time.  It really doesn't matter what aspect of the designer is open (design/preview/html view) it seems only one "instance" of a telerik report may be open on a Tab within the Studio designer.  The underlying errors seem to indicate that I am missing a reference somewhere.  I am however not missing any.  The problem has manifested itself across any project that open no matter how simple or complex.   I even went so far as to completely remove all Telerik products and do a complete re-install.  The problem remains constant.

    The ability to have ONE report open, while limiting my abilities, at least means I can continue to function.
  3. Answer
    Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 27 Jun 2014 Link to this post

    Hello,

    @Mike: The problem which you have described has been fixed already. Please, log into your account and download the latest internal build (8.1.14.620) with the fix.

    @David: You are reporting a different problem which we cannot reproduce. Could you, please, open a support ticket and send a sample project with reports which cannot be opened at the same time? In general there is no such limitation so it might be something specific to the usage in your case.


    Regards,
    Chavdar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  4. Mike
    Mike avatar
    8 posts
    Member since:
    Mar 2014

    Posted 27 Jun 2014 in reply to Chavdar Link to this post

    Thanks @Chavdar!
  5. David
    David avatar
    125 posts
    Member since:
    Jan 2011

    Posted 27 Jun 2014 in reply to Chavdar Link to this post

    Providing you with a sample project appears to be a challenge.  Everything created from scratch appears to be fully functional.  Existing projects which go through the upgrade wizard appear to be the suspect.  Curiously I am finding that even in brand new projects, when I add a new report to a project it must go through the upgrade wizard BEFORE it appears to be recognized as being "valid".  By this I mean the "Telerik/Reporting" menu tree only contains the "Upgrade Wizard" until you run a newly added report to a project.  Once processed by the "Upgrade Wizard" the other items such as "Report Explorer", "Data Explorer" and so forth become available.

    My source project is approaching two million lines of code with over 300 distinct reports.  Without the underlying data source it will be useless to you.  Of possible merit to your review of this problem, I have noticed that the problem seems to be consistent with how the given report is data bound.  Reports that are bound to a dataset table adapter are pretty much universally "broken".   By this I mean that only one instance can be open at a time.  Reports that are directly bound to data via a SQL or Object Datasource seem to be unaffected.  By this I mean that they open without displaying an error. 

    Your comment that it seems to be a different error than Mike expressed might be true however the errors displayed are identical.  I would be interested in trying that fix if available.
  6. Mike
    Mike avatar
    8 posts
    Member since:
    Mar 2014

    Posted 27 Jun 2014 in reply to David Link to this post

    David, I downloaded that fix and it worked for me. I would say give it a shot.
  7. David
    David avatar
    125 posts
    Member since:
    Jan 2011

    Posted 27 Jun 2014 in reply to Mike Link to this post

    The internal build was installed and tested.  It works in 100% of my reports.  No matter how they are databound they now open without error. 

    Without meaning to cast any evil thoughts against the Telerik programmers, how reliable is the "internal build"?  If I migrate my code to use this internal build, is movement to a production environment "not advised"?  If not, when will this fix enter the main stream?
  8. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 27 Jun 2014 Link to this post

    Hi David,

    The internal build is available in your account as well. Feel free to give it a try and let us know whether your issue has been fixed meanwhile.

    When adding a new Telerik Report item make sure that its name includes the latest installed version (e.g. Telerik Report Q2 2014 (Blank)). In this case the Upgrade Wizard should not run.

    For the sample project we don't need the entire code base. Two reports with the respective data sources which reproduce the issue should be enough.

    Regards,
    Chavdar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 27 Jun 2014 Link to this post

    Hi David,

    The internal build contains only a couple of small bug fixes so it is basically equal to the official release. You can check the release notes for the build to see exactly what is fixed.

    On other side, we will publish an official service pack release probably in a month or so.

    Regards,
    Chavdar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  10. Robin
    Robin avatar
    3 posts
    Member since:
    Jul 2013

    Posted 27 Jun 2014 Link to this post

    We had the same issue and applied the hotfix mentioned.  Now I can't right-click inside report to View Code, I have to select that from the Solution Explorer window.  Is there a fix to that?
  11. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 30 Jun 2014 Link to this post

    Hello Robin,

    This is a known issue logged in our system for improvement. A fix will be provided in a consecutive internal build.

    Apologies for the caused inconvenience.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  12. Robin
    Robin avatar
    3 posts
    Member since:
    Jul 2013

    Posted 01 Jul 2014 in reply to Stef Link to this post

    I am also trying to modify some data boxes and when I click on the eclipse on value and then on Fields in the Edit Expression dialog box, the fields of the datasource don't populate now.  Is that also a bug?
  13. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 02 Jul 2014 Link to this post

    Hello Robin,

    The Fields option will list the data fields available in the data source assigned to the data item. Please double-check if the data item's DataSource is set to a component, which fields can be previewed in the Data Explorer.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top