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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
dmohanty
Partner - Specialist
Partner - Specialist

Why & When 'Garbage after statement' comes?

Error.JPG

I want to use like this above. Here I am getting a 'Garbage after statement' error. However if I am doing a Set errormode = 0, this is avoided and table loads fine.But I dont want to keep the rrormode = 0.

Coul you please suggest how to use this variables? Please test and let me know.

6 Replies
sushil353
Master II
Master II

try to make it in single quote.

'$(tableString)' & '$(concatenateSting)':

Not applicable

If that is exactly what you have in your load script, you are missing a semi-colon after the $(ConcatenateString) part.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this script

TempOrders:

LOAD

    'test' AS Category

AutoGenerate(0);

SET vConcatenate = 'Concatenate(TempOrders)';

SET vTableName = 'vTempOrders';

$(vConcatenate)

LOAD * INLINE [   

    Category

    Category1

    Category2

    Category3

    Category4

    Category5

    Category6

    Category7

    Category8

    Category9

    Category10

    Category11

];

I think there is no need to mention table name separately, it is mention in Concatenate().  So the variable tableString is not useful.

Regards,

Jagan.

dmohanty
Partner - Specialist
Partner - Specialist
Author

Unfortunately, putting a semicolon (;) or a colon (:) ,not working.

If Errormode = 0, then this is avoided and working. But I don't need to use that.

Any other solutions please?

dmohanty
Partner - Specialist
Partner - Specialist
Author

Error1.JPG

I have one more scenario like this. So I need a common solution for these 2 syntax error images.

Here also I am unable to fix the syntax issue. Any suggestions please????

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     First of all you dont require to give table alice name before concatenate statement so remove $(tableString):

     Secondly you need dont need to use the single quote when defining the variable with set statment.

     So your variable defination will be

     set _SupplierSelectionSql String = And SUPP_ID in (1);

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!