Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Meet Qlik's New CEO. The Future Is Bright — Here's What to Expect
cancel
Showing results for 
Search instead for 
Did you mean: 
Kerbecs
Contributor II
Contributor II

Lineage of Applications which Generate QVDs

Hello. I apologize if my question is too simple but I am quite new to Qlik. I have been exploring Qlik APIs specifically the Engine API. The Engine Explorer is able to generate lineage for stream apps or client facing apps. However I can't find a way to generate lineage for apps which are making the QVDs. Is there any way to achieve this? I would like to get the data source details of the QVDs

Labels (3)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

There is a clever hack you can use to keep the lineage data from being dropped.

A DROP TABLE statement will remove <LineageInfo>  if there are no prior
<LineageInfo> elements in the stack.

In practical terms this means if you load a table at the top of your script that doesn't get dropped, you won't lose any lineage data from dropping subsequent tables. Put this at the top of every script:

LineageDummy:
Load 'dummy' AutoGenerate 0;

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

View solution in original post

6 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

The Apps that generate the QVDs will also provide lineage information from the Engine GetLineage method. One of the challenges here is that Lineage information is not present if the table is dropped in the scrip, which is common in QVD generator apps. e.g.

Tab1:
SQL Select * From ...;
Store Tab1 into ....;
Drop Table Tab1;  // No lineage data for Tab1

-Rob

 

Kerbecs
Contributor II
Contributor II
Author

I see. The problem I am facing is that reporting apps are showing up in the Engine Explorer but Apps which generate the QVDs are not there. Basically the output Applications are being displayed as options but not the intermediary apps which feed the output apps.

So if it the flow is like Data Source -> QVD App -> Report App then in the Explorer I can only see the Report Apps and that the data is stemming from the QVD but cant see the Data Source.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Could that just be a permission issue? Do you see the QVD generator apps in the hub? Is this Cloud or on-prem?

-Rob

Kerbecs
Contributor II
Contributor II
Author

I can't see the QVD generator apps in hub but I can see them on QMC. I can see only the streams and report apps on hub. This is on-prem I believe. Is this a permissions issue then? Once again apologies if my questions and replies seem quite simple and vague. Just a whole lot to take in for a beginner. 

Kerbecs
Contributor II
Contributor II
Author

Nevermind I got the extract app to show up in Engine Explorer but like you said as tables are being dropped, Lineage isn't being generated. Anyway to resolve that?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

There is a clever hack you can use to keep the lineage data from being dropped.

A DROP TABLE statement will remove <LineageInfo>  if there are no prior
<LineageInfo> elements in the stack.

In practical terms this means if you load a table at the top of your script that doesn't get dropped, you won't lose any lineage data from dropping subsequent tables. Put this at the top of every script:

LineageDummy:
Load 'dummy' AutoGenerate 0;

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com