Cognos Analytics

Cognos Analytics

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


#Product
#Analytics
#CognosAnalytics
#Analyticstools
#TechXchange Partner
#TechXchange Session
#TechXchange Presenter
#AI
 View Only
Expand all | Collapse all

11.1.4 Custom Vis - cannot start

  • 1.  11.1.4 Custom Vis - cannot start

    Posted 10/28/19 11:16 AM
    Hi there
    I have followed the instructions on how to get the custom visualisations working here:
    https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.1.0/com.ibm.swg.ba.cognos.dg_custom_vis.doc/ca_customviz_tutstepbystepintro.html

    I have downloaded and installed node.js as per the instructions, 
    node --version returns a result
    npm install -g customvis.tgz  - also runs fine.
    When I try to execute customvis --help   or customvis start

    I get the following error: 'customvis' is not recognized as an internal or external command, operable program or batch file.

    Can anyone advise on how to troubleshoot this ?

    ------------------------------
    Nick Waters
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: 11.1.4 Custom Vis - cannot start

    Posted 10/29/19 08:07 AM
    Hi Nick,

    It looks as if the npm bin folder is not in your search path. You can do the following:

    1. execute 'npm bin -g' to find out where npm stores your global modules.
    2. list the contents of the folder that you got in step 1. You should see 'customvis' in here.
    3. add the folder from step 1 to your PATH. How to do this depends on your operating system.

    Note that you might have to restart your cmd / terminal process to have the PATH setting take effect.

    Regards,

    Ton Steijvers

    ------------------------------
    Ton Steijvers
    ------------------------------



  • 3.  RE: 11.1.4 Custom Vis - cannot start

    Posted 10/29/19 08:15 AM
    Hi Ton
    Thanks for your speedy response !. Here is the output from npm bin -g

    C:\Users\XXXX\AppData\Roaming\npm\node_modules\@businessanalytics\customvis-lib>npm bin -g
    C:\Users\XXXX\AppData\Roaming\npm

    Looking into the directory structure further I can see the following directories...

    C:\Users\XXXX\AppData\Roaming\npm\node_modules\@businessanalytics\customvis-lib>dir
    Directory of C:\Users\XXXX\AppData\Roaming\npm\node_modules\@businessanalytics\customvis-lib

    28/10/2019 15:14 <DIR> .
    28/10/2019 15:14 <DIR> ..
    28/10/2019 15:14 <DIR> lib
    28/10/2019 15:14 2,334 package.json
    26/10/1985 08:15 1,955 readme.md
    28/10/2019 15:14 <DIR> types

    Regards
    Nick

    ------------------------------
    Nick Waters
    ------------------------------



  • 4.  RE: 11.1.4 Custom Vis - cannot start

    Posted 10/29/19 08:40 AM
    Hi Nick,

    So far this looks good. If you look in 'C:\Users\XXXX\AppData\Roaming\npm' you should see a customvis.cmd file. This is the command that should be executed when you type 'customvis' anywhere on the command line.

    Can you verify that 'C:\Users\XXXX\AppData\Roaming\npm' is in your search path? You can type path on the command line to see what is currently in your search path. If it isn't, you can use setx PATH "%PATH%;C:\Users\XXXX\AppData\Roaming\npm" to update your search path. You might need to restart the cmd process for the new path to take effect.

    Regards,

    Ton

    ------------------------------
    Ton Steijvers
    ------------------------------



  • 5.  RE: 11.1.4 Custom Vis - cannot start

    Posted 10/29/19 08:51 AM
    Hi Ton
    Thanks again for your help on this one !.
    I definitely have npm added to my path (see below), but dont see the customvis.cmd file available in the directory...

    C:\Users\water\AppData\Roaming\npm>dir
    Volume in drive C has no label.
    Volume Serial Number is 9CF7-E6A2

    Directory of C:\Users\XXXX\AppData\Roaming\npm

    29/10/2019 12:47 <DIR> .
    29/10/2019 12:47 <DIR> ..
    29/10/2019 12:48 0 cls
    29/10/2019 12:48 0 dir
    29/10/2019 12:48 0 lib
    28/10/2019 15:14 <DIR> node_modules
    29/10/2019 12:48 0 npm
    29/10/2019 12:48 0 types
    5 File(s) 0 bytes
    3 Dir(s) 289,297,469,440 bytes free

    C:\Users\xxxx\AppData\Roaming\npm>path
    PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\IBM\SPSS\Modeler\18.2.1\ext\bin\spss.TMWBServer\bin;C:\Program Files\nodejs\;C:\Users\XXXX\AppData\Local\Microsoft\WindowsApps;C:\Users\XXXX\AppData\Roaming\npm



    ------------------------------
    Nick Waters
    ------------------------------



  • 6.  RE: 11.1.4 Custom Vis - cannot start

    Posted 10/29/19 10:31 AM
    Hi Nick,

    Something in your second post just triggered me... you seem to have a customvis-lib folder in  C:\Users\XXXX\AppData\Roaming\npm\node_modules\@businessanalytics.

    That looks like the customvis.tgz that you used to install only contains the API, not the full customvis tools and libraries. Can you check what is inside this tgz file (by unzipping it)? There should be a dist folder, a templates folder and a package.json file in the tgz.

    A correct version of the tgz can be downloaded from [CAserverroot]/bi/js/dashboard-analytics/lib/@waca/vida/sdk/customvis.tgz. The installation of that file should take some time and it should report that it has installed something like 305 packages. If you saw something different during install, it means you probably have an incorrect customvis.tgz.

    You can uninstall and reinstall using:
    npm uninstall -g @businessanalytics/customvis
    npm install -g customvis.tgz

    Regards,

    Ton​

    ------------------------------
    Ton Steijvers
    ------------------------------



  • 7.  RE: 11.1.4 Custom Vis - cannot start

    Posted 10/29/19 11:19 AM
    Hi Ton
    Your guidance has worked - thank you so very much !.
    I copied the customvis.tgz from the required sdk directory and everything works fine now !.
    The IBM documentation was unclear as to where to locate this tgz file.

    Thanks again
    Nick

    ------------------------------
    Nick Waters
    ------------------------------



  • 8.  RE: 11.1.4 Custom Vis - cannot start

    Posted 10/29/19 11:33 AM
    Hi Nick,

    Good to hear you have it working! I just added an entry in the FAQ for customvis (https://github.com/IBM/ca_customvis/wiki/Customvis-FAQ) that explains were to download the tools. In this repo you can also find some code samples of custom visualizations.

    Regards,

    Ton

    ------------------------------
    Ton Steijvers
    ------------------------------



  • 9.  RE: 11.1.4 Custom Vis - cannot start

    Posted 11/19/19 10:11 AM
    Are the CA CLI tools in the SDK ? or is there a download link to get them 

    Andy

    ------------------------------
    andy ellis
    ------------------------------



  • 10.  RE: 11.1.4 Custom Vis - cannot start

    Posted 11/24/19 09:28 AM
    Hi Andy

    The Customvis CLI is part of the Cognos Analytics installation... if you have installed R4:
    https://YOURSERVER/bi/js/dashboard-analytics/lib/@waca/vida/sdk/customvis.tgz

    Torben

    ------------------------------
    Torben Noer
    ------------------------------