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

Field not found ......

Good Afternoon Fellows:

Im doing the example of a tutorial and i have this code:

OrdersByYear_Source:
Load
CustomerID,
OrderID,
Year


RESIDENT
Orders
WHERE
Year = 2003 OR Year =2004;

LEFT JOIN (OrdersByYear_Source) LOAD
OrderID,
NetSales
RESIDENT
Order_Details;


OrdersByYear:
Load
CustomerID,
Year,
sum(NetSales) as NetSalesByYear
RESIDENT
OrdersByYear_Source
GROUP BY
CustomerID , Year;

And there is a error, FILE NOT FOUND, does anybody knows why???

3 Replies
tabletuner
Creator III
Creator III

Is this all the code you have? Then I would expect a 'table not found' error because the tables 'Orders' and 'Order_Details' have to be loaded already in memory if you use the resident statement here.

biester
Specialist
Specialist

Community would be able to help better and faster if the issues would be posted more carefully. Headline of this post is "Field not found", in the post it says "File not found", and as Tjeerd (and the posted code) suggest it's most likely that the error is "Table not found"..

Wonder what the error really is...

Rgds,
Joachim

Not applicable
Author

I will try to explain myself better:

I have this on one tab of the script:


Orders:
buffer (stale after 7 days)
Load
CustomerID,
EmployeeID,
EmployeeID as EmployeeSales,
Freight,
OrderDate,
OrderDate as CountOrderDate,
Year(OrderDate) as Year,
Month(OrderDate) as Month,
date(monthstart(OrderDate),'MMM-YYYY') as [Rolling Month],
applymap('Quarters_Map',num(Month(OrderDate))) as Quarter,
Day(OrderDate) as Day,
OrderID,
ShipperID;
SQL SELECT * FROM PRProdBD.dbo.Orders;

Order_Details:
buffer (stale after 7 days)
SQL SELECT Discount,
OrderID,
ProductID,
ProductID as CuentaIDProducto,
Quantity,
UnitPrice,
UnitPrice*Quantity*(1-Discount) as NetSales
FROM PRProdBD.dbo."Order Details";

And in the other tab i have the code below:

OrdersByYear_Source:
Load
CustomerID,
OrderID,
Year
RESIDENT
Orders
WHERE
Year = 2003 OR Year =2004; /* only load 2 years */
LEFT JOIN (OrdersByYear_Source) LOAD
OrderID,
NetSales
RESIDENT
Order_Details;
OrdersByYear:
Load
CustomerID,
Year,
sum(NetSales) as NetSalesByYear
RESIDENT
OrdersByYear_Source
GROUP BY
CustomerID , Year;