# Feed in Chain ?

**URL:** <https://community.gatling.io/t/feed-in-chain/725>\
**Category:** Gatling (Open-Source)\
**Created:** [December 13, 2013, 3:04pm UTC](https://community.gatling.io/t/feed-in-chain/725 "2013-12-13T15:04:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ak\_Ak](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Ak\_Ak](https://community.gatling.io/u/Ak_Ak)\
**Post date:** [December 13, 2013, 3:04pm UTC](https://community.gatling.io/t/feed-in-chain/725/1 "2013-12-13T15:04:20Z")

</div>

Hi,

Here is an extract of my scenario :

_val prodFeed = csv(“product-rct.csv”).random_

_val produit = feed(prodFeed).exec(http(“6\_Produit”)_  
_.get("""${urlpdt}"""))_  
_.pause(2)_

_val scn = scenario(“TaoHybrisOct2013”).exec(produit)_

_setUp(scn.inject(atOnce(10 users))).protocols(httpProtocol)_

Here is an extract of my csv :

codepdt;urlpdt  
1002;/toto.html  
1006;/tata.html  
1009;/titi.html  
1002;/tutu.html

[…]

When I execute this, I get that 10 times =\> 15:49:32.512 [ERROR] i.g.h.a.HttpRequestAction - No attribute named ‘urlpdt’ is defined  
I don’t understand what’s wrong ???  
(And I don’t want to execute my http requests directly in the scenario object, because I will do more complex stuff with multiples chains (or try to…))

Thanks !! Regards.

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [December 13, 2013, 3:11pm UTC](https://community.gatling.io/t/feed-in-chain/725/2 "2013-12-13T15:11:33Z")

</div>

crystal ball style: could you have a leading or trailing space character in your CSV file in the urlpdt column header?

---

<div class="post-metadata">

**Author:** ![Ak\_Ak](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Ak\_Ak](https://community.gatling.io/u/Ak_Ak)\
**Post date:** [December 13, 2013, 3:26pm UTC](https://community.gatling.io/t/feed-in-chain/725/3 "2013-12-13T15:26:53Z")

</div>

LOL @ crystal ball xD  
I tried something =\> similar request, with a csv with only one column, it works. Therefore, you are right, the csv must be the problem.  
There is no space or anything in the headers. If i’m deleting the first column (not used for the moment), it works…

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [December 13, 2013, 3:31pm UTC](https://community.gatling.io/t/feed-in-chain/725/4 "2013-12-13T15:31:26Z")

</div>

non ASCII chars/broken file somewhere maybe?

Could you try copying all the lines but the header one into a new file, then manually re-type the headers?

---

<div class="post-metadata">

**Author:** ![Ak\_Ak](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Ak\_Ak](https://community.gatling.io/u/Ak_Ak)\
**Post date:** [December 13, 2013, 7:00pm UTC](https://community.gatling.io/t/feed-in-chain/725/5 "2013-12-13T19:00:36Z")

</div>

After multiples tests, I found what’s wrong.  
“;” fails. “,” works…  
Bitch please !!! 🙂  
Case closed.

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [December 14, 2013, 6:20am UTC](https://community.gatling.io/t/feed-in-chain/725/6 "2013-12-14T06:20:50Z")

</div>

Ah ah ah!

Yes:

- csv = comma (,) separated values

- ssv = semicolon (😉 separated values  
Sorry for missing the obvious.
