SAP Knowledge Base Article - Preview

3149320 - CDS Merchandising Solr Indexing Job Fails with 400 Bad Request

Symptom

After setting up a Product Directory and triggering an indexing job, the job fails with the errors below:

[de.hybris.platform.solrfacetsearch.indexer.cron.SolrIndexerJob] Error during indexer call: electronicsIndex. 
de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: Indexer worker failed. Max number of retries in total has been reached
com.hybris.charon.exp.BadRequestException: Bad Request
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at com.hybris.charon.exp.HttpException$Custom.toException(HttpException.java:106)
        at com.hybris.charon.CharonHandler.lambda$static$0(CharonHandler.java:96)
        ...
        ..
Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: com.hybris.charon.netty.NettyRawResponse.class
        at rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:118)
        at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:73)
        ...
        ..

Surrounding logs should also contain a more detailed error message, e.g.

Error in class com.hybris.merchandising.client.MerchCatalogServiceClientAdapter
{
    "status": 400,
    "type": "validation_violation",
    "message": "There were several validation problems, see details for more info",
    "details": [
        {
            "field": "inboundProducts[9].facets[4].values[4].name",
            "type": "invalid_parameter",
            "message": "must match \"^[^<>]*$\" - Provided value: /1/571/A<>B"
        },
        {
            "field": "inboundProducts[9].facets[8].values[1].id",
            "type": "invalid_parameter",
            "message": "must match \"^[^<>]*$\" - Provided value: A<>B"
        },
        {
            "field": "inboundProducts[9].facets[4].values[4].id",
            "type": "invalid_parameter",
            "message": "must match \"^[^<>]*$\" - Provided value: /1/571/A<>B"
        }
    ]
}

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."


Read more...

Environment

SAP Commerce Cloud Integration with Context-Driven Services.

Product

SAP Commerce Cloud all versions

Keywords

full-index, sync, context driven, merchandisingaddon , KBA , CEC-SCC-COM-SRC-SER , Search and Navigation , CEC-COM-CPS-SER , Search , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.