# Data from mapping for parameter "Test" did not pass validation

**URL:** <https://forum.inductiveautomation.com/t/data-from-mapping-for-parameter-test-did-not-pass-validation/39167>\
**Category:** Ignition\
**Created:** [September 29, 2020, 6:40am UTC](https://forum.inductiveautomation.com/t/data-from-mapping-for-parameter-test-did-not-pass-validation/39167 "2020-09-29T06:40:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![meghnajose7](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@meghnajose7](https://forum.inductiveautomation.com/u/meghnajose7)\
**Post date:** [September 29, 2020, 6:40am UTC](https://forum.inductiveautomation.com/t/data-from-mapping-for-parameter-test-did-not-pass-validation/39167/1 "2020-09-29T06:40:06Z")

</div>

Hi, I’m trying to learn how to get data from RESTful endpoint using the Bussiness connector and Web services module. So the endpoint used is [https://reqres.in/api/unknown](https://reqres.in/api/unknown) and I have also created a chart in the Bussiness connector. In windows, I have created a button component and written a script so that the chart executes and data from the endpoint is displayed on the table.  
The Problem faced is, while running the button “Data from mapping for parameter “Test” did not pass validation” error is found. Please help me to solve this.  
Here is my Script:

chartPath = ‘Personnel-RESTful’  
numPerPage = event.source.parent.getComponent(‘Records\_Per\_Page’).data  
inputChartParams = numPerPage  
complex\_param = system.mes.bc.executeChartSynchronous(chartPath,inputChartParams,‘Test’)  
mat = complex\_param[‘Test’][‘TestRoot’]  
if len(mat) \> 0:  
records = mat[‘MyPeople’]  
header = records[0].keys()  
rows = []  
for i in records:  
rows.append(i.values())  
else:  
header = [‘NO RECORDS’]  
rows =[]

DataToTable = system.dataset.toDataSet(header,rows)  
event.source.parent.getComponent(‘Table’).data = DataToTable
