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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Script loading failed

Hi All,

I have script like below

A:

LOAD *,

          if(Field='A',1,0) as Flag

FROM Table A;

B:

LOAD *,

           if(Field='A',1,0) as Flag

FROM Table B;

C:

LOAD *

Resident A

where Flag=1;

Concatenate

LOAD *

Resident B

where Flag=0;

drop tables A , B;

But it's giving table not found error.

1 Solution

Accepted Solutions
Kushal_Chawda

I think you are facing the autoconcatenate issue.  try like below

A:

LOAD *,

          if(Field='A',1,0) as Flag

FROM Table A;

B:

Noconcatenate

LOAD *,

           if(Field='A',1,0) as Flag

FROM Table B;

C:

Noconcatenate

LOAD *

Resident A

where Flag=1;

Concatenate

LOAD *

Resident B

where Flag=0;

drop tables A , B;

View solution in original post

5 Replies
Kushal_Chawda

I think you are facing the autoconcatenate issue.  try like below

A:

LOAD *,

          if(Field='A',1,0) as Flag

FROM Table A;

B:

Noconcatenate

LOAD *,

           if(Field='A',1,0) as Flag

FROM Table B;

C:

Noconcatenate

LOAD *

Resident A

where Flag=1;

Concatenate

LOAD *

Resident B

where Flag=0;

drop tables A , B;

Not applicable
Author

Is fields are same in both the tables then use noconcatenate

kkkumar82
Specialist III
Specialist III

Is there space between the names of the tables then they should be in [ ]. once check out.

Can you show the error you are getting as an image or attached qvw with the data sources you are using.

Chanty4u
MVP
MVP

try to No concatenate the tables.

Not applicable
Author

Hi qvlearn123

U can use a where statement in the load to only load the rows you want

A:

Load

  *

FROM

      Table A

Where

  Field = 'A';

B:

Load

  *

FROM

      Table B

Where

  Field <> 'A';

Table B will then concatenate into Table A