Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Plugin exception - ActivityFeeds Configuration is invalid

(0) ShareShare
ReportReport
Posted on by 899

Hello,


In a custom entity, I have business rules to show/hide fields based on an option set value..

IF
Timesheet Type does not contain data
THEN
Hide field Customer Name
Hide field Project Name
Clear Customer Name
Clear Project Name
ELSE IF
Timesheet Type equals "Project"
THEN
Hide field Customer Name
Clear Customer Name
Show field Project Name
Set Project Name as Business Required
ELSE
Hide field Project Name
Clear Project Name
Show field Customer Name
Set Customer Name as Business Required

In the same entity, I have a custom plugin that fires onCreate of a record and replicates the data to a separate table.

During plugin execution, I am getting the following strange error:

pastedimage1674750949242v1.png

If I turn off the business rules the plugin executes successfully without throwing the error.

As long as the business rules are turned on under this entity, it keeps on failing.

Any idea what logic is missing for the plugin to handle this exception? Could you please which line should i amend changes to make it work?

Any help is greatly appreciated.

Best regards,
EBMRay

  • EBMRay Profile Picture
    899 on at
    RE: Plugin exception - ActivityFeeds Configuration is invalid

    Hello Pradeep Rai ,

    As mentioned, I changed the rule scope, but now it appears the problem is within the plugin as during our debugging we noticed that we have a function returning null, and we will handle it with the appropriate condition.

    Best regards,

    EBMRay

  • Suggested answer
    Pradeep Rai Profile Picture
    5,487 Super User 2025 Season 1 on at
    RE: Plugin exception - ActivityFeeds Configuration is invalid

    Business Rules contains 3 scope:

    • All Forms: When we set all forms then business rule  will applied to all forms of entity. Given condition field should be there on form.
    • Selected Form: In Scope dropdown, you will find list of all Main Form and you can select any one of them. As a result it will be applied to specific form only.
    • EntityIn this case, it will runs on server side logic such as plugin and will effect server logic based on defined in business rule.
  • Shelly Thomas Profile Picture
    25 on at
    RE: Plugin exception - ActivityFeeds Configuration is invalid

    I really doesn't know about it, thanks for clearing my doubts

  • Verified answer
    Pradeep Rai Profile Picture
    5,487 Super User 2025 Season 1 on at
    RE: Plugin exception - ActivityFeeds Configuration is invalid

    Hi,

    You can change the business rule scope to All Forms or To Specific Form.

    It seems that your business rule scope set to Entity because of which it is effecting the plugin logic.


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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Product updates

Dynamics 365 release plans