Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi experts,
I have this below situation where when reloading works but on partial reload i get table not found error.
Please help me out resolve this.
Code:
PTable:
Load Name as pName,
Age as pAge,
City as pCity
From emp.qvd;
Test:
Add Load * inline
[Test,
1];
if isPartialReload()=-1 then
sPTable:
Load Name as pName,
Age as pAge,
City as pCity
From emp.qvd;
PTable:
Load pName,
pAge,
pCity
Resident sPTable
where not esits(pName);
Drop table sPTable;
end if
Autoconcatenation add noconcatenate
sPTable:
noconcatenate
Load Name as pName,
Age as pAge,
City as pCity,
From emp.qvd;
Try with this some comma mistake
Code:
PTable:
Load Name as pName,
Age as pAge,
City as pCity
From emp.qvd;
Test:
Add Load * inline
[Test
1];
if isPartialReload()=-1 then
sPTable:
Load Name as pName,
Age as pAge,
City as pCity,
From emp.qvd;
PTable:
Load pName,
pAge,
pCity
Resident sPTable
where not esits(pName);
Drop table sPTable;
end if
The error is for table PTable in the ispartialreload section... Test table works good.
Update the query now check
Try with inplace of the below line of statement
where not esits(pName);
You can write
where not exists(pName);
Sorry it was a typo... in the code there are no such mistakes....
Hi Pramod,
in partial reload any LOAD statement needs a preceeding REPLACE od ADD command. If not stated the LOAD will be ignored.
- Ralf
Autoconcatenation add noconcatenate
sPTable:
noconcatenate
Load Name as pName,
Age as pAge,
City as pCity,
From emp.qvd;
i have added the ADD in the partial realod section but still the issue exists...
I don't understand your code at all. Think about not using if isPartialReload(). Just add REPLACE/ADD to all LOAD statements and it will work in normal and partial loads.