Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am attempting to perform an inner join of two .csv files via the script editor. The file sizes at 19.5MB and 125KB, respectively.
I am able to successfully load both of these tables separately (but within the same load script), I receive confirmation of the load, and they both appear in the data model viewer.
However, when attempting to run an Inner Join, I receive the following abort message upon load failure:
It looks like you have no common field names in the two tables. In Qlik Sense the joins are based on common field names of the two tables.
Your join without common field names will create the cartesian product of the two, leaving you with over 87 million rows.
Can you share your script, how you are performing join?
Hi Anat, below is the script I am using. Both the generic INNER JOIN and specified INNER JOIN(WebSales) caused the same problem.
Thanks
WebSales:
LOAD
DateKey,
ProductKey,
CustomerKey,
PromotionKey,
CurrencyKey,
SaleTypeKey,
OrderDate,
DueDate,
ShipDate,
SalesOrderNumber,
SalesOrderLineNumber,
RevisionNumber,
OrderQuantity,
UnitPrice,
UnitPriceDiscountPct,
ProductStandardCost,
TotalProductCost,
SalesAmount,
TaxAmt,
Freight,
ExtendedAmount
FROM [lib://DataFiles/eCommerce_ODS.WebSales.csv]
(txt, codepage is 28591, embedded labels, delimiter is ',', msq);
Product:
// Inner Join (WebSales)
// INNER JOIN
LOAD
SKU,
ProductSubcategoryKey,
ProductName,
StandardCost,
FinishedGoodsFlag,
"Color",
ReorderPoint,
ListPrice,
DaysToManufacture,
ProductLine,
DealerPrice,
Manufacturer,
Description,
Status,
SupplierKey
FROM [lib://DataFiles/Product.csv]
(txt, utf8, embedded labels, delimiter is ',', msq);
exit script;
It looks like you have no common field names in the two tables. In Qlik Sense the joins are based on common field names of the two tables.
Your join without common field names will create the cartesian product of the two, leaving you with over 87 million rows.
Thanks, Vegar. Indeed I needed to edit the script to
SKU as ProductKey