bobby_tamayo_automic

How to avoid issue when executing R3_IMPORT_JOBS or R3_IMPORT_CALENDAR ?

Discussion created by bobby_tamayo_automic on Sep 21, 2017
Latest reply on Jan 10, 2018 by bobby_tamayo_automic
How to avoid the following error message when executing R3_IMPORT_JOBS or R3_IMPORT_CALENDAR ?

Error message in the report log:
2017-09-11 09:14:54 - U02000155 Internal error (Exception). 
java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: 16 
at com.uc4.ex.UserData.<init>(UserData.java:56) 
at com.uc4.ex.JobRoutine.getUserData(JobRoutine.java:1158) 
at com.uc4.ex.Job.getUserData(Job.java:907) 
at com.uc4.ex.sap.SAPJob.openUserConnection(SAPJob.java:1170) 
at com.uc4.ex.sap.R3_IMPORT_JOBS.execute(R3_IMPORT_JOBS.java:90) 
at com.uc4.ex.sap.SAPJob.execute(SAPJob.java:358) 
at com.uc4.ex.Job.run(Job.java:469) 
at com.uc4.ex.ThreadPool$RunnableDecorator.run(ThreadPool.java:53) 
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
at java.util.concurrent.FutureTask.run(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
at java.lang.Thread.run(Unknown Source) 
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 16 
at java.lang.String.substring(Unknown Source) 
at com.uc4.ex.UserData.<init>(UserData.java:51) 
... 12 more 


The cause of this issue is that the password of the User object who execute the SAP job has more than 16 characters. 

Solution:
Please shorten the password to less than 16 characters of the User object who executes the SAP job. Please note that this is a limitation on the User Object when executing R3_IMPORT_JOBS or R3_IMPORT_CALENDAR functions.

Outcomes