Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load table based on parameter not working...

Hello,

I would like to load a table based on parameters.
In a next step  i like to automate the load proces for more tables.

After reloading this script i only get to see: "<?xml version="1.0" encoding="UTF-8" standalone="yes"?>"

Can anyone please help me with this? What did i do wrong?

Rob.

===================================================================

SET ThousandSep='.';
SET DecimalSep=',';

SET MoneyThousandSep='.';
SET MoneyDecimalSep=',';
SET MoneyFormat='€ #.##0,00;€ -#.##0,00';
SET TimeFormat='h:mm:ss';
SET DateFormat='D-M-YYYY';
SET TimestampFormat='D-M-YYYY h:mm:ss[.fff]';
SET MonthNames='jan;feb;mrt;apr;mei;jun;jul;aug;sep;okt;nov;dec';
SET DayNames='ma;di;wo;do;vr;za;zo';

// Fill in table name:
SET vFileNameVal              ='NAV_Customers';
// Automated additions:
SET vDQ_PathSource         ='\\QV-01\Development\Data\2_Stage_QVDs\';
SET vDQ_FileNameVal       ='DQ_$(vFileNameVal)';
SET vFileFormat                  ='.qvd';
SET vDQ_FileNameSource ='$(vDQ_PathSource)$(vDQ_FileNameVal)$(vFileFormat)';

Extract:
LOAD *
FROM $(vDQ_FileNameSource);
//FROM [\\QV-01\Development\Data\2_Stage_QVDs\DQ_NAV_Customers.qvd] (qvd);

====================================================================

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

// Fill in table name:
SET vFileNameVal              ='NAV_Customers';
// Automated additions:
SET vDQ_PathSource         ='\\QV-01\Development\Data\2_Stage_QVDs\';
SET vDQ_FileNameVal       ='DQ_$(vFileNameVal)';
SET vFileFormat                  ='.qvd';

SET vFileType     = '(qvd)';
SET vDQ_FileNameSource ='$(vDQ_PathSource)$(vDQ_FileNameVal)$(vFileFormat)$(vFileType)';

Extract:
LOAD *
FROM $(vDQ_FileNameSource);

Regards,

Jagan.

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You appear to have commented out the (qvd) type qualifier, so it is trying to load as a text file. Just move the (qvd) to before the ; closing the load statement.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

// Fill in table name:
SET vFileNameVal              ='NAV_Customers';
// Automated additions:
SET vDQ_PathSource         ='\\QV-01\Development\Data\2_Stage_QVDs\';
SET vDQ_FileNameVal       ='DQ_$(vFileNameVal)';
SET vFileFormat                  ='.qvd';

SET vFileType     = '(qvd)';
SET vDQ_FileNameSource ='$(vDQ_PathSource)$(vDQ_FileNameVal)$(vFileFormat)$(vFileType)';

Extract:
LOAD *
FROM $(vDQ_FileNameSource);

Regards,

Jagan.

Not applicable
Author

Thanks very much Jagan, that was the solution!

I just overlooked that (qvd) qualifier.

Rob.