SearchKit/API4: 'getFieldValue failed' error for group contacts
Overview
SearchKit/API4 fails with 'getFieldValue failed'
Reproduction steps
- Create a new SearchKit search
- Set 'Search for' to 'Groups'
- Search and confirm groups are shown
- Add 'With (optional)' 'Group Contacts'
- Search and observe no results
- Open browser tools, search again, note '500': Request is: {"run":["SearchDisplay","run",{"return":"page:1","savedSearch":{"api_entity":"Group","displays":[],"groups":[],"tag_id":[],"api_params":{"version":4,"select":["id","title","description","is_active","Group_GroupContact_Contact_01.sort_name"],"orderBy":{},"where":[],"groupBy":[],"join":[["Contact+AS+Group_GroupContact_Contact_01","LEFT","GroupContact",["id","=","Group_GroupContact_Contact_01.group_id"]]],"having":[]},"label":"Group+Search+by+demo@example.com"},"sort":[],"limit":50,"seed":1706887602244,"filters":{},"afform":null,"debug":true}]}
Response is: { "run": { "error_code": 0, "error_message": "getFieldValue failed", "status": 500 } }
Environment information
- CiviCRM: Master
Comments
This is currently failing on dmaster but works correctly on 5.65.0
Might be wider issue, but noted on groups.