Cognos Analytics

Cognos Analytics

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

 View Only
  • 1.  Cognos 12.0.4 - Image Service - Report export in PDF

    Posted Tue December 31, 2024 09:08 AM

    Hello all,

    I have tried the image service to render in HTML/ PDF the bullet, marimekko, treemap and it works But if i add a Risk Matrix (a custom visualisation from the IBM accelerator catalog) it fails.

    Out of the box visualization (Bullet, Marimekko, Treemap)

    HTML :

    PDF :

    With Custom visualisation (Risk matrix)

    HTML :

    PDF : 

    Failed with the following message in the attached file "error message"

    Here below the logs of the docker container, file "docker_logs"

    The custom visualization was enabled 

    I have tested with another custom visualization and i got the same error.

    • Is there any other parameter to enable ?
    • Are the custom visualization really supported by Image Service ? 
    • Did i miss a step with the custom visualization ?
    • Did the custom visualization  have to be updated in order to be supported by the image service (any specific declaration..) ?

    Any help would be welcome ?

    Happy new year !



    ------------------------------
    LOIC POTIN
    ------------------------------

    Attachment(s)

    txt
    error message.txt   3 KB 1 version
    txt
    docker_logs.txt   53 KB 1 version


  • 2.  RE: Cognos 12.0.4 - Image Service - Report export in PDF

    Posted Fri January 10, 2025 02:42 PM

    Hi @LOIC POTIN,

    I just had a quick look at a 12.0.4 system and could generate the PDF from a report with the sample data that is coming with the visualization without a problem.

    So in general it works to convert a report with this visualization into a PDF. Could you try if that works on your end? Just to make sure.

    On the accelerator catalog page of the risk matrix are two notes and the second reads: "If there is no Internet connection in your environment, (e.g. Intranet, restricted environment) then the visualization will fail.".

    The logfile (lines 599 and the following) from docker actually looks like there is a problem accessing "http://localhost:9300/bi/v1/visualizations/customvis.catalog.risk-matrix/content/manifest.xml" from the docker container . Can you make sure that the file is accessible at all and especially that the docker container can reach the dispatcher and specifically the requested file?

    Best

    Samy



    ------------------------------
    Samy Elshamy
    ------------------------------



  • 3.  RE: Cognos 12.0.4 - Image Service - Report export in PDF

    Posted Wed January 15, 2025 02:57 AM
      |   view attached

    Hello Samy, Hello All,

    Glad to see that it works for you and that you confirm that Custom visualization works with Image Services. Unfortunately it is not working for me. So i have some questions, which platform do you use ?  I use Cognos Analytics on prem on my laptop with Windows 11 professional, it is a Cognos Easy installation and Docker Engine v27.3.1.

    When i analyse docker log, it appears that when i use an out of the box bullet visualization we use :

    http://localhost:3000/client/node_modules/@vida/vida/com/ibm/vida/vizbundles/vizbundle-vida-bullet/manifest.xml

    message: 'Request to fetch files',

    When i analyse docker log, it appears that when i use a customvisualization we use :

    http://localhost:9300/bi/v1/visualizations/customvis.catalog.risk-matrix/content/manifest.xml

    message: " Proxy request to fetch bundle'

    So the request type is not the same.

    One other things i have seen is that under the ca_vida_image_component_server container , when i try to reach with a curl command the manifest.xml of the bullet visualization it is ok :

    curl http://localhost:3000/client/node_modules/@vida/vida/com/ibm/vida/vizbundles/vizbundle-vida-bullet/manifest.xml

    When i do the same for the risk matrix, it fails and I got the message Unauthorized - Authentication required.sh

    And if i test the same URL on a web browser, i got the same message 

    It seems that there is a problem with the access of this ressource...

    Any idea ? Can you do the same test and identify the difference between your situation and mine.

    Thanks for your help and suggestions.

    Best.



    ------------------------------
    LOIC POTIN
    ------------------------------

    Attachment(s)

    rtf
    Docker_20250114.rtf   20.05 MB 1 version


  • 4.  RE: Cognos 12.0.4 - Image Service - Report export in PDF

    Posted Tue January 28, 2025 08:59 AM
    Edited by Samy Elshamy Tue January 28, 2025 08:59 AM

    Hey,

    I am running an on prem installation on Ubuntu 22.04.4. I think it is okay that resourced are not accessible directly through the dispatcher without any authorization. But you should be able to access the resource through the gateway once you are logged in to your instance: http://localhost/ibmcognos/bi/v1/visualizations/customvis.catalog.risk-matrix/content/manifest.xml

    Can you try that? If that works there is probably some authorization issue.

    Best

    Samy



    ------------------------------
    Samy
    ------------------------------



  • 5.  RE: Cognos 12.0.4 - Image Service - Report export in PDF

    Posted Wed January 29, 2025 12:21 PM

    Hello Samy,

    Finally it works, I got my custom visualization in my PDF thanks to the image service server.

    I connect to the Cognos portal with

    htttp://host.docker.internal:9300/bi 

    instead of

    http://localhost:9300/bi 

    and it helps to generate,  in the container, the following URL


    http://host.docker.internal:9300/bi/v1/visualizations/customvis.catalog.risk-matrix/content/vizdef.xml

    instead of

    http://localhost:9300/bi/v1/visualizations/customvis.catalog.risk-matrix/content/vizdef.xml

    And this link doesn't fail  !

    Many thanks.

    Best



    ------------------------------
    LOIC POTIN
    ------------------------------



  • 6.  RE: Cognos 12.0.4 - Image Service - Report export in PDF

    Posted Wed January 29, 2025 01:27 PM

    Hello Samy,

    It works in interactive mode but  still doesn't work when i execute the report in background.

    Can you tell me if it is the same for you ?

    Best



    ------------------------------
    LOIC POTIN
    ------------------------------



  • 7.  RE: Cognos 12.0.4 - Image Service - Report export in PDF

    Posted Thu January 30, 2025 02:31 AM

    Hi,

    what do you mean with execute the report in the background? Like running it through a schedule? That works here as well. What do the logfiles of the image service say? 

    Jumping back to the other problem: So I assume the issue was that the docker container resolved localhost to itself and not to the ip of the dispatcher, right?

    Best

    Samy



    ------------------------------
    Samy
    ------------------------------



  • 8.  RE: Cognos 12.0.4 - Image Service - Report export in PDF

    Posted Thu January 30, 2025 03:14 AM

    Hello Samy,

    Yes when i have talked about running in background, it is like running the report through a schedule for example. So happy to know that it works for you so i will continue to search why it doesn't work in that case for me. 

    As i said it works perfectly when i execute it with the action "Run the report" alone (interactive).

    I assume also that the docker container resolved localhost to itself and not to the cognos server ip of the dispatcher.

    Thanks for your quick answer.

    Best



    ------------------------------
    LOIC POTIN
    ------------------------------



  • 9.  RE: Cognos 12.0.4 - Image Service - Report export in PDF

    Posted Wed January 29, 2025 09:28 PM
    I have an IBM partner plus account but my access is denied, reason I don't. Any expert here could guide me what to do in this case