SAP Knowledge Base Article - Preview

2809585 - SMP 3.0 SP16 PL03. Internal Exception: com.microsoft.sqlserver.jdbc.SQLServerException: String or binary data would be truncated. Error Code: 8152

Symptom

In the SMP 3.0 Server log:

Internal Exception: com.microsoft.sqlserver.jdbc.SQLServerException: String or binary data would be truncated.
Error Code: 8152
Call: INSERT INTO SMP_AUDIT_LOG_DATA (ID, ACTIONTYPE, CHANGEDATTRIBUTES, "COMMENT", LOGTIME, OBJECTID, OBJECTTYPE, SOURCEIP, SUCCESS, USERNAME) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
bind => [10 parameters bound]
Query: InsertObjectQuery(com.sap.mobile.platform.server.auditlog.persistence.model.AuditLogData@d5aaaeb)
at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commitInternal(EntityTransactionImpl.java:102)
at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:63)
at com.sap.mobile.platform.server.online.common.service.base.AbstractServicePersistenceBase.commitTransaction(AbstractServicePersistenceBase.java:177)
at com.sap.mobile.platform.server.online.common.service.base.AbstractServicePersistenceBase.executeInTransaction(AbstractServicePersistenceBase.java:231)


Read more...

Environment

  • SMP 3.0 SP 16 PL03
  • MSSQL- DBMS 2012 SP4
  • all SQL Server versions should be affected (2012, 2016, 2017, 2019), because the column size is to small

Product

SAP Mobile Platform 3.0

Keywords

SMP 3.0, MSSQL, DBMS, com.microsoft.sqlserver.jdbc.SQLServerException, SQLServerException, String or binary data would be truncated, INSERT INTO SMP_AUDIT_LOG_DATA (ID, ACTIONTYPE, CHANGEDATTRIBUTES, "COMMENT", LOGTIME, OBJECTID, OBJECTTYPE, SOURCEIP, SUCCESS, USERNAME) VALUES , KBA , MOB-ONP , SAP Mobile Platform on Premise , Problem

About this page

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

Search for additional results

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