Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Cannot delete opportunity - missing serviceappointment

$
0
0

I'm unable to delete an opportunity record due to that fact the system can't find a service appointment with a certain Id (different service appointment id for different opportunities). I don't have any service appointments in the system...

I'm on Dynamics 365 v9.0.1.459 - which I assume is the latest version.

I'm getting the following error log from the exception:

<s:Envelope xmlns:s="schemas.xmlsoap.org/.../envelope">
	<s:Body>
		<s:Fault>
			<faultcode>s:Client</faultcode>
			<faultstring xml:lang="en-US">ServiceAppointment With Id = 61ce9f06-b61b-e811-a955-000d3a296433 Does Not Exist</faultstring>
			<detail>
				<OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance">
					<ActivityId>2e533e8c-aa0a-418d-93c1-0b153fb39ac1</ActivityId>
					<ErrorCode>-2147220969</ErrorCode>
					<ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">
						<KeyValuePairOfstringanyType>
							<a:key>ApiExceptionSourceKey</a:key>
							<a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Plugin/Microsoft.Crm.ObjectModel.CustomBusinessEntityService</a:value>
						</KeyValuePairOfstringanyType>
						<KeyValuePairOfstringanyType>
							<a:key>ApiOriginalExceptionKey</a:key>
							<a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: ServiceAppointment With Id = 61ce9f06-b61b-e811-a955-000d3a296433 Does Not Exist ---&gt; Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: ServiceAppointment With Id = 61ce9f06-b61b-e811-a955-000d3a296433 Does Not Exist
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.GetValuesFromDatabase(String entityName, Guid entityId, Boolean allowNonUniqueRows, ArrayList attributes, ArrayList extraConditions, Boolean isRetrieveUnpublished, ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.GetValuesFromDatabase(String entityName, Guid entityId, ArrayList attributes, ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.SecurityExtension.RevokeInheritedAccessFromParentEntityOwner(BusinessEntity entity, AttributeMetadata parentColumn, SecurityAttributes attributes, ExtensionEventArgs e)
   at Microsoft.Crm.BusinessEntities.SecurityExtension.PreUpdateHandlerAppendAppendToPrivilegeCheck(Object sender, SecurityTraits traits, SecurityAttributes attributes, ExtensionEventArgs e)
   at Microsoft.Crm.BusinessEntities.SecurityExtension.PreUpdateHandler(ExtensionEventArgs e, Object sender)
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreUpdateEventHandler.Invoke(Object sender, ExtensionEventArgs e)
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.UpdateWithPipelineAndExtensions(IBusinessEntity entity, ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.CascadeEngine.CascadeDeleteBulkOM(CascadeRecordSet collection, Int32 parentEntityObjectTypeCode, ExecutionContext context, Boolean cascadeDeleteChildEntityRecords, IEnumerable`1 parentEntityIds)
   at Microsoft.Crm.BusinessEntities.CascadeEngine.CascadeDeleteDB(IEnumerable`1 parentEntityIds, Int32 parentEntityObjectTypeCode, ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.CascadeEngine.Delete(IEnumerable`1 entityIds, Int32 entityObjectTypeCode, ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Delete(BusinessEntityMoniker moniker, ExecutionContext context)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass1_0.&lt;Execute&gt;b__0()</a:value>
						</KeyValuePairOfstringanyType>
						<KeyValuePairOfstringanyType>
							<a:key>ApiStepKey</a:key>
							<a:value xmlns:b="schemas.microsoft.com/.../Serialization" i:type="b:guid">a6cabb1b-ea3e-db11-86a7-000a3a5473e8</a:value>
						</KeyValuePairOfstringanyType>
						<KeyValuePairOfstringanyType>
							<a:key>ApiDepthKey</a:key>
							<a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:int">1</a:value>
						</KeyValuePairOfstringanyType>
						<KeyValuePairOfstringanyType>
							<a:key>ApiActivityIdKey</a:key>
							<a:value xmlns:b="schemas.microsoft.com/.../Serialization" i:type="b:guid">2e533e8c-aa0a-418d-93c1-0b153fb39ac1</a:value>
						</KeyValuePairOfstringanyType>
						<KeyValuePairOfstringanyType>
							<a:key>ApiPluginSolutionNameKey</a:key>
							<a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">System</a:value>
						</KeyValuePairOfstringanyType>
					</ErrorDetails>
					<Message>ServiceAppointment With Id = 61ce9f06-b61b-e811-a955-000d3a296433 Does Not Exist</Message>
					<Timestamp>2018-02-28T12:11:51.0037825Z</Timestamp>
					<ExceptionRetriable>false</ExceptionRetriable>
					<ExceptionSource i:nil="true"/>
					<InnerFault>
						<ActivityId>2e533e8c-aa0a-418d-93c1-0b153fb39ac1</ActivityId>
						<ErrorCode>-2147220969</ErrorCode>
						<ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"/>
						<Message>ServiceAppointment With Id = 61ce9f06-b61b-e811-a955-000d3a296433 Does Not Exist</Message>
						<Timestamp>2018-02-28T12:11:51.0037825Z</Timestamp>
						<ExceptionRetriable>false</ExceptionRetriable>
						<ExceptionSource i:nil="true"/>
						<InnerFault i:nil="true"/>
						<OriginalException i:nil="true"/>
						<TraceText i:nil="true"/>
					</InnerFault>
					<OriginalException i:nil="true"/>
					<TraceText i:nil="true"/>
				</OrganizationServiceFault>
			</detail>
		</s:Fault>
	</s:Body>
</s:Envelope>



Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>