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 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?

I have the same question (0)
  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi Pradip,

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

    Quotation marks are not needed inside tolower().

    pastedimage1618218283531v2.png

  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    In addition, you can use condition as the filter.

    pastedimage1618218662574v1.png

  • Pradip Raj Profile Picture
    327 on at

    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

  • Pradip Raj Profile Picture
    327 on at

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

    Thanks

    Pradip

  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    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

    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.

  • LuHao Profile Picture
    40,892 on at

    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

  • LuHao Profile Picture
    40,892 on at

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

    pastedimage1618222244580v1.png

  • Suggested answer
    Pradip Raj Profile Picture
    327 on at

    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.

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

#1
Martin Dráb Profile Picture

Martin Dráb 49 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans