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)

"Process action associated with this process is not activated" while trying to create a contact from Account form

(0) ShareShare
ReportReport
Posted on by

I can create contacts from Contacts, but when I use the Quick Create: Contact option from the sub-grid in the Account form, I get this error:

"Process action associated with this process is not activated"

Googling for this error shows discussions of activating draft actions from Settings > Processes > Draft Processes. I reviewed these and couldn't see anything that looked related to contact creation or even accounts. Here's below the error log, which mentions "Field Service: Create (pre-operation) for contact" but I don't see an action with a name related to that. Help appreciated!

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Process action associated with this process is not activated.Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>87d6a74d-2063-41bf-b6df-b0f3b9354e3f</ActivityId>
  <ErrorCode>-2147220891</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiExceptionSourceKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Api/PrePipeline</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: Process action associated with this process is not activated.
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentationOperation(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.&lt;&gt;c__DisplayClass18_0.&lt;ExecuteRequest&gt;b__0()</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">[SNIP]</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiDepthKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiActivityIdKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">87d6a74d-2063-41bf-b6df-b0f3b9354e3f</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiPluginSolutionNameKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiStepSolutionNameKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>OperationStatus</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>SubErrorCode</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value> </KeyValuePairOfstringanyType> </ErrorDetails> <Message>Process action associated with this process is not activated.</Message> <Timestamp>2018-05-23T22:12:55.2397261Z</Timestamp> <ExceptionRetriable>false</ExceptionRetriable> <ExceptionSource i:nil="true" /> <InnerFault i:nil="true" /> <OriginalException i:nil="true" /> <TraceText> [Microsoft.Dynamics.FieldService: Microsoft.Dynamics.FieldService.FieldServicePlugin] [a19ad46e-d2a5-435f-917b-fb535d2909df: Field Service: Create (pre-operation) for contact] FieldServicePlugin: PluginLocal.Create, Depth: 1 FieldServicePlugin: PluginContext Start FieldServicePlugin: MessageName: Create FieldServicePlugin: PrimaryEntityName: contact FieldServicePlugin: PrimaryEntityId: 2dd7556b-d65e-e811-a95d-000d3ae0562f FieldServicePlugin: SecondaryEntityName: none FieldServicePlugin: Stage: 20 FieldServicePlugin: PreEntityImages.Count: 0 FieldServicePlugin: PostEntityImages.Count: 0 FieldServicePlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity FieldServicePlugin: OutputParameters: FieldServicePlugin: SharedVariables: DefaultsAddedFlag = True FieldServicePlugin: UserId: [SNIP] FieldServicePlugin: InitiatingUserID: [SNIP]
FieldServicePlugin: IsolationMode: 1 FieldServicePlugin: Mode: 0 FieldServicePlugin: OrganizationName: org94509959 FieldServicePlugin: OrganizationId: 9a91fc31-e262-471f-9007-425c057e6176 FieldServicePlugin: BusinessUnitId: a742b84f-181f-e811-a839-000d3ae0eb6e FieldServicePlugin: CorrelationId: 237bb1c6-7adf-48cc-821b-1f30f3e3ba1f FieldServicePlugin: RequestId: 9d9ed833-b666-4656-b4c7-b4ef9f4a5146 FieldServicePlugin: OperationId: 9d9ed833-b666-4656-b4c7-b4ef9f4a5146 FieldServicePlugin: IsInTransaction: True FieldServicePlugin: Depth: 1 FieldServicePlugin: IsExecutingOffline: False FieldServicePlugin: Parent PluginContext Start FieldServicePlugin: PluginContext Start FieldServicePlugin: MessageName: Create FieldServicePlugin: PrimaryEntityName: contact FieldServicePlugin: PrimaryEntityId: 2dd7556b-d65e-e811-a95d-000d3ae0562f FieldServicePlugin: SecondaryEntityName: none FieldServicePlugin: Stage: 30 FieldServicePlugin: PreEntityImages.Count: 0 FieldServicePlugin: PostEntityImages.Count: 0 FieldServicePlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity SuppressDuplicateDetection = False FieldServicePlugin: OutputParameters: FieldServicePlugin: SharedVariables: DefaultsAddedFlag = True FieldServicePlugin: UserId:[SNIP]
FieldServicePlugin: InitiatingUserID: [SNIP]
FieldServicePlugin: IsolationMode: 1 FieldServicePlugin: Mode: 0 FieldServicePlugin: OrganizationName: org94509959 FieldServicePlugin: OrganizationId: 9a91fc31-e262-471f-9007-425c057e6176 FieldServicePlugin: BusinessUnitId: a742b84f-181f-e811-a839-000d3ae0eb6e FieldServicePlugin: CorrelationId: 237bb1c6-7adf-48cc-821b-1f30f3e3ba1f FieldServicePlugin: RequestId: 9d9ed833-b666-4656-b4c7-b4ef9f4a5146 FieldServicePlugin: OperationId: 9d9ed833-b666-4656-b4c7-b4ef9f4a5146 FieldServicePlugin: IsInTransaction: True FieldServicePlugin: Depth: 1 FieldServicePlugin: IsExecutingOffline: False FieldServicePlugin: PluginContext End FieldServicePlugin: Parent PluginContext End FieldServicePlugin: PluginContext End FieldServicePlugin: PluginLocal.Create, Depth: 1 FieldServicePlugin: PluginLocal.Create, Depth: 1 FieldServicePlugin: InitializePlugin: local FieldServicePlugin: ConfigurePluginFlagsSupportInternal() FieldServicePlugin: CreateEntityOperation(contact) FieldServicePlugin: Operation type: ContactOperation FieldServicePlugin: operation.Initialize() FieldServicePlugin: InputEntity: [SNIP] FieldServicePlugin: operation.Execute() FieldServicePlugin: PluginStage: 20 MessageName: Create FieldServicePlugin: Before calling message handler FieldServicePlugin: Before FieldServicePlugin: BeforeCreate FieldServicePlugin: BeforeCreateOrUpdate FieldServicePlugin: Settings: Retrieving local FieldServicePlugin: Settings: Retrieving hard FieldServicePlugin: PluginLocal.Dispose, Depth: 1 FieldServicePlugin: PluginLocal.Dispose, Depth: 1 FieldServicePlugin: Process action associated with this process is not activated. System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Process action associated with this process is not activated. (Fault Detail is equal to Exception details: ErrorCode: 0x80045052 Message: Process action associated with this process is not activated. TimeStamp: 2018-05-23T22:12:55.2243295Z -- ). FieldServicePlugin: PluginLocal.Dispose, Depth: 1 </TraceText> </OrganizationServiceFault>

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Please try to retrieve the name of the action using the Retrieve method in a console application by connecting to your target CRM organization where you see this issue. That would tell you what action is causing the issue

    orgService.Retrieve("workflow", new Guid("87d6a74d-2063-41bf-b6df-b0f3b9354e3f"), new ColumnSet("activeworkflowid"));

    Please mark the answer as verified if it resolves your issue.

    Thanks,

    Sravya Patti

  • Community Member Profile Picture
    on at

    Thanks Sravya, I'm not a C# developer but I do have Visual Studio 2017 and I'm willing to try. I was able to create a basic console app that shows a successful connection to my D365 environment following this tutorial:

    https://arunpotti.wordpress.com/2018/02/03/step-by-step-to-connect-dynamics-365-crm-online-v9-x-using-c-console-application/

    However when I add your code, VS tells me that "the name orgService does not exist in the current context". I googled this but am a bit overwhelmed. Can you please spell out the dependencies/references I should install to be able to run this code?

  • Community Member Profile Picture
    on at

    Hello,

    Sorry for the delayed response.  Could you please try to replace orgService with organizationService and try the above line of code, after your connection. It should be something like this :-

    var result = organizationService.Retrieve("workflow", new Guid("87d6a74d-2063-41bf-b6df-b0f3b9354e3f"), new ColumnSet("activeworkflowid"));

    Then try to debug the code and see the value that comes into result. You would want to look for value of the activeworkflowid in the attributes/formatted values under result.

    Let me know if you need more help.

    Thanks,

    Sravya

  • Suggested answer
    Community Member Profile Picture
    on at

    You could also add this line if you aren't familiar with debugging the code :-

    var result = organizationService.Retrieve("workflow", new Guid("87d6a74d-2063-41bf-b6df-b0f3b9354e3f"), new ColumnSet("activeworkflowid"));

               Console.WriteLine(result.FormattedValues["activeworkflowid"]);

    In the console window, you would see the name of the process. 

    Thanks,

    Sravya

  • Community Member Profile Picture
    on at

    Thanks. If I write it like this (see added part in bold), the code is recognized in VS:

    var result = organizationService.Retrieve("workflow", new Guid("d2d6bf35-a04b-413f-9705-d1e432ffe819"), new Microsoft.Xrm.Sdk.Query.ColumnSet("activeworkflowid"));

    I tried several ActivityIDs I got after replicating the error, and the console app always reports that "Exception caught - workflow With Id = d2d6bf35-a04b-413f-9705-d1e432ffe819 Does Not Exist" (or other ID from the error message).

    Now, here's new information: if the account doesn't have an address, then I can successfully create contacts from the Account form. But once I've added an address to the account, then I can no longer create a contact there. May this help narrow down to the process I should activate?

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Olivier ,

    Seems the error is coming from OOB Field Service Plugin.I think an  Action which is used in the  plugin is  not active.

    Go to settings -> Customization --> Customize the System --> Process --> Find Deactivate Action

    Find the related deactivated  Actions associated with the contact entity and activate.

    Hope this helps.

  • Community Member Profile Picture
    on at

    Thanks, I reviewed again all the draft processes and finally found the draft one that I had to activate, which was related to geocoding (Resource Scheduling - Geocode Address). It was hard to find because it's a global process not related to any specific entity.

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