Automation Engine activity type not retrieving custom facetAutomation Engine can't find custom predicateSitecore Contact expires using out of process session handlingContact Custom facet not appearing in ListManagerThe type of this instance does not correspond to any type in the modelCustom marketing automation activity does not work in Sitecore 9.0.1How to add Activity Type in Marketing Operation actions tab?Custom predicate: YourLinqIsTooStrongException in CreateContactSearchQuery functionExperience Profile custom facet retrieval errorAutomation Engine can't find custom predicateQuestions extending custom facet codeSitecore 9.0.2 Marketing Automation is not working

Generate ladder of integers using the least number of unique characters (in C++)

Is it wrong to omit object pronouns in these sentences?

Problem in downloading videos using youtube-dl from unsupported sites

Would life always name the light from their sun "white"

A case where Bishop for knight isn't a good trade

White foam around tubeless tires

Is 95% of what you read in the financial press “either wrong or irrelevant?”

How can I add a .pem private key fingerprint entry to known_hosts before connecting with ssh?

Automation Engine activity type not retrieving custom facet

Why is it harder to turn a motor/generator with shorted terminals?

What was the ring Varys took off?

Given 0s on Assignments with suspected and dismissed cheating?

How to cope with regret and shame about not fully utilizing opportunities during PhD?

How to make a not so good looking person more appealing?

"The van's really booking"

Extract the characters before last colon

Single word that parallels "Recent" when discussing the near future

Is it safe to use two single-pole breakers for a 240 V circuit?

Hiker's Cabin Mystery | Pt. VI

Is there an academic word that means "to split hairs over"?

Wireless headphones interfere with Wi-Fi signal on laptop

Holding rent money for my friend which amounts to over $10k?

Where to find every-day healthy food near Heathrow Airport?

Complicated arrows in flowcharts



Automation Engine activity type not retrieving custom facet


Automation Engine can't find custom predicateSitecore Contact expires using out of process session handlingContact Custom facet not appearing in ListManagerThe type of this instance does not correspond to any type in the modelCustom marketing automation activity does not work in Sitecore 9.0.1How to add Activity Type in Marketing Operation actions tab?Custom predicate: YourLinqIsTooStrongException in CreateContactSearchQuery functionExperience Profile custom facet retrieval errorAutomation Engine can't find custom predicateQuestions extending custom facet codeSitecore 9.0.2 Marketing Automation is not working













2















I have a custom activity type in Marketing Automation that is being processed correctly in the MA journey, however I am unable to retrieve a custom facet from the IContactProcessingContext in the Invoke() method.



The custom facet is configured in xConnect and, as far as I can tell, the relevant JSON models and DLLs are deployed. xConnect collects and stores the facet with no issues and I can see the custom facet data in an xConnect ODATA query.



On the Automation Engine I have:



  • Model DLL in automation root

  • Activity type DLL in automation root

  • Activity type registration XML in rootApp_DataConfigsitecoreMarketingAutomation

  • Collection Model registration XML in rootApp_DataConfigsitecore

Both of the XML files have the filename format sc.xxxx.xml as per here
The model registration XML is being picked up by the engine because I made a change and it errored on startup.



Sitecore version 9.1 initial release. Running local dev environment.



Model registration is as per below:



<Settings>
<Sitecore>
<XConnect>
<Services>
<XConnect.Client.Configuration>
<Options>
<Models>
<CustomModel>
<TypeName>Foo.Foundation.Models.xConnectModels.CollectionModel, Foo.Foundation.Models</TypeName>
</CustomModel>
</Models>
</Options>
</XConnect.Client.Configuration>
</Services>
</XConnect>
</Sitecore>
</Settings>


Facet retrieval in Activity Type:



string memberFacetKey = Foo.Foundation.Models.xConnectModels.MemberInfo.DefaultFacetKey;
string personalInfoFacetKey = PersonalInformation.DefaultFacetKey;

//Null result:
MemberInfo memberInfoFacet = context.Contact.GetFacet<MemberInfo>(memberFacetKey);

//Results returned:
PersonalInformation personalInfoFacet = context.Contact.GetFacet<PersonalInformation>(personalInfoFacetKey);


Any suggestions as to what I need to do in order to get the Automation Engine to find the custom facet ?










share|improve this question




























    2















    I have a custom activity type in Marketing Automation that is being processed correctly in the MA journey, however I am unable to retrieve a custom facet from the IContactProcessingContext in the Invoke() method.



    The custom facet is configured in xConnect and, as far as I can tell, the relevant JSON models and DLLs are deployed. xConnect collects and stores the facet with no issues and I can see the custom facet data in an xConnect ODATA query.



    On the Automation Engine I have:



    • Model DLL in automation root

    • Activity type DLL in automation root

    • Activity type registration XML in rootApp_DataConfigsitecoreMarketingAutomation

    • Collection Model registration XML in rootApp_DataConfigsitecore

    Both of the XML files have the filename format sc.xxxx.xml as per here
    The model registration XML is being picked up by the engine because I made a change and it errored on startup.



    Sitecore version 9.1 initial release. Running local dev environment.



    Model registration is as per below:



    <Settings>
    <Sitecore>
    <XConnect>
    <Services>
    <XConnect.Client.Configuration>
    <Options>
    <Models>
    <CustomModel>
    <TypeName>Foo.Foundation.Models.xConnectModels.CollectionModel, Foo.Foundation.Models</TypeName>
    </CustomModel>
    </Models>
    </Options>
    </XConnect.Client.Configuration>
    </Services>
    </XConnect>
    </Sitecore>
    </Settings>


    Facet retrieval in Activity Type:



    string memberFacetKey = Foo.Foundation.Models.xConnectModels.MemberInfo.DefaultFacetKey;
    string personalInfoFacetKey = PersonalInformation.DefaultFacetKey;

    //Null result:
    MemberInfo memberInfoFacet = context.Contact.GetFacet<MemberInfo>(memberFacetKey);

    //Results returned:
    PersonalInformation personalInfoFacet = context.Contact.GetFacet<PersonalInformation>(personalInfoFacetKey);


    Any suggestions as to what I need to do in order to get the Automation Engine to find the custom facet ?










    share|improve this question


























      2












      2








      2








      I have a custom activity type in Marketing Automation that is being processed correctly in the MA journey, however I am unable to retrieve a custom facet from the IContactProcessingContext in the Invoke() method.



      The custom facet is configured in xConnect and, as far as I can tell, the relevant JSON models and DLLs are deployed. xConnect collects and stores the facet with no issues and I can see the custom facet data in an xConnect ODATA query.



      On the Automation Engine I have:



      • Model DLL in automation root

      • Activity type DLL in automation root

      • Activity type registration XML in rootApp_DataConfigsitecoreMarketingAutomation

      • Collection Model registration XML in rootApp_DataConfigsitecore

      Both of the XML files have the filename format sc.xxxx.xml as per here
      The model registration XML is being picked up by the engine because I made a change and it errored on startup.



      Sitecore version 9.1 initial release. Running local dev environment.



      Model registration is as per below:



      <Settings>
      <Sitecore>
      <XConnect>
      <Services>
      <XConnect.Client.Configuration>
      <Options>
      <Models>
      <CustomModel>
      <TypeName>Foo.Foundation.Models.xConnectModels.CollectionModel, Foo.Foundation.Models</TypeName>
      </CustomModel>
      </Models>
      </Options>
      </XConnect.Client.Configuration>
      </Services>
      </XConnect>
      </Sitecore>
      </Settings>


      Facet retrieval in Activity Type:



      string memberFacetKey = Foo.Foundation.Models.xConnectModels.MemberInfo.DefaultFacetKey;
      string personalInfoFacetKey = PersonalInformation.DefaultFacetKey;

      //Null result:
      MemberInfo memberInfoFacet = context.Contact.GetFacet<MemberInfo>(memberFacetKey);

      //Results returned:
      PersonalInformation personalInfoFacet = context.Contact.GetFacet<PersonalInformation>(personalInfoFacetKey);


      Any suggestions as to what I need to do in order to get the Automation Engine to find the custom facet ?










      share|improve this question
















      I have a custom activity type in Marketing Automation that is being processed correctly in the MA journey, however I am unable to retrieve a custom facet from the IContactProcessingContext in the Invoke() method.



      The custom facet is configured in xConnect and, as far as I can tell, the relevant JSON models and DLLs are deployed. xConnect collects and stores the facet with no issues and I can see the custom facet data in an xConnect ODATA query.



      On the Automation Engine I have:



      • Model DLL in automation root

      • Activity type DLL in automation root

      • Activity type registration XML in rootApp_DataConfigsitecoreMarketingAutomation

      • Collection Model registration XML in rootApp_DataConfigsitecore

      Both of the XML files have the filename format sc.xxxx.xml as per here
      The model registration XML is being picked up by the engine because I made a change and it errored on startup.



      Sitecore version 9.1 initial release. Running local dev environment.



      Model registration is as per below:



      <Settings>
      <Sitecore>
      <XConnect>
      <Services>
      <XConnect.Client.Configuration>
      <Options>
      <Models>
      <CustomModel>
      <TypeName>Foo.Foundation.Models.xConnectModels.CollectionModel, Foo.Foundation.Models</TypeName>
      </CustomModel>
      </Models>
      </Options>
      </XConnect.Client.Configuration>
      </Services>
      </XConnect>
      </Sitecore>
      </Settings>


      Facet retrieval in Activity Type:



      string memberFacetKey = Foo.Foundation.Models.xConnectModels.MemberInfo.DefaultFacetKey;
      string personalInfoFacetKey = PersonalInformation.DefaultFacetKey;

      //Null result:
      MemberInfo memberInfoFacet = context.Contact.GetFacet<MemberInfo>(memberFacetKey);

      //Results returned:
      PersonalInformation personalInfoFacet = context.Contact.GetFacet<PersonalInformation>(personalInfoFacetKey);


      Any suggestions as to what I need to do in order to get the Automation Engine to find the custom facet ?







      contact-facets marketing-automation






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 hours ago







      andyp

















      asked 5 hours ago









      andypandyp

      1867




      1867




















          1 Answer
          1






          active

          oldest

          votes


















          2














          The Marketing Automation engine requires you to define custom facets that will be available when the contact is evaluated. You will need to patch in your custom facet to the IncludeFacetNames section of the sc.MarketingAutomation.ContactLoader.xml config



          You would need to add the MemberInfo facet to the IncludeFacetNames. You could create a patch file sc.(patch name).xml and it would look something like this:



           <Settings>
          <!--
          Marketing Automation contact loader configuration
          -->
          <Sitecore>
          <XConnect>
          <MarketingAutomation>
          <Engine>
          <Services>
          <MarketingAutomation.Loading.ContactFacetsConfigurator>
          <Options>
          <IncludeFacetNames>
          <MemberInfo>MemberInfo</MemberInfo>
          </IncludeFacetNames>
          </Options>
          </MarketingAutomation.Loading.ContactFacetsConfigurator>
          </Services>
          </Engine>
          </MarketingAutomation>
          </XConnect>
          </Sitecore>
          </Settings>


          Further Documentation is provided in the "Ensure facets are loaded" section
          https://doc.sitecore.com/developers/91/sitecore-experience-platform/en/create-an-activity-type.html






          share|improve this answer























          • Thanks George, that was the final piece to get it working.

            – andyp
            2 hours ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "664"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f18657%2fautomation-engine-activity-type-not-retrieving-custom-facet%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          The Marketing Automation engine requires you to define custom facets that will be available when the contact is evaluated. You will need to patch in your custom facet to the IncludeFacetNames section of the sc.MarketingAutomation.ContactLoader.xml config



          You would need to add the MemberInfo facet to the IncludeFacetNames. You could create a patch file sc.(patch name).xml and it would look something like this:



           <Settings>
          <!--
          Marketing Automation contact loader configuration
          -->
          <Sitecore>
          <XConnect>
          <MarketingAutomation>
          <Engine>
          <Services>
          <MarketingAutomation.Loading.ContactFacetsConfigurator>
          <Options>
          <IncludeFacetNames>
          <MemberInfo>MemberInfo</MemberInfo>
          </IncludeFacetNames>
          </Options>
          </MarketingAutomation.Loading.ContactFacetsConfigurator>
          </Services>
          </Engine>
          </MarketingAutomation>
          </XConnect>
          </Sitecore>
          </Settings>


          Further Documentation is provided in the "Ensure facets are loaded" section
          https://doc.sitecore.com/developers/91/sitecore-experience-platform/en/create-an-activity-type.html






          share|improve this answer























          • Thanks George, that was the final piece to get it working.

            – andyp
            2 hours ago















          2














          The Marketing Automation engine requires you to define custom facets that will be available when the contact is evaluated. You will need to patch in your custom facet to the IncludeFacetNames section of the sc.MarketingAutomation.ContactLoader.xml config



          You would need to add the MemberInfo facet to the IncludeFacetNames. You could create a patch file sc.(patch name).xml and it would look something like this:



           <Settings>
          <!--
          Marketing Automation contact loader configuration
          -->
          <Sitecore>
          <XConnect>
          <MarketingAutomation>
          <Engine>
          <Services>
          <MarketingAutomation.Loading.ContactFacetsConfigurator>
          <Options>
          <IncludeFacetNames>
          <MemberInfo>MemberInfo</MemberInfo>
          </IncludeFacetNames>
          </Options>
          </MarketingAutomation.Loading.ContactFacetsConfigurator>
          </Services>
          </Engine>
          </MarketingAutomation>
          </XConnect>
          </Sitecore>
          </Settings>


          Further Documentation is provided in the "Ensure facets are loaded" section
          https://doc.sitecore.com/developers/91/sitecore-experience-platform/en/create-an-activity-type.html






          share|improve this answer























          • Thanks George, that was the final piece to get it working.

            – andyp
            2 hours ago













          2












          2








          2







          The Marketing Automation engine requires you to define custom facets that will be available when the contact is evaluated. You will need to patch in your custom facet to the IncludeFacetNames section of the sc.MarketingAutomation.ContactLoader.xml config



          You would need to add the MemberInfo facet to the IncludeFacetNames. You could create a patch file sc.(patch name).xml and it would look something like this:



           <Settings>
          <!--
          Marketing Automation contact loader configuration
          -->
          <Sitecore>
          <XConnect>
          <MarketingAutomation>
          <Engine>
          <Services>
          <MarketingAutomation.Loading.ContactFacetsConfigurator>
          <Options>
          <IncludeFacetNames>
          <MemberInfo>MemberInfo</MemberInfo>
          </IncludeFacetNames>
          </Options>
          </MarketingAutomation.Loading.ContactFacetsConfigurator>
          </Services>
          </Engine>
          </MarketingAutomation>
          </XConnect>
          </Sitecore>
          </Settings>


          Further Documentation is provided in the "Ensure facets are loaded" section
          https://doc.sitecore.com/developers/91/sitecore-experience-platform/en/create-an-activity-type.html






          share|improve this answer













          The Marketing Automation engine requires you to define custom facets that will be available when the contact is evaluated. You will need to patch in your custom facet to the IncludeFacetNames section of the sc.MarketingAutomation.ContactLoader.xml config



          You would need to add the MemberInfo facet to the IncludeFacetNames. You could create a patch file sc.(patch name).xml and it would look something like this:



           <Settings>
          <!--
          Marketing Automation contact loader configuration
          -->
          <Sitecore>
          <XConnect>
          <MarketingAutomation>
          <Engine>
          <Services>
          <MarketingAutomation.Loading.ContactFacetsConfigurator>
          <Options>
          <IncludeFacetNames>
          <MemberInfo>MemberInfo</MemberInfo>
          </IncludeFacetNames>
          </Options>
          </MarketingAutomation.Loading.ContactFacetsConfigurator>
          </Services>
          </Engine>
          </MarketingAutomation>
          </XConnect>
          </Sitecore>
          </Settings>


          Further Documentation is provided in the "Ensure facets are loaded" section
          https://doc.sitecore.com/developers/91/sitecore-experience-platform/en/create-an-activity-type.html







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          George TuckerGeorge Tucker

          513139




          513139












          • Thanks George, that was the final piece to get it working.

            – andyp
            2 hours ago

















          • Thanks George, that was the final piece to get it working.

            – andyp
            2 hours ago
















          Thanks George, that was the final piece to get it working.

          – andyp
          2 hours ago





          Thanks George, that was the final piece to get it working.

          – andyp
          2 hours ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Sitecore Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f18657%2fautomation-engine-activity-type-not-retrieving-custom-facet%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Log på Navigationsmenu

          Creating second map without labels using QGIS?How to lock map labels for inset map in Print Composer?How to Force the Showing of Labels of a Vector File in QGISQGIS Valmiera, Labels only show for part of polygonsRemoving duplicate point labels in QGISLabeling every feature using QGIS?Show labels for point features outside map canvasAbbreviate Road Labels in QGIS only when requiredExporting map from composer in QGIS - text labels have moved in output?How to make sure labels in qgis turn up in layout map?Writing label expression with ArcMap and If then Statement?

          Nuuk Indholdsfortegnelse Etyomologi | Historie | Geografi | Transport og infrastruktur | Politik og administration | Uddannelsesinstitutioner | Kultur | Venskabsbyer | Noter | Eksterne henvisninger | Se også | Navigationsmenuwww.sermersooq.gl64°10′N 51°45′V / 64.167°N 51.750°V / 64.167; -51.75064°10′N 51°45′V / 64.167°N 51.750°V / 64.167; -51.750DMI - KlimanormalerSalmonsen, s. 850Grønlands Naturinstitut undersøger rensdyr i Akia og Maniitsoq foråret 2008Grønlands NaturinstitutNy vej til Qinngorput indviet i dagAntallet af biler i Nuuk må begrænsesNy taxacentral mødt med demonstrationKøreplan. Rute 1, 2 og 3SnescootersporNuukNord er for storSkoler i Kommuneqarfik SermersooqAtuarfik Samuel KleinschmidtKangillinguit AtuarfiatNuussuup AtuarfiaNuuk Internationale FriskoleIlinniarfissuaq, Grønlands SeminariumLedelseÅrsberetning for 2008Kunst og arkitekturÅrsberetning for 2008Julie om naturenNuuk KunstmuseumSilamiutGrønlands Nationalmuseum og ArkivStatistisk ÅrbogGrønlands LandsbibliotekStore koncerter på stribeVandhund nummer 1.000.000Kommuneqarfik Sermersooq – MalikForsidenVenskabsbyerLyngby-Taarbæk i GrønlandArctic Business NetworkWinter Cities 2008 i NuukDagligt opdaterede satellitbilleder fra NuukområdetKommuneqarfik Sermersooqs hjemmesideTurist i NuukGrønlands Statistiks databankGrønlands Hjemmestyres valgresultaterrrWorldCat124325457671310-5