# Rasa Slots gets None

**URL:** <https://forum.rasa.com/t/rasa-slots-gets-none/30167>\
**Category:** Rasa Open Source\
**Created:** [June 13, 2020, 12:09pm UTC](https://forum.rasa.com/t/rasa-slots-gets-none/30167 "2020-06-13T12:09:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vi.kumar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vi.kumar/32/9047_2.png) [@vi.kumar](https://forum.rasa.com/u/vi.kumar)\
**Post date:** [June 13, 2020, 12:09pm UTC](https://forum.rasa.com/t/rasa-slots-gets-none/30167/1 "2020-06-13T12:09:47Z")

</div>

Hi! I have two slots “save\_id” and “save\_name” I want these two slots to retain its value throughout the conversation

In my stories i have like this -

\*ask\_save\_details{“save\_id”:“vi.kumar”, “save\_name”:“Vivek Kumar”}  
-action\_save\_details

inside action\_save\_details also-  
return[SlotSet(“save\_id” , emp\_id) , SlotSet(“save\_name”, name)]

Even forcing with a return statement doesnt hold the value

when action\_save\_details is run , it picks the value   
But as soon as other query i runs these two slots are None

Kindly help me

---

<div class="post-metadata">

**Author:** ![saurabh-m523](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saurabh-m523/32/7887_2.png) [@saurabh-m523](https://forum.rasa.com/u/saurabh-m523)\
**Post date:** [June 13, 2020, 2:56pm UTC](https://forum.rasa.com/t/rasa-slots-gets-none/30167/2 "2020-06-13T14:56:21Z")

</div>

Hi @vi.kumar!

Just to confirm, are they getting set to `None` before `action_restart` or after?

---

<div class="post-metadata">

**Author:** ![vi.kumar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vi.kumar/32/9047_2.png) [@vi.kumar](https://forum.rasa.com/u/vi.kumar)\
**Post date:** [June 15, 2020, 6:55am UTC](https://forum.rasa.com/t/rasa-slots-gets-none/30167/3 "2020-06-15T06:55:21Z")

</div>

when i check the rasa logs which come through this command -  
rasa run --enable-api -m models/dialogue -m models/nlu/current --debug --endpoints endpoints.yml --cors “\*”  
i dnt get any log of “action\_restart”

can u plz help me how to check whether action\_restart is even called or not ?

---

<div class="post-metadata">

**Author:** ![saurabh-m523](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saurabh-m523/32/7887_2.png) [@saurabh-m523](https://forum.rasa.com/u/saurabh-m523)\
**Post date:** [June 16, 2020, 12:22pm UTC](https://forum.rasa.com/t/rasa-slots-gets-none/30167/4 "2020-06-16T12:22:10Z")

</div>

Hi @vi.kumar!

`action_restart` should appear in your debug logs. It should look something like this:

```auto
DEBUG rasa.core.processor - Predicted next action 'action_restart' with confidence 

```

---

<div class="post-metadata">

**Author:** ![vi.kumar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vi.kumar/32/9047_2.png) [@vi.kumar](https://forum.rasa.com/u/vi.kumar)\
**Post date:** [July 7, 2020, 6:55pm UTC](https://forum.rasa.com/t/rasa-slots-gets-none/30167/5 "2020-07-07T18:55:31Z")

</div>

2020-07-08 00:14:43 DEBUG rasa.core.processor - Current slot values:\

```
    id: None
    my_id: vi.kumar
    save_id: vi.kumar

```

2020-07-08 00:14:43 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {‘entity\_save\_id’: 1.0, ‘intent\_ask\_save\_details’: 1.0, ‘prev\_action\_listen’: 1.0, ‘slot\_save\_id\_0’: 1.0}, {‘entity\_save\_id’: 1.0, ‘intent\_ask\_save\_details’: 1.0, ‘slot\_my\_id\_0’: 1.0, ‘prev\_action\_save\_details’: 1.0, ‘slot\_save\_id\_0’: 1.0}]  
2020-07-08 00:14:43 DEBUG rasa.core.policies.memoization - There is no memorised next action  
2020-07-08 00:14:43 DEBUG rasa.core.policies.mapping\_policy - There is no mapped action for the predicted intent, ‘ask\_save\_details’.  
2020-07-08 00:14:43 DEBUG rasa.core.policies.two\_stage\_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3).  
2020-07-08 00:14:43 DEBUG rasa.core.policies.form\_policy - There is no active form  
2020-07-08 00:14:43 DEBUG rasa.core.policies.ensemble - Predicted next action using policy\_1\_KerasPolicy  
2020-07-08 00:14:43 DEBUG rasa.core.processor - Predicted next action ‘action\_listen’ with confidence 1.00.  
2020-07-08 00:14:43 DEBUG rasa.core.processor - Action ‘action\_listen’ ended with events ‘[]’  
2020-07-08 00:14:43 DEBUG rasa.core.tracker\_store - Tracker with sender\_id ‘15941474813336344’ stored to database  
2020-07-08 00:14:43 DEBUG rasa.core.lock\_store - Deleted lock for conversation ‘15941474813336344’.  
2020-07-08 00:15:19 DEBUG rasa.core.tracker\_store - Can’t retrieve tracker matching sender id ‘15941475184502618’ from SQL storage. Returning `None` instead.  
2020-07-08 00:15:19 DEBUG rasa.core.tracker\_store - Tracker with sender\_id ‘15941475184502618’ stored to database  
2020-07-08 00:15:19 DEBUG rasa.core.processor - Received user message ‘/ask\_find\_open\_issues\_id{“id”: “vi.kumar”}’ with intent ‘{‘name’: ‘ask\_find\_open\_issues\_id’, ‘confidence’: 1.0}’ and entities ‘[{‘entity’: ‘id’, ‘start’: 24, ‘end’: 42, ‘value’: ‘vi.kumar’}]’  
2020-07-08 00:15:19 DEBUG rasa.core.processor - Current slot values:  
id: vi.kumar  
my\_id: None  
save\_id: None  
2020-07-08 00:15:19 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 3 events\

---

<div class="post-metadata">

**Author:** ![vi.kumar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vi.kumar/32/9047_2.png) [@vi.kumar](https://forum.rasa.com/u/vi.kumar)\
**Post date:** [July 7, 2020, 6:58pm UTC](https://forum.rasa.com/t/rasa-slots-gets-none/30167/6 "2020-07-07T18:58:51Z")

</div>

Hlo Saurabh-m523  
I have given u the logs i am getting .  
U can see there are three slots {id , my\_id , save\_id}.  
initially , my\_id and save\_id are filled wuth value “vi.kumar”

but afterwards ther are filled to none  
U told me there must be an “action\_restart” action which is running i cant see any kind of log related to this

For your information , in my actions.py file and in stories i have nowhere set my\_id and save-id to None but still my slots are getting none  
kindly help

---

<div class="post-metadata">

**Author:** ![saurabh-m523](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saurabh-m523/32/7887_2.png) [@saurabh-m523](https://forum.rasa.com/u/saurabh-m523)\
**Post date:** [July 8, 2020, 6:04am UTC](https://forum.rasa.com/t/rasa-slots-gets-none/30167/7 "2020-07-08T06:04:11Z")

</div>

Hi @vi.kumar!

I’m not an expert but I have a few suggestions for debugging this:

> [@vi.kumar](#):
>
> ```auto
> 2020-07-08 00:14:43 DEBUG rasa.core.tracker_store - Tracker with sender_id ‘15941474813336344’ stored to database
> 2020-07-08 00:14:43 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘15941474813336344’.
> 2020-07-08 00:15:19 DEBUG rasa.core.tracker_store - Can’t retrieve tracker matching sender id ‘15941475184502618’ from SQL storage. Returning `None` instead.
> 2020-07-08 00:15:19 DEBUG rasa.core.tracker_store - Tracker with sender_id ‘15941475184502618’ stored to database
> 
> ```

Here, why the sender id is changing in between conversation? What channel are you using for communication? Also based on this log, I think you are using SQL tracker store. If so, then just as an experiment, could you please try disabling the tracker store and then see if you still get the same error?

---

<div class="post-metadata">

**Author:** ![vi.kumar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vi.kumar/32/9047_2.png) [@vi.kumar](https://forum.rasa.com/u/vi.kumar)\
**Post date:** [July 11, 2020, 9:24am UTC](https://forum.rasa.com/t/rasa-slots-gets-none/30167/8 "2020-07-11T09:24:29Z")

</div>

Hi saurabh  
It is solved   
actually the sender id was changing   
thank you
