If your Unifile is also a SQL Table, and the data you put into 73 is
illegal for that table, it will cause a write failure as the SQL
checking will not allow you to write it.

John Woollam  |  Group Financial Systems  |  Travis Perkins PLC  |
01604 682751
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kevin King
Sent: 11 January 2010 14:25
To: U2 Users List
Subject: [U2] UOJ "The RPC Failed" on Unifile.write()

I have a test UOJ program communicating to a backend Unidata/AIX server
that
seems to work fine with the exception (pun intended) of UniFile write.
The
file opens fine, we can read the record fine, but when attempting to
update
the record, we get this:

asjava.uniobjects.UniFileException: The RPC failed
        at asjava.uniobjects.UniFile.write(UniFile.java:1288)
        at Test.main(Test.java:46)

Here's the offending code:

43 UniFile uFile = uSession.open("PRODUCT");
44 UniDynArray record = new
UniDynArray(uFile.read("001!JM7012CK-6EU-F"));
45 record.replace(73,"TEST TEST TEST");
46 uFile.write("001!JM7012CK-6EU-F",record);

Probably something stupidly simple; any ideas?

-Kevin
http://www.PrecisOnline.com
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
</head>
<body>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">This e-mail and any 
attachments are confidential and intended solely for the use of the addressee 
only. If you have received this message in error, you must not copy, distribute 
or disclose the contents; please notify the sender immediately and delete the 
message. </SPAN></P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">This message is 
attributed to the sender and may not necessarily reflect the view of Travis 
Perkins plc or its subsidiaries (Travis Perkins). Agreements binding Travis 
Perkins may not be concluded by means of e-mail communication. </SPAN></P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">E-mail transmissions are 
not secure and Travis Perkins accepts no responsibility for changes made to 
this 
message after it was sent. Whilst steps have been taken to ensure that this 
message is virus free, Travis Perkins accepts no liability for infection and 
recommends that you scan this e-mail and any attachments. </SPAN></P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">Part of Travis Perkins 
plc. Registered Office: Lodge Way House, Lodge Way, Harlestone Road, 
Northampton, NN5 7UG. </SPAN></P>
</BODY>
</HTML>

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to