/
Longview Adapter - Source Metadata and Data Extraction

Longview Adapter - Source Metadata and Data Extraction

This page provides information on:

  • Performing a full extraction (metadata +data)

  • Performing a metadata only extraction for a given source

  • Performing a data extraction for the given source and year/period/scenario slice

  • Running Longview Data and Metadata Extraction

 

Running extractions via Command Line Interface (CLI)

To perform a full extraction (metadata + data) for the given source and year/scenario slice:

The command removes all existing data and metadata from fact database and imports data only for the years and scenarios specified in the arguments.

Command

full-extract

Parameters

  • source: Name of source for which metadata should be extracted.

  • years: Years for which data extraction is executed.

  • scenarios: Scenarios for which data extraction is executed.

Example

.\CXO.Adapter.LongviewTidemark.Cli.exe full-extract source:longview-close years:17,18 scenarios:Actual

To perform a metadata extraction for the given source:

The command removes all existing metadata from fact database and re-imports it again.

Command

metadata-extract

Parameters

  • source: Name of source for which metadata should be extracted

Example

.\CXO.Adapter.LongviewTidemark.Cli.exe metadata-extract source:longview-close

To perform a data extraction for the given source and year/period/scenario slice:

The command removes all existing data from fact database and imports data only for the years, periods and scenarios specified in the arguments

Command

data-extract

Parameters

  • source: Name of source for which metadata should be extracted

  • years: Years for which data extraction is executed

  • periods: Periods for which data extraction is executed

  • scenarios: Scenarios for which data extraction is executed

  • view: Can either be Periodic or YTD (case sensitive)

Example

.\CXO.Adapter.LongviewTidemark.Cli.exe data-extract source:longview-close years:17,18 periods:Jan,Feb scenarios:Actual

  1. For the view parameter, if you specify it as Periodic, the application only extracts the periodic data else extracts YTD. This parameter is optional, if not specified both Periodic and YTD periods will be extracted.

Running Extractions via Windows Scheduler

Pre-requisite:

Initial Source Metadata and Data Extraction has been completed by Professional Services.

Configuring Data Loads

To reconfigure the dimension members for the data load, the related. Lvparam file needs to be edited. After saving the file (do not change the name of the file), windows scheduler will automatically use the updated configuration.

Parameter files (.lvparam files)

Each job comes with it’s own parameter file from which it reads parameter values and extracts metadata and data based on it. By default, there are three such files:

Script

Parameter file

Parameters

Script

Parameter file

Parameters

MetadataExtraction.ps1

MetadataExtractionParameters.lvparam

SOURCE_NAME

DataExtraction.ps1

DataExtractionParameters.lvparam

SOURCE_NAME, YEARS, SCENARIOS, PERIODS (optional)

FullExtraction.ps

FullExtractionParameters.lvparam

SOURCE_NAME, YEARS, SCENARIOS

Parameters:

  • SOURCE_NAME - Name of the source from which metadata or data is extracted

  • YEARS - One or more years that are comma separated and specify years for which data is extracted

  • SCENARIOS - One or more scenarios that are comma separated and specifies which scenarios are extracted

  • PERIODS - Only applicable for DataExtraction.ps1 script which specifies periods which want to be extracted for the years, can be Q1-Q1 or months from 1-12

To run a job, its parameter file needs to have the appropriate configuration using comma separated values.

Example with periods in the file:

If extraction isn’t needed to be executed with periods file can be edited like this:

Scheduled extraction

After completing the process above, scheduled jobs can be run automatically using Windows Scheduler. More information about this tool can be found here.

Manual extraction

Besides the scheduled runs, it is possible to run manual extractions. They can also be triggered in Windows Scheduler:

After selecting the desired job, you can ‘run’ the item in the right bottom panel of the screen.

Related pages