# FormAction has no such method: extract()

**URL:** <https://forum.rasa.com/t/formaction-has-no-such-method-extract/4461>\
**Category:** Rasa Open Source\
**Created:** [January 18, 2019, 1:46pm UTC](https://forum.rasa.com/t/formaction-has-no-such-method-extract/4461 "2019-01-18T13:46:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FRTNX](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@FRTNX](https://forum.rasa.com/u/FRTNX)\
**Post date:** [January 18, 2019, 1:46pm UTC](https://forum.rasa.com/t/formaction-has-no-such-method-extract/4461/1 "2019-01-18T13:46:47Z")

</div>

Greetings.

I have have been using and loving the Rasa Stack for quite some time now.

I have encountered problems during FormAction validation. The examples given [here](https://rasa.com/docs/core/0.12.3/slotfilling/) and [here](https://rasa.com/docs/core/0.12.4/slotfilling/) use a method called extract() to get events (the last line of the below code snippet).

```auto
def validate(self, dispatcher, tracker, domain):
    # type: (CollectingDispatcher, Tracker, Dict[Text, Any]) -> List[Dict]
    """"Validate extracted requested slot else raise an error"""
    slot_to_fill = tracker.get_slot(REQUESTED_SLOT)

    # extract requested slot from a user input by using 'slot_mapping'
    events = self.extract(dispatcher, tracker, domain)

```

However the FormAction class has no such method (rasa\_core; versions 0.12.3 and 0.12.4). As a possible hack, I have tried to use the extract\_requested\_slot() method, which returns a dictionary of slot: value pairs. This however is in conflict with line 388 of forms.py, which seems to expect a different data format. Not quite sure how to proceed. Any insight would be much appreciated.

---

<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:** [January 18, 2019, 4:26pm UTC](https://forum.rasa.com/t/formaction-has-no-such-method-extract/4461/2 "2019-01-18T16:26:55Z")

</div>

Yes, we changed the inner logic there, but didn’t update the docs. The `master` version is updated now: [Slot Filling](https://rasa.com/docs/core/master/slotfilling/)

---

<div class="post-metadata">

**Author:** ![FRTNX](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@FRTNX](https://forum.rasa.com/u/FRTNX)\
**Post date:** [January 19, 2019, 12:42pm UTC](https://forum.rasa.com/t/formaction-has-no-such-method-extract/4461/3 "2019-01-19T12:42:52Z")

</div>

Thank you. My validation process now runs smoothly
