アーティクル - CS405625
AddDataTableEntry サービスは、SQL Server 永続化プロバイダを使用して ThingWorx に 254 を超えるフィールドを持つエントリを追加できません
修正日: 29-Sep-2025
適用対象
- ThingWorx Platform 9.3
- Microsoft SQL Server as Persistence Provider
説明
- SQL Server を永続化プロバイダーとして使用している場合、多数のフィールドを持つデータテーブルでAddDataTableEntry を呼び出すサービスを実行すると、次のエラーが発生します。
[1,018] Data store unknown error: [Error occurred while accessing the data provider.]
- ロギングサブシステムでスタックトレースを有効にすると、ErrorLog.log に次の例外が表示されます。
- [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: Administrator] [S: ] [P: ] [T: https-openssl-nio-443-exec-5] Unable to Invoke Service AddOrUpdateDataTableEntries on XXXX: java.lang.RuntimeException: com.thingworx.common.exceptions.DataAccessException: [1,018] Data store unknown error: [Error occurred while accessing the data provider.] com.microsoft.sqlserver.jdbc.SQLServerException: The concat function requires 2 to 254 arguments. at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:262) at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1624) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:594) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:524) at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7194) at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2979) at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:248) at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:223) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(SQLServerPreparedStatement.java:446) at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:431) at com.thingworx.persistence.common.SQLStatementUtilities.executeQuery(SQLStatementUtilities.java:107) at com.thingworx.persistence.mssql.dao.BaseMssqlDao.executeQuery(BaseMssqlDao.java:134) ... 17 common frames omitted
最新バージョンはこちらを参照ください CS405625