I have created a flow to carry out a search function but am getting a 502 error code server did not receive a response. I have been through the field names and everything seems to line up.
This is searching a sharepoint list to return items to a gallery

The flow is configured as follows:


The onselect property of the search button set as follows where NameSearch is the text box the user uses to search
ClearCollect(
colRotaResults,
ForAll(
Table(ParseJSON(SearchRotaList.Run(NameSearch.Value).searchresults)),
{
ID: Value(Value.ID),
EmployeeName: Text(Value.EmployeeName),
Position: Text(Value.Position)
}
)
)
I'm wondering if it's to do with naming configuration as my SP list has Employee Name with a space??