cancel
Showing results for 
Search instead for 
Did you mean: 

outbound order from sap commerce 2205 to btp integration suite

stefaniaZ
Participant
0 Kudos

Good morning,

I configured the flow for outbound order on SAP COMMERCE. I follow this guide https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/4da6a3d93... .

I must send the order to btb integration suite and I must use the integration Object "SAPCpiOutboundOrder", but when I place order I have Order object. For convert Order to SapCpiOutboudOrder I find "convertOrderToSapCpiOrder" in extension "sapcpiorderexchange"

I create in my fullfillment package new action and I write this code:

final SAPCpiOutboundOrderModel cpiOrder = getSapCpiOrderOutboundConversionService()

.convertOrderToSapCpiOrder(arg0.getOrder());

modelService.save(cpiOrder);


When I save, I have this exception


Error executing

de.hybris.platform.servicelayer.exceptions.ModelSavingException: [de.hybris.platform.servicelayer.interceptor.impl.UniqueAttributesInterceptor@2c59873e]:ambiguous unique keys {orderId=0000004003, entryNumber=-1} for model SAPCpiOutboundPriceComponentModel (<unsaved>) - found at least one ctx model using the same keys

at de.hybris.platform.servicelayer.internal.model.impl.wrapper.ModelWrapper.invokeValidateInterceptors(ModelWrapper.java:300) ~[coreserver.jar:?]

at de.hybris.platform.servicelayer.internal.model.impl.wrapper.ModelWrapper.validate(ModelWrapper.java:237) ~[coreserver.jar:?]

I see that the converter create 4 row price for same entry. Where I find the guide that explatin to me how working this exstension and how configure it? Because I find this https://help.sap.com/docs/SAP_COMMERCE_INTEGRATIONS/8ce6157b995e418093b6e5410bcd74b2/f4f497c2f3a0497... , but there are not all information and why the extension create 4 price row.

Thanks

Stefania

Accepted Solutions (0)

Answers (0)