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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

UciError: Cannot save due to no dirty changes.

(0) ShareShare
ReportReport
Posted on by 60

Hello

I am trying to qualify a lead sometimes it works, but sometimes when I click qualify, the lead does not qualify, and when I look at the browser console I see the following message 

UciError: Cannot save due to no dirty changes.

Can someone help me understand what this mean? and how can I solve it?

Thanks 

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: UciError: Cannot save due to no dirty changes.

    Hi,

    I found a very useful post:

    Microsoft Dynamics CRM: How to check IsDirty Fields in MSCRM/Dataverse (microsoftcrmtechie.blogspot.com)

    It explains what Dirty is:

    OnLoad of Screen, sometimes we will get UNSAVED CHANGES, because we may Run some scripts in the OnLoad Operation so to find all the Changes happend in the Field we will use Dirty condition to achieve the same.

    And it gives a method to check whether the form or field is Dirty:

    // Check Form is Dirty
    
    function CheckFormIsDirty() {
    
        alert(Xrm.Page.data.entity.getDataXml());
    
    }
    
    
    
    // Get the Dirty Fields in Alert
    
    function CheckFormIsDirty() {
    
        attributes = Xrm.Page.data.entity.attributes.get();
    
        if (attributes != null) {
    
            for (var i in attributes) {
    
                if (attributes[i].getIsDirty()) {
    
                    // Display the name and value of the attribute that has changed
    
                    alert(attributes[i].getName());
    
                }
    
            }
    
        }
    
    
    }

    Hope it can be useful to you.

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Frank Gong

  • Community Member Profile Picture
    on at
    RE: UciError: Cannot save due to no dirty changes.

    Hi,

    Have you set Field Security for this field?

    Field-level security - Power Platform | Microsoft Docs

    If you set up Field Security, please try to disable it.

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Frank Gong

  • M.Barimah Profile Picture
    60 on at
    RE: UciError: Cannot save due to no dirty changes.

    There is javascript behind the qualify lead button, but is just doing validation on the field, without actually changing any values.

    Just to give context I am importing data into the lead entity trough power automate flow, then a user fills the remaining information's which are required and tries to qualify.

    When the user tries to qualify the javascript triggers and after validating it gets to this line of code Mscrm.LeadCommandActions.qualifyLeadQuick(); which should qualify the lead.

    Instead of qualifying the lead, the lead screen does not move, and if I open the console I can see the error message above.

    Yesterday I was doing some tests and one of the strange things I saw is that if I change one particular lookup field values which have been set by power automate to something else, save, then change back the value to what it was before, save and qualify, then the lead does qualify.

    I am not sure why that is the case, could a lookup field prevent the lead to qualify, if that is the case why?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: UciError: Cannot save due to no dirty changes.

    Hi,

    Is there any workflow or JavaScript working on it?

    For example, JavaScript that includes setSubmitMode:

    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/attributes/setsubmitmode

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Frank Gong

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 184

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 126 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans