# Issue with email collector

**URL:** <https://www.dolibarr.org/forum/t/issue-with-email-collector/30391>\
**Category:** CRM/SRM Modules\
**Tags:** Issue\
**Created:** [June 2, 2025, 11:52am UTC](https://www.dolibarr.org/forum/t/issue-with-email-collector/30391 "2025-06-02T11:52:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanusZAR](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/41988e/32.png) [@JanusZAR](https://www.dolibarr.org/forum/u/JanusZAR)\
**Post date:** [June 2, 2025, 11:52am UTC](https://www.dolibarr.org/forum/t/issue-with-email-collector/30391/1 "2025-06-02T11:52:38Z")

</div>

Good day Dolibarr Community  
I have been using Dolibarr extensively in one of my projects.  
One of my favourite tools is the generation of tickets for every emails sent to a specific email address.  
However, when I tried to add another email collector and when I got configure “Filters” it gives me the following error:

Cannot add or update a child row: a foreign key constraint fails (`* __database__ *`.`llxih_emailcollector_emailcollectorfilter`, CONSTRAINT `fk_emailcollectorfilter_fk_emailcollector` FOREIGN KEY (`fk_emailcollector`) REFERENCES `llxih_emailcollector_emailcollector` (`rowid`))

The initial installation was 18.0.5 and I am on 21.0.1.

This bug might have entered “the doli-sphere” in the V 21 upgrade.

Please let me know how to fix this silly bug.

Thank you very much.  
Js
