cancel
Showing results for 
Search instead for 
Did you mean: 

com.thoughtworks.xstream.converters.ConversionException in SCPI

0 Kudos

Hi

This is regarding Product replication in Commerce cloud using SCPI. Using OData adapter we are pushing the data to hybris Commerce cloud.

We have a customised product EDMX (custom EDMX is imported) , using the Custom EDMX -xsd was created and same is used in mapping.

As multiple records is expected hence in receiver odata adapter i have given operations as Create(POST) and batch processing is checked. Now when i trigger it throws the exception com.thoughtworks.xstream.converters.ConversionExceptio.

I have read this: 2514249 - ConversionException: OSCI issue in HCI .

Also have gone through: https://blogs.sap.com/2017/05/10/batch-operation-in-odata-v2-adapter-in-sap-cloud-platform-integrati...

In teh trace i see it is correctly changed to expected(multiple records) :

Error:The Structure of the Batch payload is incorrect. Each entity has to be within seperate batchChangeSet or batchChangeSetPart aloang with seperate <method> tag. cause-exception : com.sap.gateway.core.ip.processor.exception.ODataProcessingException cause-message : The Structure of the Batch payload is incorrect. Each entity has to be within seperate batchChangeSet or batchChangeSetPart aloang with seperate <method> tag. class : java.util.ArrayList required-type : java.util.ArrayList converter-type : com.sap.gateway.core.ip.processo...

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member245698
Active Participant
0 Kudos

Hi Pratibha,

as it seems like your payload has the wrong format please have a look at your current output to the odata adpater in tracing and compare it with the structure in the blog mentioned from your side.

Especially have a look how often you have opened a batchCHangeSet and batchChangeSetPart

BR

Maik

<batchParts>
	<batchChangeSet>
		<batchChangeSetPart>
			<method>POST</method>
			<Categories>
				<Category>
					<Name>Example1</Name>
					<ID>25</ID>
				</Category>
			</Categories>
		</batchChangeSetPart> 
	</batchChangeSet>
	<batchChangeSet>
		<batchChangeSetPart>
			<method>POST</method>
			<Categories>
				<Category>
					<Name>Example2</Name>
					<ID>26</ID>
				</Category>
			</Categories>
		</batchChangeSetPart> 
	</batchChangeSet>
</batchParts>

Answers (0)