Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

LCGV function not working

Hello

I'm using the version 1.7.1 of the QDF

I'm trying to link / mount containers

in my script I put the following code:

/*

QDF initiation script

*/

set vG.BasePath=; //Clrear cache

set vG.SharedBasePath=; //Clrear cache

SET vG.RootContainer='lib://QDF_ROOT/';

SET vG.HomeContainer='lib://QDF_ROOT/3.Customer_Case_Analysis/';

$(Include=lib://QDF_ROOT/InitLink.qvs);

/*****************************************************************/

/*

we need to read QVD files from the QVD Generator resource

and mainly from the Transform folder of the QVDs

*/

call LCGV('QVDGEN','QVD');

/*****************************************************************/?

However I get the following warning: (check attached image)

kindly advise as I'm stuck and don't know a work around this issue

Ali M. Hijazi - BI Solution Architect

ali.hijazi@setelia.com<mailto:Jean.Aboujaoude@setelia.com>

Mobile : +961 03 197337- Tel: +33 (0)1 55 43 26 01 - 961 (5) 955 417- Fax: + 33 (0)1 55 43 26 10

This message and any attachments are confidential. If you are not the intended recipient or his authorized agent, please be advised that copying, distributing or revealing the contents of this message is expressly prohibited. If you are not the intended recipient, kindly notify the sender immediately by return e-mail and delete this message from your system.

I can walk on water when it freezes
40 Replies
msvanfeldt
Partner - Contributor II
Partner - Contributor II

Depending on how you want to setup your data connections, you should initialize the QDF in different ways.

Here is some code that shows 3 different ways depending on if you use a single LIB for all containers or if you use a separate LIB for each container. Alt 1 and Alt 2 treats the Shared container in different ways.

// =================================================

// InitLink.qvs Initiating Qlik Deployment Framework

// =================================================

// Clear cache in QDF - makes the code reload variables

SET vG.BasePath=;

SET vG.SharedBasePath=;

/***** Alternative 1 *****/

/* Use Single LIB - One data source LIB for all containers pointing on the Root above containers */

/* Shared Container works without it's own LIB if Prefix in deploytool is Shared */

SET vG.RootContainer='QDF_ROOT'; // Data source LIB Name

SET vG.HomeContainer='3.Customer_Case_Analysis'; // Folder name in file structure

$(Must_Include=lib://$(vG.RootContainer)/$(vG.HomeContainer)/InitLink.qvs);

/*************************/

/***** Alternative 2 *****/

/* Use Single LIB but QDF treats it like Separate LIB - One data source LIB for all containers pointing on the Root above containers */

/* Shared LIB data source must be called 'Shared' to be able to work */

// SET vG.RootContainer='QDF_ROOT'; // Data source LIB Name

// SET vG.HomeContainer='$(vG.RootContainer)/3.Customer_Case_Analysis'; // Folder name in file structure

// $(Must_Include=lib://$(vG.HomeContainer)/InitLink.qvs);

/*************************/

/***** Alternative 3 *****/

/* Separate LIB - One data source LIB per container */

/* Shared LIB data source must be called 'Shared' to be able to work */

// SET vG.HomeContainer='QDF_CCA'; // Prefix name in deploytool and data source LIB name

// $(Must_Include=lib://$(vG.HomeContainer)/InitLink.qvs);

/*************************/

// Add other containers using prefix name in deploytool

CALL LCGV('QDF_QVDGEN','QVD');