# Rasa.core.training.dsl - Invalid story file format error

**URL:** <https://forum.rasa.com/t/rasa-core-training-dsl-invalid-story-file-format-error/25858>\
**Category:** Rasa Open Source\
**Created:** [March 9, 2020, 8:13pm UTC](https://forum.rasa.com/t/rasa-core-training-dsl-invalid-story-file-format-error/25858 "2020-03-09T20:13:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahlam1234](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ahlam1234](https://forum.rasa.com/u/ahlam1234)\
**Post date:** [March 9, 2020, 8:13pm UTC](https://forum.rasa.com/t/rasa-core-training-dsl-invalid-story-file-format-error/25858/1 "2020-03-09T20:13:17Z")

</div>

hi there , I’m getting this error when typing “rasa train” command

 ![Screenshot%20(96)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/8/86f5a7f13c93b0d20077f10f4cf272b0f1e6eff7.png)

and this is my stories.md file

 ![Screenshot%20(95)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/5ecbb1f1479695b27cdc90aa10b62967017e3bec.png)

and am sure that all actions in stories.md file do exist in domain file help please

---

<div class="post-metadata">

**Author:** ![Ghostvv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ghostvv/32/211_2.png) [@Ghostvv](https://forum.rasa.com/u/Ghostvv)\
**Post date:** [March 10, 2020, 9:43am UTC](https://forum.rasa.com/t/rasa-core-training-dsl-invalid-story-file-format-error/25858/2 "2020-03-10T09:43:07Z")

</div>

I think it happens, because you have 2 spaces before `## Story 1`

---

<div class="post-metadata">

**Author:** ![ahlam1234](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ahlam1234](https://forum.rasa.com/u/ahlam1234)\
**Post date:** [March 10, 2020, 9:49am UTC](https://forum.rasa.com/t/rasa-core-training-dsl-invalid-story-file-format-error/25858/3 "2020-03-10T09:49:11Z")

</div>

I removed the 2 space and the same error appeared again[run.txt](https://forum.rasa.com/uploads/short-url/6B3mqBQhdGxYHeCJA7TAjH3b5vz.txt) (13.0 KB) the file contains the error description

---

<div class="post-metadata">

**Author:** ![Ghostvv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ghostvv/32/211_2.png) [@Ghostvv](https://forum.rasa.com/u/Ghostvv)\
**Post date:** [March 10, 2020, 10:36am UTC](https://forum.rasa.com/t/rasa-core-training-dsl-invalid-story-file-format-error/25858/4 "2020-03-10T10:36:50Z")

</div>

could you post the raw text of the story - could also be the arabic characters

---

<div class="post-metadata">

**Author:** ![ahlam1234](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ahlam1234](https://forum.rasa.com/u/ahlam1234)\
**Post date:** [March 10, 2020, 11:00am UTC](https://forum.rasa.com/t/rasa-core-training-dsl-invalid-story-file-format-error/25858/5 "2020-03-10T11:00:43Z")

</div>

[stories.md](https://forum.rasa.com/uploads/short-url/fFjj3L7sZBI4gITSm8HC4XCxLkg.md) (217 Bytes)

this is the stories file

and this is the domain file if needed [domain.yml](https://forum.rasa.com/uploads/short-url/KtT2nhf8zAKy9Bz7U1ytH0q9qz.yml) (291 Bytes)

---

<div class="post-metadata">

**Author:** ![Ghostvv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ghostvv/32/211_2.png) [@Ghostvv](https://forum.rasa.com/u/Ghostvv)\
**Post date:** [March 10, 2020, 1:48pm UTC](https://forum.rasa.com/t/rasa-core-training-dsl-invalid-story-file-format-error/25858/6 "2020-03-10T13:48:15Z")

</div>

It looks like there is a problem with your `##` symbols

---

<div class="post-metadata">

**Author:** ![ahlam1234](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ahlam1234](https://forum.rasa.com/u/ahlam1234)\
**Post date:** [March 10, 2020, 2:41pm UTC](https://forum.rasa.com/t/rasa-core-training-dsl-invalid-story-file-format-error/25858/7 "2020-03-10T14:41:58Z")

</div>

I have changed the encoding of stories file into ANSI instead of UTF-8 and ran the "rasa train "command and it worked very well

thank you very much for your help
