Update LS Insight from v. 2021.1 to v. 2021.2
In version 2021.2 the Generate LS Insight Query Base pipeline script and the stored procedures that load data into the fact tables were updated.
If you have set up version 2021.1 of LS Insight, you can apply these changes by downloading the update package and running the script against your current LS Insight instance.
Note: The Azure Data Factory containing the ETL process pipelines will be replaced and some of the stored procedures in the DW database will be updated, so if you have made any customizations to the pipelines or stored procedures in the DW database, you should make sure that you have information about all those changes since they will be overwritten.
If you have a large number of customizations we recommend setting up a new LS Insight instance, with new DW and ADF, beside the older instance of LS Insight and move your customizations between them before you start using the new instance.
Download update
You can download the update package from our Azure storage.
Preparation
Before you run the Update script you need to disable the Scheduled Run trigger in the LS Insight instance you want to update. If you view the instruction on how to activate the trigger, you can follow those, but this time you set Activated to No and then apply and publish the changes.
Update LS Insight
- Open the update package folder you just downloaded, in VS Code.
- To open the whole folder in VS Code, you open it in File Explorer and then right-click in a whitespace, not a file, and select Open with Code.
- Open the UpdateLSInsight.ps1 script in VS Code, and run by clicking F5.
- The script will first ask if you have access to the file path to the parameter file (Parameters.json) that is located in the LS Insight project folder that was created when LS Insight was deployed (YYYYMMDDHHMM-MyProject).
- If you still have access to the project folder, you can reuse the parameters by answering Yesand providing the full path to the Parameters.json file.
- If the project folder has been removed or deleted, you just answer No and enter the parameters when prompted.Note: You need to use the same parameters you supplied when you installed LS Insight. You can find the connection parameters and the names of your current SQL server, databas,e and Azure data factory in the Azure portal.
- The script then prompts for Azure subscription ID and login to Azure.
- Next, the script collects the parameters that have not been set and validates connection parameters to LS Central and LS Insight.
- The script now runs the updates.
- This update applies all changes described in the Data Warehouse section of the release notes to the existing LS Insight data warehouse and pipelines.
- Also included in the update package is a new Sales report. The same applies to the sales report as to other changes: if you have made customizations to the Sales report you were using previously, you might just want to apply the changes listed in the release notes directly to your previous report, instead of connecting the new one to LS Insight.
- When the script has finished running it displays a message.
Post update
When the script is done, you need to go back to the Azure portal and start the Scheduled run trigger again and verify that it is still set to the time and timezone you want.
Note: Remember to publish after you have reactivated the trigger.