Hi there,
I need to make a quote where each Quote Line (project-based) is referred to the same project i.e.:
Quotes>Quote A> Quote Line(project based):
Name: ABC / Billing method: Fixed price / Project: Z10
Name: DEF / Billing method: Fixed price / Project: Z10
and so on... (serveral Quote lines related to the same project).
I tried but got the error below.
ERROR CODE:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The assigned project isn't valid.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>c44f6e8e-60bc-4a79-be49-da6037aaa07f</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>The assigned project isn't valid.</Message>
<Timestamp>2017-01-21T07:29:36.2886776Z</Timestamp>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>
[Microsoft.Dynamics.ProjectService.Plugins: Microsoft.Dynamics.ProjectService.Plugins.PreQuoteLineCreate]
[7a667a27-3cd7-e411-80df-00155dbeee13: 4389ad63-9e1c-42cc-b665-26c248b50c8c]
Entered Microsoft.Dynamics.ProjectService.Plugins.PreQuoteLineCreate.Execute(), Correlation Id: b7383db1-d869-459a-bb42-e81059821293, Initiating User: 700c31a8-b9c0-e611-80fd-c4346bc4de40
Exiting Microsoft.Dynamics.ProjectService.Plugins.PreQuoteLineCreate.Execute(), Correlation Id: b7383db1-d869-459a-bb42-e81059821293, Initiating User: 700c31a8-b9c0-e611-80fd-c4346bc4de40
</TraceText>
</OrganizationServiceFault>
Any help more than welcome.
Thanks.