-1
코드를 만들려고 할 때하는 것은 다음과 같이 보입니다 이 엔티티를 생성하는 것으로부터, 다른 관련 엔티티와 연관되도록 자신을 복제합니다 (동일한 날짜 및 비율 속성). 오류 로그를 어떻게 작성해야할지 모르겠습니다. 내가 할 수있는 유일한 것은 오류 코드입니다. 나는 이것에 관해서 아무것도 찾을 수 없습니다."비즈니스 프로세스 오류"엔티티에게 플러그인 사전 연산 코드 내부
Create() 호출이 pre-op를 재귀 적으로 다시 실행한다는 사실과 관련이 있습니까? 무한 루프를 방지하는 조건부 논리가 이미 있습니다.
다음은 참조 용 오류 로그입니다. 감사.
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: There was an error in the Plugin CRMPluginSolution.Plugins.SplitSavingsRatioProcess, and a log has been created. Please try this again later. If this issue persists contact your IT Staff. 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>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>There was an error in the Plugin CRMPluginSolution.Plugins.SplitSavingsRatioProcess, and a log has been created. Please try this again later. If this issue persists contact your IT Staff. </Message>
<Timestamp>2016-12-28T23:42:10.5503562Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[CRMPluginSolution.Plugins: CRMPluginSolution.Plugins.SplitSavingsRatioProcess]
[77dfca7a-35cd-e611-80df-00059a3c7a00: SplitSavingsRatioProcess]
</TraceText>
</OrganizationServiceFault>