You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: \n
FX5__Role_on_Job__c,FX5__Role_on_Job__r.Id,Pay_Rate__c FROM FX5__Crew_Planning__c\n ^\n
ERROR at Row:1:Column:651\n
duplicate field selected: Pay_Rate__c\n
The issue is caused by a search layout for CrewPlanning that contains a picklist field.
The fields required for lookup data is determined by creating a unique set of field names between the metadata and columns specified in the search layout. Picklist fields in a search layout are wrapped in toLabel() which does not match the unwrapped field name in the object metadata, resulting in a duplicate field in the query EXAMPLE: Pay_Rate__c and toLabel(Pay_Rate__c)
Solution is to unwrap search layout fields so we don't get duplicates.
Related Cards
Test Plan
We need to add a test scenario (or configure one of the test orgs) to include custom picklist fields in a search layout for one of the lookups.
The text was updated successfully, but these errors were encountered:
Mingle Card: 2663
Steps to reproduce
Expected result
It works
Actual Result
Error: \n
FX5__Role_on_Job__c,FX5__Role_on_Job__r.Id,Pay_Rate__c FROM FX5__Crew_Planning__c\n ^\n
ERROR at Row:1:Column:651\n
duplicate field selected: Pay_Rate__c\n
The issue is caused by a search layout for CrewPlanning that contains a picklist field.
The fields required for lookup data is determined by creating a unique set of field names between the metadata and columns specified in the search layout. Picklist fields in a search layout are wrapped in toLabel() which does not match the unwrapped field name in the object metadata, resulting in a duplicate field in the query EXAMPLE: Pay_Rate__c and toLabel(Pay_Rate__c)
Solution is to unwrap search layout fields so we don't get duplicates.
Related Cards
Test Plan
We need to add a test scenario (or configure one of the test orgs) to include custom picklist fields in a search layout for one of the lookups.
The text was updated successfully, but these errors were encountered: