Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I can't figure out why I am getting an error message during the reload.
I have these two tables in my script.
Employees:
LOAD
Office&'-'&EmpID AS BudgetKey,
EmpID AS EmployeeID,
[First Name]&' '&[Last Name] AS Name,
Title,
[Hire Date],
Year([Hire Date]) AS HireYear,
Office,
Extension,
[Reports To],
[Year Salary]
FROM Datasources\Emp*.xls (biff, embedded labels, table is [Employee$]);
SalesPersons:
LOAD
EmployeeID,
Name as SalesPerson,
Title as SalesTitle
Resident Employees
Where Title like 'Sales*' or Title = 'President';
I am getting this error during the reload : Column not found <Name>
Sorry for misspelling word 'Resident' in the title; my bad.
Hi Shilpan,
Can you please specify the error.
Regards,
Tom
Hi Tom,
This is what I see:
Field not found - <Name>
SalesPersons:
LOAD
EmployeeID,
Name as SalesPerson,
Title as SalesTitle
Resident Employees
Where Exists(EmployeeSalesID, EmployeeID)
Hi Shilpan,
Try to reload it by removing the where condition.
Regards,
Tom
Hi,
Add one more field to the resident load.. like
SalesPersons:
LOAD
EmployeeID,
Name as SalesPerson,
Title as SalesTitle,
1 as junk
Resident Employees
Where Exists(EmployeeSalesID, EmployeeID);
later if you want you can drop the junk field..
Tom,
It didn't work after removing the where condition.
Hi,
If possible please frwd your application.
Regards,
Tom
I tried by adding
1 as junk. It didn't work. What is the logic behind adding this?
Tom,
If original table(Employees) has an alias(Name), can you use alias as the source column to refer to during the resident load?