Monday, December 2, 2013

MSCRM - Error : ActivityFeeds.Plugins: ActivityFeeds.Plugins.ActivityClose

After adding a plugin and published, every time I try to add a new Account and get a failure. The error message like :
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occurred. Contact a system administrator or refer to the Microsoft Dynamics CRM SDK troubleshooting guide.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147220891</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>OperationStatus</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">0</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>An error occurred. Contact a system administrator or refer to the Microsoft Dynamics CRM SDK troubleshooting guide.</Message>
  <Timestamp>2013-12-02T03:27:12.0322954Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText>

[ActivityFeeds.Plugins: ActivityFeeds.Plugins.ActivityClose]
[666ee08c-a126-e311-8e0c-0050569aa3d9: ActivityFeeds.Plugins.ActivityClose: Create of  any Entity]


</TraceText>
</OrganizationServiceFault>

There is an solution from Here on the problem, and the detail is:

The error code -2147220891 can be converted to the hexadecimal version using Windows Calculator. To do this open calculator and change the mode to Programmer. Then paste the number -2147220891. Then press the negative button to make the number negative. Finally change the value to hexadecimal by changing the mode from DEC to HEX. You will get FFFFFFFF80040265 which is 0x80040265. You can then search using a search engine and find that the error means: Error Message: Object reference not set to an instance of an object. This error is very generic and does not help much at this point.
It could be that the Activity Feeds solution is not configured correctly. I believe the best way to continue troubleshooting this problem would be to open a support request with Dynamics CRM Support. Once that is open the support engineer will be able to collect tracing from the CRM Online server deployment. Tracing is needed to get a better idea of what failed when the Activity Feeds solution executed. The tracing will need to be collected when you reproduce the error so be prepared to reproduce the issue when the engineer is ready to collect the traces.
Alternatively you could try to disable the Activity Feeds solution for the account entity. This blog covers enabling an entity for Activity Feeds, but I would assume that it has some step to disable as well.
"...To disable Activity Feeds for an Entity, you will need to click to choose an Entity from Post Configuration grid and click Delete. Publish the change to take it effect."
Finally,  after disabled the the ActivityFeeds.Plugins from solution, CRM came back working.

0 comments:

Post a Comment

Breaking News
Loading...
Quick Message
Press Esc to close
Copyright © 2013 Technology KB All Right Reserved