Executing plugin on Account entity in MS CRM 2011 Online 30 days trial
-
10 สิงหาคม 2555 11:32
Hi ,
I have MS CRM 2011 Online 30 days trial account , i have registred a plugin on Pre-Create of Account entity , but i am getting error on
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>2012-08-10T11:25:10.9523099Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>[ActivityFeeds.Plugins: ActivityFeeds.Plugins.ActivityClose]
[10c04620-67e0-e111-bd3c-d8d3855b253b: ActivityFeeds.Plugins.ActivityClose: Create of account]This is new feature i have seen in MS CRM 2011 online which is called "Whats new" which shows all the Activity Feeds for Account. for this there are number of plugin ins from Microsoft "ActivityFees.plugin"
is there any bug in that ? has anybody experience something like this ? if there is error in my plugin why its showing above error message ?
any Ideas
Regards,
Vilas
Vilas Magar http://microsoftcrmworld.blogspot.com/
ตอบทั้งหมด
-
10 สิงหาคม 2555 14:20ผู้ดูแลIt sounds like you have an unhandled exception in your code. Throw a try catch around your plugin code and then in the catch throw an instance of InvalidPluginExecutionException and put the ex.tostring in the message of the new thrown invalidpluginexecutionexception. If the plugin is registered synchronously this will throw that info up to the user in a dialog box. That should be much more useful than what you are getting now.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!