# Wrong slotmappings

**URL:** <https://forum.rasa.com/t/wrong-slotmappings/23204>\
**Category:** Rasa Open Source\
**Created:** [January 8, 2020, 7:35am UTC](https://forum.rasa.com/t/wrong-slotmappings/23204 "2020-01-08T07:35:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrutkinage](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amrutkinage/32/6560_2.png) [@amrutkinage](https://forum.rasa.com/u/amrutkinage)\
**Post date:** [January 8, 2020, 7:35am UTC](https://forum.rasa.com/t/wrong-slotmappings/23204/1 "2020-01-08T07:35:35Z")

</div>

my form action has two slots accnumber and pincode with same entity as(number)…and while executing form action my first slot is set with a value (accnumber, eg - 10024554562) but after filling second slot (pincode, eg -2001) along with this my previous slot(accnumber) also gets replace by pincode value …does resulting in same value in for both the slots( accnumber = 2001 and pincode = 2001))

here is the code for formaction

class get\_xyznumber(FormAction):

```
def name(self) -> Text:
    return 'get_xyznumber'

@staticmethod
def required_slots(tracker: Tracker) -> List[Text]:
    return ["accnum","pincode"]

def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:
    return {

        'pincode': [
            self.from_entity(
                entity="pincode", intent=["inform"]
            ),
            self.from_entity(entity="number")
        ],
        'accnum': [
            self.from_entity(
                entity="accnum", intent=["inform","enquiry"]
            ),
            self.from_entity(entity="number"),
        ]
    }

```

def submit( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -\> List[Dict]: “”“Define what the form has to do after all required slots are filled”""

```
    # utter submit template
    dispatcher.utter_message(template="utter_submit")
    return []

```

output:- before asking pincode bot - please tell you accnum user response - 10024554562 accnum: 10024554562 amount: None cardtype: None currency: None requested\_slot: pincode pincode: None

after asking pincode bot - please tell your pincode user response - 2001 accnum: 2001 amount: None cardtype: None currency: None requested\_slot: None pincode: 2001

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [January 10, 2020, 3:42pm UTC](https://forum.rasa.com/t/wrong-slotmappings/23204/2 "2020-01-10T15:42:38Z")

</div>

hi @amrutkinage , welcome to the forum! can you try talking to the bot in debug mode? ( `rasa shell --debug` ) this can be quite helpful for seeing exactly what the form is doing

---

<div class="post-metadata">

**Author:** ![amrutkinage](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amrutkinage/32/6560_2.png) [@amrutkinage](https://forum.rasa.com/u/amrutkinage)\
**Post date:** [January 13, 2020, 11:45am UTC](https://forum.rasa.com/t/wrong-slotmappings/23204/3 "2020-01-13T11:45:12Z")

</div>

hi, @amn41 the issue is solved it was related to wrong data types while extracting slot .
