Hello,
I'm trying to create a flow which takes an existing Opportunity with Opportunity Products and copies it, including the Products.
I've managed to get it working up until the point the Opportunity Products are added. I get the error "The product cannot be added because it is not active". Has anyone else had this and figured out what's wrong?
I tried adding details from the actual "Product" and not the "Opportunity Product" in the "Existing Product" field but none of that seemed to help.
I've got some screen shots below of the flow and the error it chucks out.
The error reads as follows:
{
"error": {
"code": "0x80040515",
"message": "The product cannot be added because it is not active",
"@Microsoft.PowerApps.CDS.ErrorDetails.HttpStatusCode": "400",
"@Microsoft.PowerApps.CDS.TraceText": "[Microsoft.Dynamics.Sales.Plugins: Microsoft.Dynamics.Sales.Plugins.PreOperationOpportunityLineCreate]\r\n[f1c121f9-1095-e611-80ee-00155d343e19: Pre-Create Operation of Opportuntiy Product]\r\nEntered Microsoft.Dynamics.Sales.Plugins.PreOperationOpportunityLineCreate.Execute(), Correlation Id: 9867d0b4-e1bb-4e3a-adb8-80a4ae68bc6d, Initiating User: c8ffbd32-e1b6-ea11-a812-000d3a4b2c9e\r\nException: Microsoft.Dynamics.Solution.Common.CrmException: The product cannot be added because it is not active (Fault Detail is equal to Exception details: \r\nErrorCode: 0x80040515\r\nMessage: The product cannot be added because it is not active\r\nStackTrace: \r\n at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)\r\n at System.Environment.get_StackTrace()\r\n at Microsoft.Dynamics.Solution.Common.CrmException.BuildOrganizationServiceFault(Exception innerException, Int32 errorCode, Int32 statusCode, String message)\r\n at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Int32 statusCode, Boolean isFlowControlException, Boolean enableTrace)\r\n at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Int32 statusCode, Boolean isFlowControlException)\r\n at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Int32 errorCode)\r\n at Microsoft.Crm.Sales.ObjectModel.OpportunityProductService.ValidateOpportunity(Opportunity opportunity)\r\n at Microsoft.Crm.Sales.ObjectModel.OpportunityProduc...)., Correlation Id: 9867d0b4-e1bb-4e3a-adb8-80a4ae68bc6d, Initiating User: c8ffbd32-e1b6-ea11-a812-000d3a4b2c9e\r\nExiting Microsoft.Dynamics.Sales.Plugins.PreOperationOpportunityLineCreate.Execute(), Correlation Id: 9867d0b4-e1bb-4e3a-adb8-80a4ae68bc6d, Initiating User: c8ffbd32-e1b6-ea11-a812-000d3a4b2c9e",
"@Microsoft.PowerApps.CDS.InnerError.Message": "The product cannot be added because it is not active"
}
}
This is the flow build:
This is the flow error: