locked
Unsaved changes error RRS feed

  • Question

  • Hi,

    I have an entity named as service request and i created some records. If i open any of the record it is showing message unsaved changes bottom of the right side. I have checked in my JavaScript code there is no IsDirty field.

    Please tell me the solution.

    Thanks in advance.

    Tuesday, May 16, 2017 12:24 PM

All replies

  • Hi Venkata,

    Do you have any script registered on load event of the form. Usually this problem happens when a script sets a field value on load of the form.


    Sachith Chandrasiri

    Tuesday, May 16, 2017 11:04 PM
  • Disable all your Javascript and Business rule from your form then check. 

    Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Wednesday, May 17, 2017 6:08 AM
  • First you can check the field by putting the code and calling it on save event:-

    function checkFieldOnSave() {
        var attributes = Xrm.Page.data.entity.attributes.get();
        for (var i in attributes) {
            var attribute = attributes[i];
            if (attribute.getIsDirty())
                alert("attribute dirty: " + attribute.getName());
        }
    }

    Then you can resolve the issue. If you are still unable to resolve then put this code and call it from on save event:-

    function onSave() {
        Xrm.Page.data.entity.save();
    }


    Regards Faisal

    Wednesday, May 17, 2017 8:24 AM