Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Custom MS Flow trigger suddenly stopped working

(0) ShareShare
ReportReport
Posted on by 327

Hello,

MS Flow suddenly stoped working from 10th April, 2021.

Filtering condition : contains(tolower('subject'),'add') - IGNORE

Original row filter :

contains(tolower(subject),'add') and not(contains(tolower(subject),'address'))

We are checking that email subject contains Add keyword.

Error:

Exception parsing contains(tolower('subject'),'add') submitted for attribute filterexpression of callback registration. Target entity: email. Exception: System.InvalidOperationException: AttributeTypeCode not valid:PartyList
at Microsoft.Crm.ObjectModel.CallbackRegistrationTypeMapFactory.Get(AttributeMetadata attributeMetadata, EntityMetadata entityMetadata)
at Microsoft.Xrm.Sdk.Data.CodeGen.ClassTypeFactory.BuildType(String logicalName, IDictionary`2 entityMetadata, IDictionary`2 types, Boolean includeNonVirtualLogicalAttributes)
at Microsoft.Xrm.Sdk.Data.CodeGen.ClassTypeFactory.Create(IEnumerable`1 entityMetadata, Boolean includeNonVirtualLogicalAttributes)
at Microsoft.Crm.ObjectModel.EdmModelBuilder.BuildClrType()
at Microsoft.Crm.ObjectModel.EdmModelBuilder..ctor(EntityMetadata xrmMetadata, IOrganizationContext context, ILogger logger)
at Microsoft.Crm.ObjectModel.CallbackRegistrationEdmModelCacheItem.GetOrBuildEdmModel(Lazy`1 lazyXrmMetadata, String entitySetName, IOrganizationContext context, ILogger logger)
at Microsoft.Crm.ObjectModel.EdmModelEvaluator..ctor(IOrganizationContext context, Lazy`1 xrmMetadata, Entity entityData, String entitySetName)
at Microsoft.Crm.ObjectModel.CallbackRegistrationService.<>c__DisplayClass33_1.<ValidateInputEntity>b__1()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Microsoft.Crm.ObjectModel.CallbackRegistrationService.ValidateInputEntity(IBusinessEntity entity, ExecutionContext context, IFeatureDetailContainer featureDetailContainer)

pastedimage1618215073365v1.png

Anyone facing this issue?

  • Suggested answer
    Pradip Raj Profile Picture
    327 on at
    RE: Custom MS Flow trigger suddenly stopped working

    Hi,

    Issue:

    Microsoft Product Group team have determined that the issue was callback registration was not occurring at the customer's end, likely due to them being created with an unsupported attribute type of Party List.

    This was a known issue from our end and we are truly sorry for the inconvenience to you and your business.

    ​This seems to have been caused by an issue with FCB in CDS/CRM.

    Now it's working again after some fix from Microsoft. But still some flows are not working so I have turn off and turn on it again to fix the issue. But client's business affected due to this cause because there are some emails which were not converted to case. Still there is no workaround to create cases from old emails.

  • LuHao Profile Picture
    40,888 on at
    RE: Custom MS Flow trigger suddenly stopped working

    First we can use compose to check the output of Subject field.

    pastedimage1618222244580v1.png

  • LuHao Profile Picture
    40,888 on at
    RE: Custom MS Flow trigger suddenly stopped working

    Hi Pradip,

    I was unable to reproduce it in my environment.

    You can refer to this thread which is the same issue.

    powerusers.microsoft.com/.../506304

    And you can try this solution.

    community.dynamics.com/.../build-efficient-flows-using-filter-expression-in-cds-current-environment-trigger

  • Pradip Raj Profile Picture
    327 on at
    RE: Custom MS Flow trigger suddenly stopped working

    Hi Lu Hao,

    Thank you for the suggestion. I have tried your suggestion but still it's not working.

    Error :

    Exception parsing contains(tolower(subject),'add') and not contains(tolower(subject),'address') submitted for attribute filterexpression of callback registration. Target entity: email. Exception: System.InvalidOperationException: AttributeTypeCode not valid:PartyList

      at Microsoft.Crm.ObjectModel.CallbackRegistrationTypeMapFactory.Get(AttributeMetadata attributeMetadata, EntityMetadata entityMetadata)

      at Microsoft.Xrm.Sdk.Data.CodeGen.ClassTypeFactory.BuildType(String logicalName, IDictionary`2 entityMetadata, IDictionary`2 types, Boolean includeNonVirtualLogicalAttributes)

      at Microsoft.Xrm.Sdk.Data.CodeGen.ClassTypeFactory.Create(IEnumerable`1 entityMetadata, Boolean includeNonVirtualLogicalAttributes)

      at Microsoft.Crm.ObjectModel.EdmModelBuilder.BuildClrType()

      at Microsoft.Crm.ObjectModel.EdmModelBuilder..ctor(EntityMetadata xrmMetadata, IOrganizationContext context, ILogger logger)

      at Microsoft.Crm.ObjectModel.CallbackRegistrationEdmModelCacheItem.GetOrBuildEdmModel(Lazy`1 lazyXrmMetadata, String entitySetName, IOrganizationContext context, ILogger logger)

      at Microsoft.Crm.ObjectModel.EdmModelEvaluator..ctor(IOrganizationContext context, Lazy`1 xrmMetadata, Entity entityData, String entitySetName)

      at Microsoft.Crm.ObjectModel.CallbackRegistrationService.<>c__DisplayClass33_1.<ValidateInputEntity>b__1()

      at System.Lazy`1.CreateValue()

      at System.Lazy`1.LazyInitValue()

      at Microsoft.Crm.ObjectModel.CallbackRegistrationService.ValidateInputEntity(IBusinessEntity entity, ExecutionContext context, IFeatureDetailContainer featureDetailContainer)

    I don't think there is an issue with the syntax. There is something else was changed from Microsoft so that now this flow stopped working.

  • Suggested answer
    LuHao Profile Picture
    40,888 on at
    RE: Custom MS Flow trigger suddenly stopped working

    Hi Pradip,

    Plesee change it to contains(tolower(subject),'add') and not contains(tolower(subject),'address')

    not contains does not require parentheses.

    pastedimage1618219257940v1.png

  • Pradip Raj Profile Picture
    327 on at
    RE: Custom MS Flow trigger suddenly stopped working

    Yes, we can do this but I don't want to trigger the flows unnecessarily so that added row filter.

    Thanks

    Pradip

  • Pradip Raj Profile Picture
    327 on at
    RE: Custom MS Flow trigger suddenly stopped working

    HI Lu Hao,

    Thank you for your quick response. That was my bad.

    I have corrected my post. My filter was same as you mentioned here but It was working fine previously. Suddenly stopped working these flows.

    Thanks

    Pradip

  • Suggested answer
    LuHao Profile Picture
    40,888 on at
    RE: Custom MS Flow trigger suddenly stopped working

    In addition, you can use condition as the filter.

    pastedimage1618218662574v1.png

  • Suggested answer
    LuHao Profile Picture
    40,888 on at
    RE: Custom MS Flow trigger suddenly stopped working

    Hi Pradip,

    It should be contains(tolower(subject),'add')

    Quotation marks are not needed inside tolower().

    pastedimage1618218283531v2.png

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 181 Super User 2025 Season 1

#2
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 124 Super User 2025 Season 1

Product updates

Dynamics 365 release plans