473,785 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.S endMail.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.Sen dMail.Send3)
Global boolean &TERM_ASSOC;

&NBR_MAIL_FL AGS = 0;

&STR_MAIL_CC = "";

&STR_MAIL_BC C = "";

&STR_MAIL_FI LES = "";

&STR_MAIL_TITLE S = "";

&STR_MAIL_SENDE R = MsgGetText(2210 6, 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********@ce rner.com" And

(&TERM_ASSOC = False)) Then

&STR_MAIL_SUBJE CT = MsgGetText(2210 6, 2, "Message not found",
DateTimeToLocal izedString(%Dat e, "MM/dd/y"),
ZZ_TEXT_AET.ZZ_ ASSOC_NAME);

&STR_MAIL_TEXT_ ASSOC = MsgGetExplainTe xt(22106, 3, "Message not
found", DateTimeToLocal izedString(%Dat e, "MM/dd/y"),
ZZ_TEXT_AET.EMA IL_TEXTLONG2);

&NBR_RET = SendMail(&NBR_M AIL_FLAGS, ZZ_TEXT_AET.ZZ_ ASSOC_EMAIL,
&STR_MAIL_CC , &STR_MAIL_BC C, &STR_MAIL_SUBJE CT, &STR_MAIL_TEXT_ ASSOC,
&STR_MAIL_FILES , &STR_MAIL_TITLE S, &STR_MAIL_SENDE R, ";", "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_TEX T_AET
(PROCESS_INSTAN CE 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 6559

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

Similar topics

10
49598
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 that the error is caused by an extended ascii character 164 (ñ). Has anyone else encountered this problem and found a solution. TIA Joel Brewster Mutual Of Omaha
1
60963
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 the problem? Thanks.
0
4920
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 values of two other columns. The problem seems to occur when I check all three conditions. When I have only two of the conditions, the procedure runs to completion and I get a resultset. Interestingly, I created a MS Access database with a...
18
5987
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 the table is define so that one particular column has datatype VARCHAR(2000) . The table was recently modified so that the data type for
3
1303
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
6617
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 com.ibm.ejs.container.EJSHome.postCreateCommon(EJSHome.java:2050) at com.ibm.ejs.container.EJSHome.postCreate(EJSHome.java:1953) at...
2
4885
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(); DataSource myDS = ExperimentJDBCHelperBean.getDataSource();
0
3189
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
7131
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 by an aggregate or other SET operation. (Message 8153) Warning: Null value is eliminated by an aggregate or other SET operation. (Message 8153) Warning: Null value is eliminated by an aggregate or other SET operation.
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10346
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.