# Feeder is empty while running the Child Simulation

**URL:** <https://community.gatling.io/t/feeder-is-empty-while-running-the-child-simulation/6370>\
**Category:** Gatling (Open-Source)\
**Created:** [December 29, 2021, 7:35pm UTC](https://community.gatling.io/t/feeder-is-empty-while-running-the-child-simulation/6370 "2021-12-29T19:35:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajat.sanu](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@rajat.sanu](https://community.gatling.io/u/rajat.sanu)\
**Post date:** [December 29, 2021, 7:35pm UTC](https://community.gatling.io/t/feeder-is-empty-while-running-the-child-simulation/6370/1 "2021-12-29T19:35:09Z")

</div>

Hello everyone,

I want to run two different scenario. Second scenario will start once First is completed. Hence i used **andThen** method in setup.

setUp(  
firstScenario.inject(rampUsers(thread\_Count) during (rampUp\_Time.seconds)).protocols(grpcConf)  
.andThen(secondScenario.inject(rampUsers(thread\_Count) during (rampUp\_Time.seconds)).protocols(grpcConf))  
).maxDuration(sCommon\_Duration.seconds)

Now here the First scenario will create the test data for Second scenario in one csv File, which I am able to generate. I have created a blank csv file which every-time First scenario will update. But second scenario is not able to feed the newly updated csv file, it is still loading the old csv file i.e. Blank CSV and I am getting Error as _ **Feeder is now empty, stopping engine** _

Can anyone please help me here, how I can generate the testdata of second scenario from execution result of First scenario. And I want to run these two scenario in One Single execution.

Thanks

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [December 29, 2021, 7:45pm UTC](https://community.gatling.io/t/feeder-is-empty-while-running-the-child-simulation/6370/2 "2021-12-29T19:45:13Z")

</div>

You have to force the feeder to « batch »

[https://gatling.io/docs/gatling/reference/current/core/session/feeder/#loading-mode](https://gatling.io/docs/gatling/reference/current/core/session/feeder/#loading-mode)

---

<div class="post-metadata">

**Author:** ![rajat.sanu](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@rajat.sanu](https://community.gatling.io/u/rajat.sanu)\
**Post date:** [December 30, 2021, 10:31am UTC](https://community.gatling.io/t/feeder-is-empty-while-running-the-child-simulation/6370/3 "2021-12-30T10:31:11Z")

</div>

I have used batch but still getting the Error.

Below is the Feeder File of secondScenario.

val transaction = csv(“data/CreateData.csv”).batch

This CreateData.csv is being generated by First Scenario.

Regards  
Rajat
