# Saving event failed due to integrity error

**URL:** <https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [November 3, 2021, 8:00am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957 "2021-11-03T08:00:58Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 5, 2021, 11:03am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/21 "2021-11-05T11:03:47Z")

</div>

@nik202 Yes

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [November 5, 2021, 11:06am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/22 "2021-11-05T11:06:04Z")

</div>

@arthurchan ok share me these details

1. Share rasa --version while activating conda environment
2. delete all database file I guess 4 files
3. run again rasa x
4. in next terminal run rasa run actions

share all screenshot

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 5, 2021, 11:08am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/23 "2021-11-05T11:08:25Z")

</div>

@nik202 So what you mean is I run rasa x before running rasa run actions?

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [November 5, 2021, 11:10am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/24 "2021-11-05T11:10:08Z")

</div>

@arthurchan you can run any one, but chat with the bot when you run both.

I confirm to you, when I run rasa x alone, I not get any response and when I run rasa run actions I am getting the response. Please share me some screenshot as requested.

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 5, 2021, 11:29am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/25 "2021-11-05T11:29:07Z")

</div>

@nik202 rasa version and I am going to remove these 4 files

 ![rasa_version](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/5/35bdb29970aaa98c9b9a1a5795f8f75128eab790.png)

This is to confirm that I had removed those files

 ![after_removal](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/e/9/e9da3ce37abd63f3b8ef4490f0fd37a027ede469.png)

This is the screenshot when I just run rasa x but not rasa run actions and did not start any conversations with the bot yet

 ![rasa_x_run](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/8/3/830165fb5c1a8786ed28f4730de607ca30703b9c.jpeg)

This is the screenshot when I run rasa run actions

 ![rasa_run_actions](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/7/172fdefbee98d14ff0e31917433ac8787c442a89.jpeg)

This is captured when I turned to “Talk to your bot” tab **without** saying anything

 ![did_not_start_conversation](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/b/c/bc6bb535a51c308836b65c2cb166cf19a1689fd5.jpeg)

This is the time before I send the message

 ![say_hi](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/c/e/ce773d8f7e9cb34eda9f754a631d29ed0e4c1141.jpeg)

This is when I sent the message

 ![after_hi_TT](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/f/b/fbecb08765d1f9994d9881b5610fef0184ef0fb8.jpeg)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [November 5, 2021, 11:36am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/26 "2021-11-05T11:36:49Z")

</div>

@arthurchan load the model and talk to you bot, if you are able to talk without any issue then it must be the issue with rasa x. confirm me that you able to talk to your bot.

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 5, 2021, 12:06pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/27 "2021-11-05T12:06:30Z")

</div>

Ok I will try to talk to the bot using the command “rasa shell”

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 5, 2021, 1:14pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/28 "2021-11-05T13:14:27Z")

</div>

@nik202 I cannot even talk to the bot using “rasa shell” …

 ![error_123](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/8/189117ef0600e471231b6f98c007353fd6e36902.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [November 5, 2021, 1:16pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/29 "2021-11-05T13:16:07Z")

</div>

@arthurchan then its not an issue with rasa x, this is some different issue bro, please share all files if you can or create GitHub repo, so that I can see the code.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [November 5, 2021, 1:17pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/30 "2021-11-05T13:17:33Z")

</div>

@arthurchan close all the terminal and again activate and run the `rasa shell --debug` last try? and try chat with bot.

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 5, 2021, 1:24pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/31 "2021-11-05T13:24:03Z")

</div>

@nik202 After running rasa shell --debug, I can now talk to the bot as expected.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [November 5, 2021, 1:24pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/32 "2021-11-05T13:24:47Z")

</div>

@arthurchan share the screenshot please.

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 5, 2021, 1:28pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/33 "2021-11-05T13:28:18Z")

</div>

I’ll skip this part as it is too long. Is it ok?

 ![1](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/9/3/93840b15f8b9190853ae6b76ee51bb0c8c3dbbf5.png)

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 5, 2021, 1:35pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/34 "2021-11-05T13:35:01Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/5/151840e629334768add19f297197e0c0d38d2d91.png)

 ![3](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/7/37d906f1f8637ec65d25cf62b8173291233fe419.png)

 ![4](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/f/d/fd7ad720dd478bcb84fe4ddf897662e3712a77a3.png)

 ![5](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/6/1/61e41f57aa00e1eda4a2266520642b391060201d.png)

 ![6](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/f/9/f91a9d7139b3202db76595838c2219f4fe960ed9.png)

 ![7](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/6/7/67d4a0c5cd6a25397cc640abe56c083775fc0f23.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [November 5, 2021, 1:48pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/35 "2021-11-05T13:48:32Z")

</div>

@arthurchan means you were able to get the desired response while using rasa shell?

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 5, 2021, 2:31pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/36 "2021-11-05T14:31:20Z")

</div>

@nik202 Yes I am able to get the desired response

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [November 5, 2021, 3:01pm UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/37 "2021-11-05T15:01:00Z")

</div>

@arthurchan and you not getting the response now as when run rasa x?

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 8, 2021, 1:29am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/39 "2021-11-08T01:29:50Z")

</div>

@nik202 the error persists given that I am able to talk to the bot in shell mode… Also, as I mentioned before, the bot can chat as expected but the issue is what my inputs are disappeared in the chat room and conversation history cannot be found in “Conversations” tab…

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 8, 2021, 1:38am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/40 "2021-11-08T01:38:55Z")

</div>

@nik202 I am not sure if this sqlite3.IntegrityError matters. This error occurred after I sent the message, it probably means that the server was unable to save that event? See the error message starting from WARNING:rasax.community … skip the message in yellow.

 ![sql_statement](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/9/c/9c0d7d9d02baa65af9200ca03c17666b3a97bfd6.png)

---

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [November 19, 2021, 4:57am UTC](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957/41 "2021-11-19T04:57:39Z")

</div>

@nik202 I am sorry to have your attention again… I am still struggling with this issue now. I tried to delete those `.db` files, but it seemed doesn’t work. I want to stick to using Rasa X as the interface for my testers to provide conversation data. However, until this point, I cannot save their conversation events although they can talk to the bot using both shell mode and rasa x “Talk to the bot”.

[Previous page](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957.md?page=1)

[Next page](https://forum.rasa.com/t/saving-event-failed-due-to-integrity-error/48957.md?page=3)
