# Error message when mapping result from web request

**URL:** <https://community.appfarm.io/t/error-message-when-mapping-result-from-web-request/303>\
**Category:** Ask the community\
**Tags:** web-request\
**Created:** [February 27, 2023, 10:29am UTC](https://community.appfarm.io/t/error-message-when-mapping-result-from-web-request/303 "2023-02-27T10:29:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgjeilo](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@sgjeilo](https://community.appfarm.io/u/sgjeilo)\
**Post date:** [February 27, 2023, 10:29am UTC](https://community.appfarm.io/t/error-message-when-mapping-result-from-web-request/303/1 "2023-02-27T10:29:47Z")

</div>

Hi,

I have created a web request to an external datasource. When running the web request without result mapping I am receiving the response:

> {  
> “requestConfig”: {  
> “url”: “####”,  
> “headers”: {  
> “server”: “####”,  
> “database”: “####”,  
> “subscription-key”: “####”,  
> “Authorization”: “####”,  
> }  
> },  
> “responseData”: {  
> “status”: 200,  
> “statusText”: “OK”,  
> “rawData”: [  
> {  
> “prosjekt\_tx”: “Lorem ipsum”,  
> “prosjekt\_fx”: “12345”,  
> “id”: 15  
> },  
> {  
> “prosjekt\_tx”: “Lorem ipsum 2”,  
> “prosjekt\_fx”: “6789”,  
> “id”: 16  
> }  
> ]  
> }  
> }

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/5ef16361f4d53626b02c158961ef167f943bfde0.png)

I then tried to map the result to a object class:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/cfdb299c2f7f106fb33e2df7bdde956a891da3e8.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/d211dba6efc039a89380c397080e619621cc83dc.png)

But then I am getting the error message “non-integer path for Array”:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/e3da0cb2893e686ec6f7483ee3706c400aab63bb.png)

I have tried quite a few possibilities, but not able to return the right mapping.

Anyone have seed this before and can guide me in the right diretion?

–  
Sondre

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [February 27, 2023, 11:03am UTC](https://community.appfarm.io/t/error-message-when-mapping-result-from-web-request/303/2 "2023-02-27T11:03:33Z")

</div>

Hi!

Could you try without the “rawData” root path? i.e. leave the root path blank. I believe the log you see in the debug info has a bit more (the debug info, containing the configuration of the web request and more, is a JSON as well). The actual response is actually only what your see _inside_ the `rawData`. In other words, I believe the JSON you receive is  
[  
{  
“prosjekt\_tx”: “…”,  
…  
},  
…  
]

---

<div class="post-metadata">

**Author:** ![sgjeilo](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@sgjeilo](https://community.appfarm.io/u/sgjeilo)\
**Post date:** [February 28, 2023, 9:11am UTC](https://community.appfarm.io/t/error-message-when-mapping-result-from-web-request/303/3 "2023-02-28T09:11:44Z")

</div>

Thanks for the clarification, Kristian. It worked!
