Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
Expand all | Collapse all

How do I fix an Error from d3 presented in CA 11.0.5?

  • 1.  How do I fix an Error from d3 presented in CA 11.0.5?

    Posted Wed February 20, 2019 07:12 AM

    I have a d3 visualisation used by a Cognos Analytics report, presented through an iFrame that is throwing an error at what appears to be random times. The report is of live production data and is displayed for many hours in a factory. I am looking for advice about how to correct the problem.

    The flow of data is from an ERP, to a Cognos list report. This list report is then referred to in a master .js file that then calls a d3.js file called "d3.v3.min.js".

    In the master js file there is an statement that reads as follows:

    error: function(jqXHR, textStatus, errorThrown) {
    //alert(errorThrown);
    alert("There was an error with the source data. This is probably due to not being able to connect to the source Cognos report. Please attempt to log in and try again.");
    },

    This error is then thrown at randomly when the report is displayed.

    I had someone develop this solution for me and he is difficult to get hold of. This is now used in a production environment and although I know Cognos, I don't know js or d3 and am somewhat lost about how to stop the error occurring.

    Any help or suggestions will be much appreciated.

    Thanks

    John



    ------------------------------
    John Vaughan
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: How do I fix an Error from d3 presented in CA 11.0.5?

    Posted Wed February 20, 2019 11:41 AM
    It's hard to tell from the description how this solution was developed.   Here is a video on integrating D3 with CA.   If you require a production ready solution that is supported, you may to engage someone like Ed who has experience developing solutions like this.
    D3.js and IBM Cognos Analytics
    YouTube remove preview
    D3.js and IBM Cognos Analytics
    A quick demonstration of 2 IBM Analytics Custom Controls built using d3.js. While creating visualizations with D3 can be challenging, the resulting Custom Controls should be easy for Power Users to deploy. ***Sample code posted to github and linkedIn. LinkedIn: https://www.linkedin.com/feed/update/urn:li:activity:6333337712292093953 github: https://github.com/ed-gonzalez/Cognos-D3-Custom-Controls
    View this on YouTube >


    ------------------------------
    Michael Matson
    ------------------------------