# Rasa train not working

**URL:** <https://forum.rasa.com/t/rasa-train-not-working/42658>\
**Category:** Rasa Open Source\
**Tags:** testing\
**Created:** [April 20, 2021, 12:16pm UTC](https://forum.rasa.com/t/rasa-train-not-working/42658 "2021-04-20T12:16:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iamnotabot](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@Iamnotabot](https://forum.rasa.com/u/Iamnotabot)\
**Post date:** [April 20, 2021, 12:16pm UTC](https://forum.rasa.com/t/rasa-train-not-working/42658/1 "2021-04-20T12:16:14Z")

</div>

Hi! all, I am not able to understand this sudden error while doing rasa train. What could be the reason of it

 ![rasa d](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/d6fe82829683daa56eaa8c5c0a6f0ee6f247cb42.png)

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [April 20, 2021, 12:17pm UTC](https://forum.rasa.com/t/rasa-train-not-working/42658/2 "2021-04-20T12:17:45Z")

</div>

Could you attach any regexes or lookup tables you have? Looks like a regular expression isn’t compiling correctly.

---

<div class="post-metadata">

**Author:** ![Iamnotabot](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@Iamnotabot](https://forum.rasa.com/u/Iamnotabot)\
**Post date:** [April 20, 2021, 1:55pm UTC](https://forum.rasa.com/t/rasa-train-not-working/42658/3 "2021-04-20T13:55:29Z")

</div>

Thanks for the reply @erohmensing . This the lookup table I have and I am working in rasa 2.5

 ![rasa 1](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/9/904571f3ad9b0f5ada99323dfab2fc7eb8d710a1.png) ![rasa 2](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/0/09a48a6c9631b97eec752677379a8693cc5e9fce.png) ![rasa 3](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/a/a843714da0547252bdf4e5c087f1033107274c56.png)

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [April 21, 2021, 7:29am UTC](https://forum.rasa.com/t/rasa-train-not-working/42658/4 "2021-04-21T07:29:53Z")

</div>

There are two things here:

What I think is caeusing your issue is the regex on line 300. `{5}` means some pattern repeated 5 times. For example on like 299, that pattern matches a 5-digit number, since `[0-9]` matches any digit. On like 300 though, you just have “match x repeated 5 times” without the x.

Also, References to external files for lookups aren’t supported in Rasa 2.0. You’ll have to add your entries for `leave_type` inline (you can copy and paste the contents of `lookup_tab.yml` into `nlu.yml` instead of the lines 302 and 303

---

<div class="post-metadata">

**Author:** ![Iamnotabot](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@Iamnotabot](https://forum.rasa.com/u/Iamnotabot)\
**Post date:** [April 21, 2021, 11:05am UTC](https://forum.rasa.com/t/rasa-train-not-working/42658/5 "2021-04-21T11:05:34Z")

</div>

It worked for me thanks 😀
