cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with CCO Manager API Call

cseijas
Discoverer
0 Kudos
865

Hello, any help will be appreciated with the following problem that we are facing with Customer Checkout API Calls.

When we try to post a Customer via API call (POST /internal/sync/businesspartners/bulk) we obtain a HTTP 500 error with "errorCode": "1", "errorMessage": "Internal Error. Please refer to log @ Sat Mar 05 13:37:34 CET 2022".

In "Inbound call monitoring app" we only obtain a generic error entry with "Error message": "Internal error".

In Apps "Master Data Queue" and "Master Data Results" there are no entries for Business Partners, however, we notice that the number range of customer is incremented with 1.

We have found in cco_error.txt files an exception like this:

ERROR com.sap.scco.cs.webapp.DefaultExceptionMapper - Exception occured:

org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction "rolled back" because transaction was set to RollbackOnly.

at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:571) ~[spring-orm-5.3.7.jar:5.3.7]

...

Caused by: javax.persistence.RollbackException: Transaction "rolled back" because transaction was set to RollbackOnly.

at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:145) ~[eclipselink-2.7.7.jar:2.7.7.v20200504-69f2c2b80d]

at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:562) ~[spring-orm-5.3.7.jar:5.3.7]

... 110 more

I attach an example of the exception log found and the request that we are using.

log-example.txt

request-example.txt

Accepted Solutions (1)

Accepted Solutions (1)

gunther_sandtner2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear cseijas_minsait_2020,

It affects installations running on HANA database.

The cause of this error is that the MASTER_DATA_PAYLOAD_MATERIAL.DATA column has type NVARCHAR. The solution is to extend the datatype from NVARCHAR to NCLOB.

  • In a new installation the fix is available in CCO manager 2.0 FP12 PL09 (released already)
  • In an updated installation the fix is planned for CCO manager 2.0 FP12 PL10 (yet to get released)

Kind regards,

Gunther

Answers (2)

Answers (2)

former_member771346
Participant

Hi gunther.sandtner2, just wanted to say thanks for the fix of the problem.

The following data type change was enough to be able to perform my requests:

ALTER TABLE <Database>."MASTER_DATA_PAYLOAD_MATERIAL" ALTER ("DATA" NCLOB);

Regards,

João Ferreira.

arunparthan
Explorer
0 Kudos
How about for PL19
cseijas
Discoverer
0 Kudos

Hello,

Yes, this is the case. We have Hana Database with CCO manager 2.0 FP12.

Best regards,

César Seijas.