Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Garbage after statement error

I am trying to load this table, but I am getting Garbage after statement error, why it is coming, how to avoid it? Can some one please help me...

Capture.JPG

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Your Excel sheet name contains an apostrophe, I suspect this is a problem.  Try to rename it to something like Detail_YTD_14.

View solution in original post

8 Replies
Anonymous
Not applicable
Author

Your Excel sheet name contains an apostrophe, I suspect this is a problem.  Try to rename it to something like Detail_YTD_14.

Not applicable
Author

Thanks Michael,

you are right

Anil_Babu_Samineni

Do you got Answer, If so close this thread by flag correct answer.

Still you don't want to change the Sheet name then you can use something like below. It should work even if you have 'Single Quote on your sheet name'

SET Var = "Detail_YTD'14";

LOAD A,

    B

FROM

(ooxml, embedded labels, table is '$(Var)');

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
shraddha_23
Partner - Creator
Partner - Creator

Hello,

you don't want to change the Sheet name then you can use something like as below

put square bracket i.e [Detail_YTD'14]


for e.g:

Load

[Total BMM],

    [Onsite Revenue],

    [Pr Adj],

    Reim,

    [Pass Thru],

    [Total Revenue],

    [Old vertical],

    F24

FROM

(ooxml, embedded labels, table is [Detail_YTD'14]);


priyasawant
Creator II
Creator II

After loading the excel the sheet name consist of square brackets.. if they don't have then you write the sheet name in square brackets.

Please find the below image..

Detauk.PNG

Not applicable
Author

Thanks to all.

I got it

Anil_Babu_Samineni

Then do your job by using below link

Qlik Community Tip: Marking Replies as Correct or Helpful

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Thankyou very much Anil.

Your guidance is so appreciative.

I am new to Qlik Community. I have many questions.

Hope to see you again