# Multiple feeders in  one request.

**URL:** <https://community.gatling.io/t/multiple-feeders-in-one-request/5640>\
**Category:** Gatling (Open-Source)\
**Created:** [May 28, 2020, 2:08pm UTC](https://community.gatling.io/t/multiple-feeders-in-one-request/5640 "2020-05-28T14:08:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![C\_E](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@C\_E](https://community.gatling.io/u/C_E)\
**Post date:** [May 28, 2020, 2:08pm UTC](https://community.gatling.io/t/multiple-feeders-in-one-request/5640/1 "2020-05-28T14:08:43Z")

</div>

Hello, I’m afraid this is an ago old questions I haven’t found an answer to.

I have two feeder. One contains 10K strings of data the other contains 150 strings.  
I need both of them in a Json request I’m sending into my endpoint under test.

I can combine the two value into a single feeder file but as you can see the two feeders don’t match as far and numbers so a combination of the two would be a pain.

From what I’m finding chainBuilder will only run one feeder. If I add the second feeder chainBuilder doesn’t like it. I’m sure others have run across this. is there a different syntax or approtch I should take?

Thanks in advance.

works fine

```auto
def getAppointmentSessions = feed(peopleFeeder)
  .exec(session => session.set("startDate", (LocalDateTime.now().atZone(ZoneOffset.ofHours(-7)).plusDays(daysPlus).toInstant().toEpochMilli())))
  .exec(session => session.set("endDate", (LocalDateTime.now().atZone(ZoneOffset.ofHours(-7)).plusDays(daysPlus + 1).toInstant().toEpochMilli())))
  .exec(session => session.set("appointmentTypes",ordTypes(randType)))
  .exec( http("Schedule Session Search By local (ScheduleSearchByTemple)")
    .post(app_url_test + "/api/v1/local/appointmentlocal/sessions/search")
    .body(ElFileBody("ScheduleSearchBylocal.json")).asJson 
    .basicAuth(devTestUser, devTestPassword)

```

```auto

```

```auto
chainbuilder doesn't like the syntaxt with 2 feeders 

```

```auto

```

---

<div class="post-metadata">

**Author:** ![ramanbatra](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@ramanbatra](https://community.gatling.io/u/ramanbatra)\
**Post date:** [May 28, 2020, 5:34pm UTC](https://community.gatling.io/t/multiple-feeders-in-one-request/5640/2 "2020-05-28T17:34:47Z")

</div>

Try with adding dot (.) before second feeder. E.g.  
feed(peopleFeeder)  
.feed(local feeder)  
.exec(…)

---

<div class="post-metadata">

**Author:** ![C\_E](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@C\_E](https://community.gatling.io/u/C_E)\
**Post date:** [May 29, 2020, 5:06am UTC](https://community.gatling.io/t/multiple-feeders-in-one-request/5640/3 "2020-05-29T05:06:12Z")

</div>

Perfect. Thank you.
