Jun 23 2023 08:55 AM
I have two sets of two lists set up. They are identical in everyway (the second set were actually generated from the first set).
1st Set
SOURCE List Source1List ALL relevant columns in it are Single line Text columns.
TARGET list Target1List has one lookup column with 3 other columns form SOURCE List selected to show.
All columns display values as expected, with the 3 columns picking up the values from the Source list as expected.
2nd Set
SOURCE List Source2List ALL relevant columns in it are Single line Text columns.
TARGET list Target2List has one lookup column with 3 other columns form SOURCE List selected to show.
None of the displayed values in the 3 source columns show values.
I have checked the setting in all lists regarding the Lookup columns and checked all columns being referenced are single line text only.
I am at a loss to know why one set is not working correctly. Can anyone shed any light?
For reference I show the two Target list outputs below.
TargetList1 - Output
TargetList2 - Output
This has been driving me nuts for a couple of hours. What is going on here?
Anyone help?
Thanks,
c.
Jun 23 2023 09:37 AM
Hi @chris_chad,
what mechanism did you use exactly to copy the lists and how did you "re-map" the lookup column from Source1List to Source2List (if this was needed) ?
Did you just create a new list and did you then select "From existing list", or did you use something like a provisioning template?
What happens if you re-create the lookup column on the "Target2List"? Does that work?
Sometimes you can end up with a lookup column that points to a list or a field that does not exist (Or to a field that has the same name, but a different id).
You can check the field definitions of the lookup fields if you go to the url
https://<yourtenant>.sharepoint.com/sites/<YourSite>/_api/web/lists/getbyTitle('<List Title>')/fields?$filter=Title eq '<FieldName>'
You get the definition for the "LookupField" (the field in the lookup list to display in the dropdown), the "LookupList" (The internal ID of that list) and the "DependentLookupInternalNames" (The other fields you want to display from the lookup list).
I suspect that the names of the fields in the DependentLookupInternalNames are the same on both lookup fields, but the internal names of these fields differ in your Source1List and Source2List. So the second lookup tries to display fields that do not exist on the second source list.
Best Regards,
Sven
Jun 23 2023 10:42 PM