# Error sending messages to groups

**URL:** <https://meta.discourse.org/t/error-sending-messages-to-groups/152999>\
**Category:** Bug\
**Created:** [27 mei 2020 om 17:41 UTC](https://meta.discourse.org/t/error-sending-messages-to-groups/152999 "2020-05-27T17:41:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![GuidoD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/guidod/32/292621_2.png) [@GuidoD](https://meta.discourse.org/u/GuidoD)\
**Post date:** [27 mei 2020 om 17:41 UTC](https://meta.discourse.org/t/error-sending-messages-to-groups/152999/1 "2020-05-27T17:41:32Z")

</div>

sending a new message to a group ends up in an error message:

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/6/d/6d2e5bed7f5f30617b06fec345ffaa6722715efe.png)  
(One of the recipients of this message could not be found)

Sending the message to the group “admins” (I am one of the admins) does work.

We are on 2.5.0.beta5 ( [7bc496070f](https://github.com/discourse/discourse/commits/7bc496070f744a411f6b8efd111c096d485617a4) )

Update:  
I just did a test, all group names that include a capital letter (and almost all our groups do have capital letters in the group names) do not work any longer as message recipients.  
So “Testuser” is no longer working, but after renaming the group to “testuser” is worked.  
Renaming it back to “Testuser” does again show the error.  
So something is wrong in the current releases with the sending to group names with capital letters.

The error logs does show as latest error for several times the below error but I am unsure if that error does belong to the problem above (probably that error is a different problem).

```plaintext
Message (39 copies reported)

Job exception: ERROR: syntax error at or near "WHERE"
LINE 1: ...E groups SET flair_url = NULL, flair_upload_id = WHERE id =...
                                                             ^

Backtrace

/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-2.0.2/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-2.0.2/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/mini_sql-0.2.5/lib/mini_sql/postgres/connection.rb:135:in `run'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/mini_sql-0.2.5/lib/mini_sql/postgres/connection.rb:107:in `exec'
/var/www/discourse/app/jobs/onceoff/migrate_group_flair_images.rb:80:in `block in execute_onceoff'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3/lib/active_record/relation/delegation.rb:87:in `each'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3/lib/active_record/relation/delegation.rb:87:in `each'
/var/www/discourse/app/jobs/onceoff/migrate_group_flair_images.rb:18:in `execute_onceoff'
/var/www/discourse/app/jobs/onceoff/onceoff.rb:25:in `execute'
/var/www/discourse/app/jobs/base.rb:232:in `block (2 levels) in perform'

```

---

_[View the full topic](https://meta.discourse.org/t/error-sending-messages-to-groups/152999)._
