Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error while assigning Case to Team

Posted on by 475

Hello,

After Creating Case iam trying to assign Case to Team in Plugin. But when i create case iam getting following error.

There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.

Please suggest how to fix

Entity Case = new Entity("incident");

EntityReference owner = new EntityReference();
CaseID = new Guid(entity.Attributes["incidentid"].ToString());

Entity Caserecord = getRecordData(orgService, CaseID);

OwnerID = ((EntityReference)((AliasedValue)(Caserecord.Attributes["area.new_team"])).Value).Id;

Case["ownerid"] = new EntityReference("team", OwnerID);
Case["incidentid"] = entity["incidentid"];


AssignRequest assign = new AssignRequest
{
Assignee = new EntityReference("team",
OwnerID),
Target = new EntityReference("incident",
CaseID)
};


// Execute the Request
orgService.Execute(assign);

*This post is locked for comments

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Error while assigning Case to Team

    Hi krishna,

    This issue may come when you have more than one plugin registered with the same message. If one of them failed you will receive this error message. To resolve this issue disabled other plugin and test one by one. So please  check if you have any other plugin registered on the same message if so disable it and test it.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Error while assigning Case to Team

    Hi Krishna,

    What error are you getting?

    Also, please share the getRecordData function.

    Thanks,

    Aric

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans