I have 2 related excel tables, originally came from SQL:
tbl Program - "Dimension" - with unique records (WHID = primary key)

tbl Attendance -"Fact" - with duplicate records (ProgramWHID = foreign key)

I need to import them into Dataverse and then - to create PowerApp canvas (or any type) Form, based on tbl Attendance.
So, that the [ProgramName] Attendance field would be a drop-down type, taking data from [ProgramName] Program.
And that [ProgramWHID] Attendance value would be automatically populating from [WHID] Program,
after user changes / creates record.
For that my actions were:
1. Created tbl Program, as
WHID = Primary Name Column (Text);
ProgramName = Text
I really need WHID as "Whole Number", but the choices there "AutoNumber" or "Text" only.
2. Created tbl Attendance, as:
AttendID = Primary Name Column (AutoNumber)
Date = Date Only
ProgramName = Lookup (Related table = Program)
ProgramWHID = Lookup (Related table = Program)
3. Imported tbl Program from excel, mapped fields to create tbl Program in Dataverse
This table imported with no problems.
4. Tried to import tbl Attendance from excel, tried to map fields to create tbl Attendance in Dataverse
Here is the main problem:
After I mapped all custom fields including ProgramName and ProgramWHID -> to my excel fields from pic above
- receiving "Import Failed" error: "Couldn't resolve the guid for the lookup field: cr118_programname"
Please, help!
Did I make my relations or fields wrong types? Should I use different approach when importing from excel?
I am new to this system. Any ideas or info - strongly appreciated.