473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

CLI0109E String Data Right Truncation SQLSTATE=22001

We are on DB2, AIX fixpak 14

This error happens when running PeopleSoft PeopleCode Application
Engine process.

I have checked other posts out here and it seems like others who have
reported it seem to be saying their is a problem with the way DB2 is
interpreting a string statement with a varchar field.

-- 00.03.40 ..(ZZ_EX_NOTS.SendMail.Send3) (PeopleCode)

-- 00.03.41 Application Engine program ZZ_EX_NOTS ended normally

-- 00.03.41 SQL Error: [IBM][CLI Driver] CLI0109E String data right
truncation. SQLSTATE=22001 (SQLSTATE 22001) -99999
THIS CODE BELOW IS (ZZ_EX_NOTS.SendMail.Send3)
Global boolean &TERM_ASSOC;

&NBR_MAIL_FLAGS = 0;

&STR_MAIL_CC = "";

&STR_MAIL_BCC = "";

&STR_MAIL_FILES = "";

&STR_MAIL_TITLES = "";

&STR_MAIL_SENDER = MsgGetText(22106, 1, "Message not found");

If (Weekday(%Date) = 1) Then

/*Sends email to associates*/

/*Neal NEVER gets an email about this*/

If (ZZ_TEXT_AET.ZZ_ASSOC_EMAIL <"np********@cerner.com" And

(&TERM_ASSOC = False)) Then

&STR_MAIL_SUBJECT = MsgGetText(22106, 2, "Message not found",
DateTimeToLocalizedString(%Date, "MM/dd/y"),
ZZ_TEXT_AET.ZZ_ASSOC_NAME);

&STR_MAIL_TEXT_ASSOC = MsgGetExplainText(22106, 3, "Message not
found", DateTimeToLocalizedString(%Date, "MM/dd/y"),
ZZ_TEXT_AET.EMAIL_TEXTLONG2);

&NBR_RET = SendMail(&NBR_MAIL_FLAGS, ZZ_TEXT_AET.ZZ_ASSOC_EMAIL,
&STR_MAIL_CC, &STR_MAIL_BCC, &STR_MAIL_SUBJECT, &STR_MAIL_TEXT_ASSOC,
&STR_MAIL_FILES, &STR_MAIL_TITLES, &STR_MAIL_SENDER, ";", "Content-
type: text/html; charset=utf8");

If Not (&NBR_RET = 0) Then

MessageBox(0, "", 0, 0, "Return status from mail = " |
&NBR_RET);

End-If;

End-If;

End-If;
The table is called zz_text_aet. On our database I pulled the DDL:

CREATE TABLE PSADM.PS_ZZ_TEXT_AET
(PROCESS_INSTANCE DECIMAL(10, 0) NOT NULL,
EMPLID CHARACTER(11) NOT NULL,
ZZ_ASSOC_NAME CHARACTER(50) NOT NULL,
ZZ_ASSOC_EMAIL CHARACTER(50) NOT NULL,
ZZ_MGR_NAME CHARACTER(50) NOT NULL,
ZZ_MGR_EMAIL CHARACTER(50) NOT NULL,
ZZ_EXEC_NAME CHARACTER(50) NOT NULL,
ZZ_EXEC_EMAIL CHARACTER(50) NOT NULL,
PERIOD_END_DT DATE,
LINE_OF_BUS CHARACTER(50) NOT NULL,
PROJECT_ID CHARACTER(15) NOT NULL,
EMAIL_TEXTLONG LONG VARCHAR,
EMAIL_TEXTLONG1 LONG VARCHAR,
EMAIL_TEXTLONG2 LONG VARCHAR

I believe it is having a problem with the EMAIL_TEXTLONG2 field but
how do I figure out where the problem is? and how to resolve? This is
way over my head. Please help.

Thanks, Brenda

May 30 '07 #1
0 6517

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: joel.brewster | last post by:
We have a VB6 application using ADO version 2.5 and I am receiving a " CLI0109E String data right truncation. SQLSTATE=22001" error when I execute the rs.UpdateBatch method. I have determined...
1
by: gimme_this_gimme_that | last post by:
When you get the message : String data right truncation. SQLSTATE=22001 What is usually the source of the problem? Might a null value assigned get a PreparedStatement's setString method be...
0
by: Trophy Thief | last post by:
I'm getting an odd error when I try to run a select statement in my stored procedure. I need to select records where one field = the first host variable, and the second host variable is between the...
18
by: gimme_this_gimme_that | last post by:
I'm driving Weblogic 8.1.3 on WinTel. DB2 8.1.4 on Sun64. I'm using Weblogic DB2's Type 2 driver, which has been very reliable - so far. I have a PreparedStatement that updates perfectly when...
3
by: situ | last post by:
hi all, i have table structure like below CREATE TABLE T1( ID INTEGER NOT NULL , STORY CLOB(1048576) NOT LOGGED NOT COMPACT) IN "USR_MANAGEMENT_DAT" LONG IN "LONG_TSPCE_02_DAT"
2
by: roha_78 | last post by:
COM.ibm.db2.jdbc.DB2Exception: CLI0109E String data right truncation. SQLSTATE=22001 at com.ibm.ejs.container.ContainerManagedBeanO.postCreate(ContainerManagedBeanO.java:500) at...
2
by: roha_78 | last post by:
i am using the follwing code to connect to db2 : java.sql.Connection connection = null; java.sql.ResultSet rs = null; ExperimentJDBCHelperBean jdbchelper = new ExperimentJDBCHelperBean();...
0
by: priyankas | last post by:
I am getting this error when doing a SELECT statement . COM.ibm.db2.jdbc.DB2Exception Message is: CLI0 :109E String data right truncation. SQLSTATE=22001 Can anyone help me out with this?
1
by: B D Jensen | last post by:
Hi! Sometimes I have som jobs that dies. In the job history I found such as: Message Executed as user: domain\batchuser. ...r SET operation. (Message 8153) Warning: Null value is eliminated...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.