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

Product entity alternate key not working

$
0
0

Hi, I created an alternate key for product id (productnumber) and regioncode(lookup).

But this doesnt work and not allowing me to create a new product with same productnumber but difference regioncode. 

Here is the stack trace i get. 

Exception Message: The specified product ID conflicts with the product ID of an existing record. Specify a different product ID and try again.

ErrorCode: -2147206394
HexErrorCode: 0x80043b06

ErrorDetails:
HttpStatusCode: 400

TraceText:
[Microsoft.Dynamics.ProductManagement.Plugins: Microsoft.Dynamics.ProductManagement.Plugins.PreOperationProductCreate]
[a574a0eb-08ea-e611-80c3-02155dc812c3: Microsoft.Dynamics.ProductManagement.Plugins.PreOperationProductCreate: Create of product]
Entered Microsoft.Dynamics.ProductManagement.Plugins.PreOperationProductCreate.Execute(), Correlation Id: 33846407-f334-4e23-a651-02295e4dc421, Initiating User: cb27db95-fc47-ec11-8c62-002248118351
Exception: Microsoft.Dynamics.Solution.Common.CrmException: The specified product ID conflicts with the product ID of an existing record. Specify a different product ID and try again. (Fault Detail is equal to Exception details:
ErrorCode: 0x80043B06
Message: The specified product ID conflicts with the product ID of an existing record. Specify a different product ID and try again.
StackTrace:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Microsoft.Dynamics.Solution.Common.CrmException.BuildOrganizationServiceFault(Exception innerException, Int32 errorCode, Int32 statusCode, String message)
at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Int32 statusCode, Boolean isFlowControlException, Boolean enableTrace)
at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Int32 statusCode, Boolean isFlowControlException)
at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Int32 errorCode)
at Microsoft.Crm.Common.ObjectModel.ProductService.PreOperationCreate(Product product, IPlu...)., Correlation Id: 33846407-f334-4e23-a651-02295e4dc421, Initiating User: cb27db95-fc47-ec11-8c62-002248118351
Exiting Microsoft.Dynamics.ProductManagement.Plugins.PreOperationProductCreate.Execute(), Correlation Id: 33846407-f334-4e23-a651-02295e4dc421, Initiating User: cb27db95-fc47-ec11-8c62-002248118351

Activity Id: b730d42e-d9b4-41de-a972-eeefede18117


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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