Wednesday 7 October 2015

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

Hi guys,

Just a quick one.

Just now I receive this error from my triggered custom plugin:

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

And I believe that this often happen to the development.

Root Cause

Here is the root cause:
1. I have a custom plugin in the onCreate event.

2. Inside my custom plugin, I have Assign function

3. I try to put ‘try and catch’ just to avoid the error

4. Then it hits another error which is: “There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.”

5. So, I put a logger

6. And I have this error, instead:

image

Which this error is actually CRM System Error:
SecLib::CrmCheckPrivilege failed. Returned hr = -2147220943 on UserId: 01dc8c30-eb68-e511-80f2-00155dad0019 and PrivilegeType: Read
So, my conclusion:

Conclusion

1. My Team/User that I want to assign to does not have Any Security Role that having this Read privilege for the entity record object i want to assign to.

2. I try to skip the CRM Error by putting the try and catch just before the ‘Assign’ request

3. But, it fails to proceed, instead, CRM still insists to block this creation..

4. Because it is also right, you cannot do it anyway, CRM system plugin would still block and there is no way you skip the process that needs another rule to apply.

5. Eventhough i put this try catch and try to cancel the Assignment, I still receive the error:

image

What to Check

So, if you find this error, please check:

- Whether you have custom plugin/custom workflow active triggered
- Whether you put skipping the error that will have impact to the CRM process, it is not possible
- Actually you better to log the error
- Because you won’t know what it is
- This is not your logic wrong in your custom plugin
- This just you need to fix why CRM cannot proceed?
- Is that because your user/team does not have privilege or you missed some parameters required
- This error might happen like for Assignment, Lead Qualification, Quote creation, etc

Hope this helps.

19 comments:

  1. Thanks for sharing these helpful tips with us regarding CRM. I got a lot of knowledge from this article. Keep posting like this useful information.

    ReplyDelete
  2. Superb Aileen, Thanks for sharing this information..really helpful..

    ReplyDelete
  3. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.

    selenium Training in Chennai

    amazon web services Training in Chennai

    rpa Training in Chennai

    ReplyDelete
  4. Resources like the one you mentioned here will be very useful to me ! I will post a link to this page on my blog. I am sure my visitors will find that very useful
    java training in tambaram | java training in velachery

    java training in omr | oracle training in chennai

    java training in annanagar | java training in chennai

    ReplyDelete
  5. How To Stop Nuisance Phone Calls The last thing you need with all the other stresses and strains of life to be on the receiving is nuisance free business calls If you ever get this type of phone call then you will need to put a stop to it immediately. The more a sales person or prank caller gets away with it, the more they will do it.

    ReplyDelete
  6. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    python training in pune
    python online training
    python training in OMR

    ReplyDelete
  7. It was worth visiting your blog and I have bookmarked your blog. Hope to visit again
    Blueprism training in tambaram

    Blueprism training in annanagar

    Blueprism training in velachery

    ReplyDelete
  8. This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you.
    ONLINE CRM

    ReplyDelete
  9. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..

    devops online training

    aws online training

    data science with python online training

    data science online training

    rpa online training

    ReplyDelete
  10. Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries.
    Microsoft Azure online training
    Selenium online training
    Java online training
    Python online training
    uipath online training

    ReplyDelete
  11. Infycle Technologies, the Infycle Technologies, the No.1 software training institute in Chennai offers the Selenium course in Chennai for tech professionals, freshers, and students at the best offers. In addition to the Selenium, other in-demand courses such as Python, Big Data, Oracle, Java, Python, Power BI, Digital Marketing, Cyber Security also will be trained with hands-on practical classes. After the completion of training, the trainees will be sent for placement interviews in the top companies. Call 7504633633 to get more info and a free demo.

    ReplyDelete
  12. Hey you posted such a nice blog keep posting this type of blog regularly. I also have something very interesting for every online user check this out :- Digital Marketing Course in Delhi is a one-year course that covers the basics of digital marketing. This course will teach you how to create and manage a social media campaign, how to use SEO for your website, how to write and optimize content for search engines, and more. The course also includes a six-month internship opportunity with an organization of your choice in Delhi. The institute has a team of highly qualified and experienced professionals, who are dedicated to providing top-notch education, training and placement assistance Digital Marketing Course in Delhi.

    Digital Marketing Course in Delhi

    ReplyDelete
  13. The awesome blog is for Hadoop learners who want to become a part of the data science industry and become skilful professionals. Best Data Science Course Institute In Chennai

    ReplyDelete

My Name is..