{"id":30594,"date":"2022-02-16T15:39:52","date_gmt":"2022-02-16T10:09:52","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=30594"},"modified":"2022-02-16T17:40:10","modified_gmt":"2022-02-16T12:10:10","slug":"error-occured-system-exception-can-not-create-the-routing-rule-item-as-selected-queue-is-not-of-entity-type-solved","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2022\/02\/error-occured-system-exception-can-not-create-the-routing-rule-item-as-selected-queue-is-not-of-entity-type-solved\/","title":{"rendered":"\u2018Error occured.System.Exception: Can not create the routing rule item as selected queue is not of entity type\u2026\u2019 Solved"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>While working with case entity and queue entity in the Customer Service Hub app we encountered an issue which states that we can only route to Entity type queue.<br \/>\nAfter investigating, we found that this issue arises due to OmniChannel Apps installed in Dynamics 365 CRM environment.<\/p>\n<p><strong>What is the issue?<\/strong><br \/>\nWe created a case entity record in the Customer Service Hub and while adding this record into queue we encountered an issue stating that we can only route to Entity Type queue as shown in below screenshots:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30631\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1OmniChannel-ink-6.jpeg\" alt=\"OmniChannel\" width=\"877\" height=\"437\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1OmniChannel-ink-6.jpeg 877w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1OmniChannel-ink-6-300x149.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1OmniChannel-ink-6-768x383.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1OmniChannel-ink-6-660x329.jpeg 660w\" sizes=\"(max-width: 877px) 100vw, 877px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30630\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/2OmniChannel-ink-1.jpeg\" alt=\"OmniChannel\" width=\"413\" height=\"266\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/2OmniChannel-ink-1.jpeg 413w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/2OmniChannel-ink-1-300x193.jpeg 300w\" sizes=\"(max-width: 413px) 100vw, 413px\" \/><\/p>\n<p><strong>Error Description:<\/strong> \u201cError occured.System.Exception: Can not create the routing rule item as selected queue is not of entity type. You can only route to Entity type queue. at Microsoft.Dynamics.OmnichannelBase.Plugins.PreOperationOCQueueRoutingPlugin.Execute(IServiceProvider serviceProvider)\u201d<\/p>\n<p>After investigating more to resolve this issue we found that the issue has occurred due to the OmniChannel Apps installed in Dynamics 365 CRM environment.<\/p>\n<p>In Queue Entity there\u2019s a field named Queue Type (msydn_queuetype), but by default this field is not on the Queue Entity Form and its default value is \u201cMessaging\u201d.<\/p>\n<p>This field comes with OmniChannel and it was not previously present in Dynamics 365 CRM.<\/p>\n<p>To add the records in the queue manually or automatically, the queue type value should always be \u201cEntity\u201d.<\/p>\n<p>To resolve the above issue we need to add the Queue Type field on the Queue Entity form and set its value to \u201cEntity\u201d instead of \u201cMessaging\u201d.<\/p>\n<p>To add this field on the form, follow the steps given below:<\/p>\n<p>1. Go to Advance Setting -&gt; Customization -&gt; Customize the System.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30629\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/3OmniChannel-ink-1.jpeg\" alt=\"OmniChannel\" width=\"1048\" height=\"293\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/3OmniChannel-ink-1.jpeg 1048w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/3OmniChannel-ink-1-300x84.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/3OmniChannel-ink-1-1024x286.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/3OmniChannel-ink-1-768x215.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/3OmniChannel-ink-1-660x185.jpeg 660w\" sizes=\"(max-width: 1048px) 100vw, 1048px\" \/><\/p>\n<p>2. In Components -&gt; Expand Entity -&gt; Expand Queue -&gt; Open the Main Queue Form.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30628\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/4OmniChannel-ink-1.jpeg\" alt=\"OmniChannel\" width=\"1031\" height=\"335\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/4OmniChannel-ink-1.jpeg 1031w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/4OmniChannel-ink-1-300x97.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/4OmniChannel-ink-1-1024x333.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/4OmniChannel-ink-1-768x250.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/4OmniChannel-ink-1-660x214.jpeg 660w\" sizes=\"(max-width: 1031px) 100vw, 1031px\" \/><\/p>\n<p>3. It will open the Main Queue Entity Form. Drag and add the Queue Type field on the Main Form as shown in below screenshot:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30627\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/5OmniChannel-ink-1.jpeg\" alt=\"OmniChannel\" width=\"1040\" height=\"455\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/5OmniChannel-ink-1.jpeg 1040w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/5OmniChannel-ink-1-300x131.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/5OmniChannel-ink-1-1024x448.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/5OmniChannel-ink-1-768x336.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/5OmniChannel-ink-1-660x289.jpeg 660w\" sizes=\"(max-width: 1040px) 100vw, 1040px\" \/><\/p>\n<p>4. You can check the properties of the field and the default value of the field by double clicking on the field, it will open the Field Property window.<br \/>\nHere, go to Details Tab -&gt; Click on Edit Button.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30626\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/6OmniChannel-ink-1.jpeg\" alt=\"OmniChannel\" width=\"422\" height=\"452\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/6OmniChannel-ink-1.jpeg 422w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/6OmniChannel-ink-1-280x300.jpeg 280w\" sizes=\"(max-width: 422px) 100vw, 422px\" \/><\/p>\n<p>5. It will open the Field Information Window. Scroll down and you can see the default value of the Queue Type Field.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30625\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/7OmniChannel-ink-1.jpeg\" alt=\"OmniChannel\" width=\"1031\" height=\"431\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/7OmniChannel-ink-1.jpeg 1031w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/7OmniChannel-ink-1-300x125.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/7OmniChannel-ink-1-1024x428.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/7OmniChannel-ink-1-768x321.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/7OmniChannel-ink-1-660x276.jpeg 660w\" sizes=\"(max-width: 1031px) 100vw, 1031px\" \/><\/p>\n<p>As you can see in the above screenshot the default value of the Queue Type is \u201cMessaging\u201d which causes the issue while adding the Case Entity record into the Queue.<br \/>\n6. After adding the field on the Queue Entity Form whenever we create any Queue we need to keep the Queue Type value as \u201cEntity\u201d so that we can add other entities records into that Queue without any issue.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30624\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/8OmniChannel-ink-1.jpeg\" alt=\"OmniChannel\" width=\"859\" height=\"384\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/8OmniChannel-ink-1.jpeg 859w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/8OmniChannel-ink-1-300x134.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/8OmniChannel-ink-1-768x343.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/8OmniChannel-ink-1-660x295.jpeg 660w\" sizes=\"(max-width: 859px) 100vw, 859px\" \/><\/p>\n<p>Now whenever we add any other entity records into this queue it will be successfully added into the queue.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30623\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/9OmniChannel-ink-1.jpeg\" alt=\"OmniChannel\" width=\"849\" height=\"423\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/9OmniChannel-ink-1.jpeg 849w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/9OmniChannel-ink-1-300x149.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/9OmniChannel-ink-1-768x383.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/9OmniChannel-ink-1-660x329.jpeg 660w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/><\/p>\n<p>7. It will open the Add to Queue window. Here, select the queue which you have just created which has \u201cEntity\u201d as Queue Type.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30622\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/10OmniChannel-ink-1.jpeg\" alt=\"OmniChannel\" width=\"434\" height=\"219\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/10OmniChannel-ink-1.jpeg 434w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/10OmniChannel-ink-1-300x151.jpeg 300w\" sizes=\"(max-width: 434px) 100vw, 434px\" \/><\/p>\n<p>This time it will be successfully added to Queue without giving any error message. To check whether the Case record is successfully added to Queue or not you can refresh the timeline and it will show the Post Message on timeline that the record was added into the Queue.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30621\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/11OmniChannel-ink-2.jpeg\" alt=\"OmniChannel\" width=\"361\" height=\"321\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/11OmniChannel-ink-2.jpeg 361w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/11OmniChannel-ink-2-300x267.jpeg 300w\" sizes=\"(max-width: 361px) 100vw, 361px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>If OmniChannel Apps is installed in CRM environment, then while adding the entity records into the queue, ensure to set the Queue Type of the Queue to \u201cEntity\u201d.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/user-adoption-monitor-in-dynamics-crm\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone  wp-image-30632\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1.jpg\" alt=\"\" width=\"860\" height=\"215\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/02\/1-660x165.jpg 660w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: While working with case entity and queue entity in the Customer Service Hub app we encountered an issue which states that we can only route to Entity type queue. After investigating, we found that this issue arises due to OmniChannel Apps installed in Dynamics 365 CRM environment. What is the issue? We created a\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2022\/02\/error-occured-system-exception-can-not-create-the-routing-rule-item-as-selected-queue-is-not-of-entity-type-solved\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,18,38,2361],"tags":[2557],"class_list":["post-30594","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-dynamics-365-v9-2","category-microsoft-powerapps","category-technical","tag-omnichannel-apps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/30594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=30594"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/30594\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=30594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=30594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=30594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}