<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error while getting next item from queue in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57733#M11693</link>
    <description>Hi at all,

I am getting a randomly error during&amp;nbsp;VBO 'Work Queues -&amp;gt; Get next item' using in my process:&amp;nbsp;ERROR: Internal : The EXECUTE permission was denied on the object 'usp_getnextcase', database '...', schema 'dbo'. Process has been started via 'Control Room'. Queue has been filled as well.

The message says that the permission was denied on the object but I cannot understand why it happen randomly. If I wait a couple of minutes and start the process again&amp;nbsp;it is working as expected. Item by item is being processed. If I would get the permission denied message every time then it would be clear. I am desperate.

I asked my DBA if she could see anything stange happen on the database but she could not see anything (verbose logging activated on database).

Has anyone ever had this problem or knows a solution or maybe can give me a hint?

Many thanks in advance.</description>
    <pubDate>Fri, 06 Jul 2018 13:11:00 GMT</pubDate>
    <dc:creator>DamianMastalerz</dc:creator>
    <dc:date>2018-07-06T13:11:00Z</dc:date>
    <item>
      <title>Error while getting next item from queue</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57733#M11693</link>
      <description>Hi at all,

I am getting a randomly error during&amp;nbsp;VBO 'Work Queues -&amp;gt; Get next item' using in my process:&amp;nbsp;ERROR: Internal : The EXECUTE permission was denied on the object 'usp_getnextcase', database '...', schema 'dbo'. Process has been started via 'Control Room'. Queue has been filled as well.

The message says that the permission was denied on the object but I cannot understand why it happen randomly. If I wait a couple of minutes and start the process again&amp;nbsp;it is working as expected. Item by item is being processed. If I would get the permission denied message every time then it would be clear. I am desperate.

I asked my DBA if she could see anything stange happen on the database but she could not see anything (verbose logging activated on database).

Has anyone ever had this problem or knows a solution or maybe can give me a hint?

Many thanks in advance.</description>
      <pubDate>Fri, 06 Jul 2018 13:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57733#M11693</guid>
      <dc:creator>DamianMastalerz</dc:creator>
      <dc:date>2018-07-06T13:11:00Z</dc:date>
    </item>
    <item>
      <title>Is DB server coping with the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57734#M11694</link>
      <description>Is DB server coping with the size of the DB? Sometimes if a DB has grown so big that the server hosting it begins to struggle, you can get odd performance issues. Have you got a very high volume&amp;nbsp;of items (across all queues)?</description>
      <pubDate>Fri, 06 Jul 2018 13:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57734#M11694</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-07-06T13:43:00Z</dc:date>
    </item>
    <item>
      <title>First of all many thanks!
At…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57735#M11695</link>
      <description>First of all many thanks!
At the moment there is only one queue with round about 100 items in our test environment.
I will let check the size of the db but I guess it will be very low.</description>
      <pubDate>Fri, 06 Jul 2018 14:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57735#M11695</guid>
      <dc:creator>DamianMastalerz</dc:creator>
      <dc:date>2018-07-06T14:03:00Z</dc:date>
    </item>
    <item>
      <title>OK well it can't be the size…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57736#M11696</link>
      <description>OK well it can't be the size of the DB if you've just started out.&amp;nbsp;Perhaps then&amp;nbsp;the account being used to connect to SQL - does it have the necessary SQL permissions? But the intermittent thing is odd, if the permissions weren't right you'd expect it to fail every time.</description>
      <pubDate>Fri, 06 Jul 2018 22:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57736#M11696</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-07-06T22:26:00Z</dc:date>
    </item>
    <item>
      <title>Screenshot 2</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57737#M11697</link>
      <description>Screenshot 2</description>
      <pubDate>Mon, 14 Jan 2019 13:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57737#M11697</guid>
      <dc:creator>PankajPuranik</dc:creator>
      <dc:date>2019-01-14T13:08:00Z</dc:date>
    </item>
    <item>
      <title>We had this exact issue…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57738#M11698</link>
      <description>We had this exact issue however it was not intermittent.
The issue happened because the schema of the stored procedure was not dbo.
So even though the stored procedure was present, we got the following error.
[2019-01-12 06:51:36Z] Session (ID: 63723179-a8e1-41db-a35d-dbc7c71a33a3) terminated. Process Name: BTL Process; Reason: Internal : Could not find stored procedure 'usp_getnextcase'.
When we looked into the database we saw that the schema for some of the stored procedures was not set as dbo as can be seen below.
See screenshot 1
We then did an ALTER SCHEMA to change it to dbo and that fixed the issue.
See screenshot 2</description>
      <pubDate>Mon, 14 Jan 2019 13:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57738#M11698</guid>
      <dc:creator>PankajPuranik</dc:creator>
      <dc:date>2019-01-14T13:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Error while getting next item from queue</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57739#M11699</link>
      <description>&lt;SPAN&gt;&lt;SPAN&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;The EXECUTE permission was denied on the object 'usp_getnextcase', database '...', schema 'dbo' realted user has not permission to run "usp_getnextcase" stored procedure in '...' database. If you are database admin then you need to give permission to the user performing the execution like below.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;use [...]&lt;BR /&gt;GO&lt;BR /&gt;GRANT EXECUTE ON [dbo].[&lt;SPAN&gt;usp_getnextcase&lt;/SPAN&gt;] TO [UserYY]&lt;/P&gt;
&lt;P&gt;You can customize the above query by changing the use [...] and [UserYY] as you need.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The database administrators recommend other solution to create a new database role like db_executor. This is explained on the following &lt;A href="https://www.get-itsolutions.com/the-execute-permission-was-denied-on-the-object/" target="_blank" rel="noopener"&gt;blog source&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thnx&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Enco Trio&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Sep 2020 13:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Error-while-getting-next-item-from-queue/m-p/57739#M11699</guid>
      <dc:creator>EncoTrio</dc:creator>
      <dc:date>2020-09-14T13:35:00Z</dc:date>
    </item>
  </channel>
</rss>

