# Deeply error message while running script through .csv file

**URL:** <https://community.postman.com/t/deeply-error-message-while-running-script-through-csv-file/15809>\
**Category:** Help Hub\
**Created:** [September 12, 2020, 11:56am UTC](https://community.postman.com/t/deeply-error-message-while-running-script-through-csv-file/15809 "2020-09-12T11:56:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aakashjain8693](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@aakashjain8693](https://community.postman.com/u/aakashjain8693)\
**Post date:** [September 12, 2020, 11:56am UTC](https://community.postman.com/t/deeply-error-message-while-running-script-through-csv-file/15809/1 "2020-09-12T11:56:59Z")

</div>

Steps to reproduce:

1. API Response file-  
“rewards”: {{  
“balance”: “6.66”,  
“currencyCode”: “USD”  
}},

2. Postman script  
pm.test(“data verification”, function () {  
let jsonData = pm.response.json();  
pm.expect(jsonData.rewards.balance).to.eql(data.rewardsbalance);  
});

3. .csv file  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/d/a/dad9215857e2d31b9f796930b31a5f50987c1aaa.png)

4. Running script through collection ,getting below error messgae  

Solution-If I change script as “pm.expect(jsonData.rewards.balance).to.include(data.rewardsbalance);” its working perfectly.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/7/2/72a19cdbdd0757d5961209c24462099af573eb75.png)

Apart from this any other solution?

Thanks!!!

---

<div class="post-metadata">

**Author:** ![singhsivcan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/singhsivcan/32/1595_2.png) [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Post date:** [September 14, 2020, 6:34am UTC](https://community.postman.com/t/deeply-error-message-while-running-script-through-csv-file/15809/2 "2020-09-14T06:34:27Z")

</div>

@aakashjain8693 I am guessing (_don’t know what the response body looks like_) that you’re doing a string check to be deeply equal to a floating-point number.

This screenshot has some pointers to verify your test with (you can use parseFloat on your response, which probably seems to be a string):

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/d/3da163c5316f95dcc294e7cd023036bc5dd19ca3.png)

---

<div class="post-metadata">

**Author:** ![aakashjain8693](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@aakashjain8693](https://community.postman.com/u/aakashjain8693)\
**Post date:** [September 14, 2020, 11:58am UTC](https://community.postman.com/t/deeply-error-message-while-running-script-through-csv-file/15809/3 "2020-09-14T11:58:11Z")

</div>

Thanks!! @singhsivcan

Looks like you added foo value in Params as 6.66 which is hard coded. I am getting the data from .csv file, Any other solution?
