Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I am getting the below error while creating a record in the custom entity. I have a plugin which will trigger on create of the record.. This issue is not happening at all the time. It's happening only for certain data. please help me with this.
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=126.96.36.199, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Value cannot be null.Parameter name: inputDetail: <OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts"> <ActivityId>260fac34-670f-4398-989a-37e1049c0a2a</ActivityId> <ErrorCode>-2147220891</ErrorCode> <ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic"> <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>Value cannot be null.Parameter name: input</Message> <Timestamp>2019-11-04T16:11:11.8127464Z</Timestamp> <ExceptionRetriable>false</ExceptionRetriable> <ExceptionSource i:nil="true" /> <InnerFault i:nil="true" /> <OriginalException i:nil="true" /> <TraceText>
As you are telling that it is occuring for certain set of data so it is better to do profiling of this scenario and debug the plugin code and check each and every line execution outcome for different set of data.
For profiler information,pls follwo the below link:
Hope this helps
Hi Mahesh ,
Is it possible to share plugin code ,
Following are the possible root cause -
- Not having proper null check while getting attributes value in the plugin code, make sure you are checking each attributes with contains. check here for sample code -shaikhd365.blogspot.com/.../how-to-get-all-types-fields-values-of.html
- Secondly when you are calling the SDK method make sure are passing not null values in the object to do the operations.
- Are you trying to create Organization service proxy , if yes check here -nishantrana.me/.../
In addition as suggested above try to write some trace log and enable tracing to identify which lines is failing and try to drill down the issue.
These issue is might be because you don't check for null value for the attributes(fields) in your plugin . That why its only happen for that data which contain null value . For resolving these issue make sure you can provide condition for null values. Provide you a link where you can see how to do through condition for all data type
Business Applications communities