====== Migrate Need4Viz infrastructure during a SAPBI migration (ex. 4.2 to 4.3) - ON A NEW SERVER ====== Source : [[https://support.need4viz.com/kb/faq.php?id=38|Support Need4Viz — KB #38]] — Category : 7. SAPBI Migration (4.2 to 4.3) ==== Symptom ==== * A new SAPBI environnement (4.3) will be installed on a NEW SERVER and data will be migrated with live to live mode (from 4.2 to 4.3) * Need4Viz is already installed and configured on the initial SAPBI server ( **SOURCE** ) * Need4Viz is not installed on the new target SAPBI server ( **TARGET** ) ==== Environment ==== * %%Windows/Unix Server%% * Need4Viz : all versions ==== Resolution ==== - Download the N4V 2021.12.4 **Patch** setup in your Support Download Center and install it on the **SOURCE** environement - After the Need4Viz upgrade, check everything is OK in existing Webi reports including N4V components in the 4.2 environnement - Install the 4.3 SAPBI environnement on the **TARGET** server. Install Need4Viz in the exact same directory as on the **SOURCE** system. - Download the N4V 2021.12.4 **Full** setup in your Support Download Center and install it on the **TARGET** environement. Do not perform the creation of Need4viz service at this step. Do not start Need4Viz. - Copy the full content of the **%%/tomcat/webapp/N4VCustomElements%%** folder from the **SOURCE** environnement and paste it in the **%%/tomcat/webapp/N4VCustomElements%%** folder of the **TARGET** environnement. This action will transfer all your cutom maps and files from 4.2 to 4.3 system. - Copy the full content of the **%%~Need4Viz/node/nodejs/node_modules/custom_element/ce_libs, ce_settings & ce_icons%%** folders from the **SOURCE** %%environnement and paste it in the ~%% **%%Need4Viz/node/nodejs/node_modules/custom_element/%%** folder of the **TARGET** environnement. This action will tranfer all custom files (config, palettes, list maps,...) from 4.2 to 4.3 system. - Edit the **%%~Need4Viz/node/nodejs/node_modules/custom_element/ce_libs%%** **%%/config.js%%** file on the **TARGET** system and check the following parameters : - **//URLNodeJSServer//** : update this setting with the SAPBI 4.3 Tomcat URL - **//PORTTomcat//** : update this setting with the SAPBI 4.3 Tomcat port - **//LocalCEPath//** : if Need4Viz has been installed in a different path location as SOURCE system, update this setting with the correct path - **//LogUsageFile//** : if Need4Viz has been installed in a different path location as SOURCE system, update this setting with the correct path - **//%%SAPBI_ver%%//** : For a SAPBI 4.3, fill with value **43** - Create the Need4Viz service (with the **%%~%%** **%%Need4Viz/scripts/Create_Need4Viz_Service.ps1%%** script). - Open a PowerShell window and run "pm2 list" to check all N4V services are up and running : %%[image: image]%% \\ - Open the **%%CMC / Applications / Web Intelligence / Custom Elements%%** in the **TARGET** system and recreate all N4V services with exactly the same names as in the **SOURCE** system (be careful to previously whitelist the URLs if necessary) : %%[image: image]%% - Once the services are configured in the CMC, you could open a Webi report imported form SAPBI 4.2 system and including existing N4V charts and chek it is correctly displayed.