SAP Knowledge Base Article - Preview

2483088 - Unable to create task in Java Scheduler - Cannot assign a blank-padded string to a parameter

Symptom

When creating a task, the Java Scheduler displays the error:

"The task was not added due to:An exception has occured while persisting state of task <Task ID> Please analyse the stack trace and/or send it to SAP Support center"

Ariba_Job_Error.png

Additionally, defaultTrace shows the exception:

...
An exception has ocurred while persisting state of task <Task ID> Please analyse the stack trace and/or send it to SAP Support center.
 [EXCEPTION]
 com.sap.sql.log.OpenSQLException: Failed to set the parameter 4 of the statement >>insert into BC_JOB_TASK_PARAM (TASK_ID, ARG_NAME, ARG_TYPE, ARG_VALUE, ARG_LONG_VALUE) values(?, ?, ?, ?, ?)<<: Cannot assign a blank-padded string to a parameter with JDBC type >>VARCHAR<<.
...
Caused by: com.sap.sql.check.ValueCheckerException: Cannot assign a blank-padded string to a parameter with JDBC type >>VARCHAR<<.
...


Read more...

Environment

SAP NetWeaver Application Server Java

Product

SAP NetWeaver 7.1 ; SAP NetWeaver 7.2 ; SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.3

Keywords

Ariba, Ariba job, SAP Ariba ITK job, Task scheduler, Java scheduler, task, job, OpenSQLException, BC_JOB_TASK_PARAM, tasks, The task was not added due to, Please analyse the stack trace, ValueCheckerException, Cannot assign a blank-padded string, VARCHAR, Failed to set the parameter , KBA , BC-JAS-BTC , NetWeaver Scheduler (Java) , BC-JAS-PER-SQL , Relational Persistence: Open SQLJ, Open JDBC , 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.