locked
Unable to Enable Business Process Flows for Custom Activity Entities (On Premise with RU2) RRS feed

  • Question

  • When trying to enable Business Process Flows for custom activity entities, the exception below is returned:

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: indexDetail: 
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index</Message>
      <Timestamp>2014-04-22T20:35:12.9590429Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText i:nil="true" />
    </OrganizationServiceFault>

    Tuesday, April 22, 2014 8:40 PM

All replies

  • Hi,

        Have not seen this error post Rollup 2. Following things to check:

    1) What user owns the Business Process flow? Does other user have rights to activate the business process flow?

    2) What is the role for the user trying to activate the business process flow.

     Also if the error is coming from code, can you please share the code?

    -Minal

    Tuesday, April 22, 2014 11:12 PM
  • This has nothing to do with specific BPFs - I'm simply trying to enable BPFs for a custom activity entity and Dynamics is returning an exception.
    Wednesday, April 23, 2014 5:50 PM