Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error when saving a record

Posted on by 75

Multiple online customers are reporting that there is an unhandled exception when saving a record. Has anyone here come across that problem? It is maybe related with security roles and all this is happening because of some hotfix that Microsoft has provided to us.

 

*This post is locked for comments

  • Verified answer
    J-PL Profile Picture
    J-PL 75 on at
    RE: Error when saving a record

    Hi, Thanks for your answers.

    The reason for the error message was that there was a sub-grid that showed details of an entity where the user did not have any rights. We deleted the sub-grid from the form and it resolved the problem.

    It is still strange that the error message came up after the V9.1.0.1847 update. Everything have worked fine before that.

  • Suggested answer
    Jharana Baliyar Singh Profile Picture
    Jharana Baliyar Singh 2,665 on at
    RE: Error when saving a record

    Hi,

    Please follow the below url :

    community.dynamics.com/.../120553

    community.dynamics.com/.../188226

    Might be something is wrong from your code side Just check with your plugin or javascript for which you are getting the error message with <Message>System.IndexOutOfRangeException: Index was outside the bounds of the array.

    Thanks,

    Jharana

  • Suggested answer
    shivaram Profile Picture
    shivaram 3,315 on at
    RE: Error when saving a record

    Hi,

    I opened above link and it is showing *IndexOutOfRangeException* if you also facing this issue, then it is because of your custom code. For example, if you are retrieving any records and without checking about Entity collection length and trying to perform some action then it will throw this error. Check your custom code. Hope it helps.

    Thanks,

    Shivaram

  • J-PL Profile Picture
    J-PL 75 on at
    RE: Error when saving a record

    Yes we have made a premier ticket yesterday but no contact yet. I guess they are busy...

  • Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Error when saving a record

    Hi,

    did you contact Microsoft support? I would encourage you to contact Microsoft support.

  • J-PL Profile Picture
    J-PL 75 on at
    RE: Error when saving a record

    Any news on this issue? Anybody?

  • J-PL Profile Picture
    J-PL 75 on at
    RE: Error when saving a record

    Thank you for your answer but deleting the browser cache did not help the issue.

    br,J-P

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Error when saving a record

    Hi

    It looks like a caching issues caused by possibly a Service Update.

    Could you clear your browser cache,  restart your machine and try on different browsers and see if that fixes the issue.

    Hope this helps

  • J-PL Profile Picture
    J-PL 75 on at
    RE: Error when saving a record

    Hello! There is another post of the same problem. There is a log file: community.dynamics.com/.../309313

  • Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Error when saving a record

    Could you download the log file and share the details here please?

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