web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

queue item can not be activated

(1) ShareShare
ReportReport
Posted on by 423

I have a workflow to change the state of a queue item back to the state active. But when I start it I get this error:

"The queued entity instance does not allow associated queue item to be activated in its current state. "

Here are the details:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3059A08CDetail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>6f29dc99-284e-4655-b1e3-740f481953ae</ActivityId>
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3059A08C</Message>
  <Timestamp>2018-06-11T13:33:44.4843349Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault>
    <ActivityId>6f29dc99-284e-4655-b1e3-740f481953ae</ActivityId>
    <ErrorCode>-2147220891</ErrorCode>
    <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>The queued entity instance does not allow associated queue item to be activated in its current state.</Message>
    <Timestamp>2018-06-11T13:33:44.4843349Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault i:nil="true" />
    <OriginalException i:nil="true" />
    <TraceText>

[Microsoft.Crm.ObjectModel: Microsoft.Crm.Extensibility.InternalOperationPlugin]
[46f6cf4c-14ae-4f1e-98a1-eae99a37e95c: ExecuteWorkflowWithInputArguments]
Sync workflow 'Queueitem to active' terminated with error 'The queued entity instance does not allow associated queue item to be activated in its current state.'

</TraceText>
  </InnerFault>
  <OriginalException i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

What does this mean? How can I activate that item?

*This post is locked for comments

I have the same question (0)
  • bernhards Profile Picture
    423 on at

    This error message "The queued entity instance does not allow associated queue item to be activated in its current state. Wenn Sie den Support kontaktieren, geben Sie die technischen Details an." will appeare, if on a state change of a queue element (inactive -> active)

    It is also related to a problem that internal emails are not showing up in the queue.

    Maybe there is a plugin causing this. I will update if I find the cause.

  • bernhards Profile Picture
    423 on at

    It seems like it is not possible to change a state on a queue item. That means I had to do some workaround:

  • Suggested answer
    bernhards Profile Picture
    423 on at

    It seems like it is not possible to change a state on a queue item. That means I had to do some workaround:

    QueryExpression QEqueueitem = new QueryExpression("queueitem");

    QEqueueitem.NoLock = true;

    QEqueueitem.ColumnSet.AllColumns = false;

    QEqueueitem.Criteria.AddCondition("objectid", ConditionOperator.Equal, emailId);

    QEqueueitem.Criteria.AddCondition("queueid", ConditionOperator.Equal, supportQueueId); // It can be that it is also added to the a1 digital queue.

    EntityCollection queueItems = service.RetrieveMultiple(QEqueueitem);

    foreach(Entity queueItem in queueItems.Entities)

    {

          service.Delete(queueItem.LogicalName, queueItem.Id);

    }

    AddToQueueRequest addToQueueRequest = new AddToQueueRequest();

    addToQueueRequest.Target = email.ToEntityReference();

    addToQueueRequest.DestinationQueueId = supportQueueId;

    AddToQueueResponse addToQueueResponse = (AddToQueueResponse)service.Execute(addToQueueRequest);

    (The MS forum is also buggy and I could not give this answer correctly formated. Tried the browsers IE, Edge, Firefox, Opera and lastly Chrome.)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans