Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error While Triggering Plugin

Posted on by

Hi Guys,

I have a custom entity and i write one plugin. the plugin is trigger while save the record that plugin do set value in read only field..but while save the record the error is occur.The error is : 

Record Is Unavailable

The requested record was not found or you do not have sufficient permissions to view it..

I Clear the Cache,Browsing history all those things but after cleared same error is occur i don't know why the error is occur please help..

Thank You

Dinesh Raja

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Error While Triggering Plugin

    Are you saying the plugin is setting the value but you are still getting the error message? If yes then it is not your plugin throwing the error, it must be some other component, may be another plugin, workflow or business rule (entity level).

    Hope this helps

  • Verified answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: Error While Triggering Plugin

    Hi you must share with us what's your plugin business logic.

    But in generally, Record is unavailable happen because of you have pre-validation/pre-operation plugin and you do use service.Update, service.Delete before the data is created. Just try to move this logic into post-operation and it should be fine.

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Error While Triggering Plugin

    Hi..

    Looks like either you are triggering plugin before save or your are trying to update which is not exists or not created.

    I think it will be better if you give more details.. like on which event plugin is registered, and post plugin code.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Error While Triggering Plugin

    Hi DineshRaja,

    This problem can sometimes be solved by clearing the cache on your internet browser.

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