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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer Service forum

Unable to save changes to Contact records

(0) ShareShare
ReportReport
Posted on by 32

This morning, all users in my organization are unable to save changes to existing Contact records. Attempting to save the record results in an 'Unexpected Error' message.

Unusually, we are able to create a new Contact, but saving changes after initial creation results in the same error. We haven't discovered any other entities that are affected; solely existing Contact records.

We've tried different browsers (Chrome, Firefox, Edge) and cleared caches, so are ruling out browser/javascript issues. There have been no recent changes to the entity itself or to security roles and permissions, so a bit stumped at the moment.

Categories:
  • _jmk_ Profile Picture
    32 on at

    P.S. In the Unified Interface, we get a different error message for "Insufficient Permissions"

    "You do not have {0} permission to access {1} records. Contact your Microsoft Dynamics 365 administrator for help."

  • LeoAlt Profile Picture
    16,341 Moderator on at

    Hi partner,

    According to your description, please check the following points:

    1.Do you have any custom js code in contact form?

    2.Do you have the write permission to contact entity?

    Please share more information like screen shot or error log so that we could help you better.

     Here is also a similar post for you to refer to.

    Best Regards,

    Leo

  • _jmk_ Profile Picture
    32 on at

    We do have one piece of custom code msdyn_talkingpointsloader.js which definitely isn't a new addition and as far as I'm aware is not actually being used.

    All users have write permission for the entity and I also have sys admin privileges.

    Error details log:

    Unhandled exception: 
    Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
    Message: System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: lengthDetail: 
    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
      <ActivityId>69747dd1-7507-4dd7-bbe4-3346647befe2</ActivityId>
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
      <Message>System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length</Message>
      <Timestamp>2019-04-17T08:57:50.4112939Z</Timestamp>
      <ExceptionRetriable>false</ExceptionRetriable>
      <ExceptionSource i:nil="true" />
      <InnerFault i:nil="true" />
      <OriginalException i:nil="true" />
      <TraceText i:nil="true" />
    </OrganizationServiceFault>

    There is also a 403 error message for the PATCH action in the browser console.

  • Srujan K Profile Picture
    317 on at

    Are you using any method in Javascript that using substring method ?  Or any method that expects a length parameter ? There could some bad data in the record that is breaking your script. Did you try disabling all the Javascripts on the form and try to open the record?

  • Verified answer
    _jmk_ Profile Picture
    32 on at

    Problem solved.  

    A workflow existed that updated a custom field on the contact record when the record was updated.

    The owner of the workflow had had their account disabled and so caused the error in trying to save the change in the custom field. Changing ownership of the workflow solved the problem.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans