cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

No ResultObjects inside SAP Marketing Response for SAP Commerce Recommendations-Scenario

LukasG
Explorer
306

Hello Community,
as part of a customer request, we tried to implement the SAP Marketing Integration for their SAP Commerce 2005 system.

So far datareplication and segmentation work as intented. But we can´t get the recommendations running.
We implemented the required extensions and also integrated the SAP Marketing Product Recommendation Component into our Commerce storefront.

But for some reason the OData Request doesn´t return ResultObjects inside the payload.

"d":{"__metadata":{"id":"https://xxxxxxx.s4hana.ondemand.com:443/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV/RecommendationScenarios(UserId='',UserType='ANONYMOUS')","uri":"https://xxxxxxx.s4hana.ondemand.com:443/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV/RecommendationScenarios(UserId='',UserType='ANONYMOUS')","type":"PROD_RECO_RUNTIME_SRV.RecommendationScenario"},"UserId":"","UserType":"ANONYMOUS","ExternalTracking":true,"ScenarioHashes":{"results":[]},"Scenarios":{"results":[]},"ContextParams":{"__deferred":{"uri":"https://xxxxxxx.s4hana.ondemand.com:443/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV/RecommendationScenarios(UserId='',UserType='ANONYMOUS')/ContextParams"}},"ResultObjects":{"results":[]}}}

When trying to access this Service via Postman, we can see ResultObjects coming from SAP Marketing.


Can anyone help, why does the Marketing Cloud not send a correct Payload to the Commerce System?.

br,

Lukas


EDIT:

So I found out there are 2 Requests beeing made to the Marketing Cloud.
The first request is filled with LeadingItems and also the Response from this one looks good. ResultObjects coming back from the Marketing Cloud.
But the second Request is completetely empty, and response is also empty like the one above.
I guess the second request is overwriting the first one so the ResultObjects get overwritten or something. At least the buffer doesn´t get filled.

Why are there 2 Requests made to the Marketing? And why is the second one empty? Is this the normal behavior or did i miss something.

Accepted Solutions (1)

Accepted Solutions (1)

LukasG
Explorer

Okay my problem was the "sapymktrecommendation.productrecommendation.requestTimeoutThreshold" property.
It´s value was way too short to receive the results from the Marketing Cloud in time.
After extending the value, the problem was solved.

Answers (0)