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 :
Microsoft Dynamics CRM (Archived)

Business Rule - Show Error Message never disappears

(0) ShareShare
ReportReport
Posted on by

Hi there,

I have a new problem with business rules in Dynamics 365 Version 1612 (8.2.0.749).

Since we did update to the latest version some realy basic business rules create stange problems, which weren't there before.

What we do is this:

We have a business rule which checks if a "date" field has a value, and if it is less then another date field (datefield2):

If this is the case -> Show Error Message onto the field.

This works fine so far.

BUT: The error message never disappears if the value is set to an empty value, or value greater then the other field, though the businessrule should remove the error message...

I tried two things which had a interessting result:

1. I entered some false values ('abc' or '999') into my date field - which causes the default validation of the date field to show an field error ("no valid date" - or something like that), if I enter a valid date, which is greater than the datefield2 after this, no more error message is shown.

2. If I change my business rule and show an error message in the "else - path" in my business rule (where usually there should be none) this one is "shown" for correct values, which means, that the "query" is correct...

Did Microsoft deployed some errors in this latest Version? In Javascript the function "ClearNotifications()" doesn't seem to work anymore aswell.

*This post is locked for comments

I have the same question (0)
  • TheMarkChristie Profile Picture
    10,328 Moderator on at

    Hi Eric

    In this situation can you not add in

    If Field A Containts Data

    and Field B Containts Data

    and Field A<Field B

    Show Error Message?

    Before-Error.png

    Before-Error.png

    0243.Error.png

  • Community Member Profile Picture
    on at

    Hi Mark,

    thank you much for you response and the effort in checking! Well the second date (in your example called "date") is a required field in our scenario, so we do not check for it in particular.

    Nether the less, I did add the checking to to second field - doesn't effect the problem.

    If you change in the scenario of your image, the "Date Booked Tickets" to a valid value like "01/01/2016" (after it shows an error like in the image) - will there be still an error shown at the "Date Booked Tickets" field? This is what happens at our system, which is the problem we have.

    I did take a look at  https://www.microsoft.com/en-US/Dynamics/crm-customer-center/create-business-rules-and-recommendations-to-apply-logic-in-a-form.aspx: There they write this - which is not working anymore...:

    "Show error message

    Use this action to set an error message on a field if the data within it is not valid. The text you specify for the message will be displayed with an error icon near the field.

    The record cannot be saved as long as this message is displayed. After the data in the field has been corrected according to the conditions set in your rule, the message will disappear and the record can be saved."

    ...

    The Show error message action is different because it automatically evaluates any conditions used to set the error message and will remove it if the conditions are no longer true.

  • Suggested answer
    TheMarkChristie Profile Picture
    10,328 Moderator on at

    Hi

    Seems to work ok, I would raise this as a case with Microsoft

    2017_2D00_02_2D00_22-10_5F00_00_5F00_01.png

  • Community Member Profile Picture
    on at

    Hi Mark,

    are you on the latest update? Because I am quite sure this was working for us aswell before we updated to 8.2.0.749 two weeks ago. If you are not on latest update I think this really might be a bug and I'll report this to Microsoft.

    Best Regards,

    Eric

  • Community Member Profile Picture
    on at

    Hi,

    I tryed the same with an empty organization. It works with a clean one without any problems. So this should be an problem with our solution(s) - does someone have an idea what could affect this?

  • Rob Driessen Profile Picture
    20 on at

    Hi Eric,

    we're experiencing the same problem right now, because it's almost a year ago that you posted this, could you please tell me what the staus is right now ?

    Is it solved in one or another way ?

  • alelot Profile Picture
    22 on at

    Hi Eric,

    we're the same problem right now. Is it solved in one or another way?

    Best Regards

    alelot

  • alelot Profile Picture
    22 on at

    Hi Eric,

    we're the same problem right now. Is it solved in one or another way?

    Best Regards

    alelot

  • alelot Profile Picture
    22 on at

    Hi Eric,

    we're the same problem right now. Is it solved in one or another way?

    Best Regards

    alelot

  • alelot Profile Picture
    22 on at

    Hi Eric,

    we're the same problem right now. Is it solved in one or another way?

    Best Regards

    alelot

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans