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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

JS Error when saving - This form can't be saved due to a custom setting.

(0) ShareShare
ReportReport
Posted on by 1,067

Hi all,

When trying to perform a JS save in a custom entity, we are getting the following error:

"This form can't be saved due to a custom setting."

Here is the code on which i'm getting it:

formContext.data.refresh(true).then(
                function ()
                {                
                    console.log("Success");
                },
                function (error)
                {
                    console.log(error);
                }
);

As you guys can see, the actual code is very simple and straight forward, however, since I need to perform a refresh right after the async save is done, the errorcallback is frecuently getting this error. Probably the most interesting point is the fact that the error is not always consistent. The only document that I found that mentions this issue is a MS Document which explains that this could be related to some fixes that are being done, but not sure if this still on progress, here is the link: https://support.microsoft.com/en-us/help/4523125/service-update-94-for-microsoft-dynamics-365-9-1-0. Also, looks like this happens when updating any field, as even by changing just the name the error is appearing. Last but not least, all plugins for this message are disabled.

Is there anyworkaround to fix this problem?

Thanks in advance!

I have the same question (0)
  • Suggested answer
    Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    I think the best think you can try is put the code u do now in the on modifiedon_change. After the plugin finish saving, it will update all the data that changed from backend (including modifiedon).

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    I experience exactly the same issue. Were you able to resolve your issue? I can reproduce this issue only in UCI. Everything keeps working fine in Classic Client.

  • Suggested answer
    rthompson Profile Picture
    1,532 on at

    I worked with microsoft on this issue.

    Here's what I did to resolve the issue.

    community.dynamics.com/.../1021229

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans