Getting error 421
Hi All,
I am using a code sample for sending mail using javamail. It works fine if i call the class from a jsp page. But i have called the class using TimerTask (schedule to run once every day at midnight). The class TimerTask calls 2 different class for sending different types of mails accordingly. The call to first class sends the mail properly, but the second class gives an error saying "not able to connect to mail server port 21 response 421". Also the call to the first class sends 2-3 copies of mails instead of one.
Let me know what would be the issue over here.
Thanks in advance,
Naresh
The issue would be your code is wrong. Have you tried to debug it?
I don't know where the "not able to connect" message is coming from.
If you're really trying to connect on port 21 that's part of your problem.
Port 21 is the FTP port.
Similar Messages
-
I have used Oracle 9i server (9.2.0.1 version) on Windows XP machine(with SP2).I want to send Email from PL/SQL procedure.
My Question is what sort of configuration needed to perform this activity?
I have installed IIS (Internet Information Service)
in my machine, then configure my SMTP mail server
with a valid email id and password given TCP port 465.
Later I came to know that to send Email from PL/SQL I have to install Oracle JServer Code. Follow three steps. the steps are
1. Execute the script as sys "$ORACLE_HOME\javavm\install\initjvm.sql"
2. Execute the loadjava classfile as
$ORACLE_HOME\plsql\jlib>loadjava -f -v -r -u sys/**** plsql.jar
3. Execute the script as sys "$ORACLE_HOME\rdbms\admin\initplsj.sql"
I sucessfully executed the first step, but for the second step iam not able to locate the plsql.jar file in the specified path.
So Please tell me if there is any other method to perform this task
My code is as follows.
CREATE OR REPLACE PROCEDURE SEND_MAIL (
msg_to varchar2,
msg_subject varchar2,
msg_text varchar2
IS
c utl_smtp.connection;
rc integer;
msg_from varchar2(50) := '[email protected]';
mailhost VARCHAR2(30) := 'mail.google.com';
BEGIN
c := utl_smtp.open_connection(mailhost, 465);
utl_smtp.helo(c, mailhost);
utl_smtp.mail(c, msg_from);
utl_smtp.rcpt(c, msg_to);
dbms_output.put_line(' Start Sending data');
utl_smtp.data(c,'From: Oracle Database' || utl_tcp.crlf ||
'To: ' || msg_to || utl_tcp.crlf ||
'Subject: ' || msg_subject ||
utl_tcp.crlf || msg_text);
dbms_output.put_line(' Finish Sending data');
utl_smtp.quit(c);
EXCEPTION
WHEN UTL_SMTP.INVALID_OPERATION THEN
dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
WHEN UTL_SMTP.TRANSIENT_ERROR THEN
dbms_output.put_line(' Temporary e-mail issue - try again');
WHEN UTL_SMTP.PERMANENT_ERROR THEN
dbms_output.put_line(' Permanent Error Encountered.');
END;
Procedure Created.
SQL> execute prc_send_mail('[email protected]','[email protected]','Good Morning.');
BEGIN prc_send_mail('[email protected]','[email protected]','Good Morning.'); END;
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 374
ORA-06512: at "SCOTT.PRC_SEND_MAIL", line 19
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at line 1.
Please tell me how to solve this problem.
Thank You.1) Why did you install an SMTP server locally and then tell your code to try to use the server mail.google.com?
2) The error you're getting is from mail.google.com indicating that Google isn't running an open SMTP server there. I would be very surprised if Google were running a publicly available SMTP server anywhere since that would be an invitation for spammers.
Justin -
ORA-29278: SMTP transient error: 421 Service not available
Hi all,
I'm using Oracle 10g working on Windows XP Home.
I'm trying to send a basic mail from my stored procedure.
When I tried to run the code, I get ORA-29278: SMTP transient error: 421 Service not available.
Below is the code I'm trying.
CREATE OR REPLACE PROCEDURE SEND_MAIL (
msg_to varchar2,
msg_subject varchar2,
msg_text varchar2 )
IS
c utl_smtp.connection;
rc integer;
msg_from varchar2(50) := 'Oracle9.2';
mailhost VARCHAR2(30) := '127.0.0.1'; -- local database host
BEGIN
c := utl_smtp.open_connection(mailhost, 25); -- SMTP on port 25
dbms_output.put_line('ok');
utl_smtp.helo(c, mailhost);
utl_smtp.mail(c, msg_from);
utl_smtp.rcpt(c, msg_to);
utl_smtp.data(c,'From: Oracle Database' || utl_tcp.crlf ||
'To: ' || msg_to || utl_tcp.crlf ||
'Subject: ' || msg_subject ||
utl_tcp.crlf || msg_text);
utl_smtp.quit(c);
EXCEPTION
WHEN UTL_SMTP.INVALID_OPERATION THEN
dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
WHEN UTL_SMTP.TRANSIENT_ERROR THEN
dbms_output.put_line(' Temporary e-mail issue - try again');
dbms_output.put_line (sqlerrm);
WHEN UTL_SMTP.PERMANENT_ERROR THEN
dbms_output.put_line(' Permanent Error Encountered.');
END;
Below are the possibilites I tried..
I tried to ping localhost.. This is the output I get
C:\Documents and Settings\Me>ping localhost
Pinging polasa [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
In one of the thread, a user suggested to do the following
Go to Control Panel->Add or Remove Programs->Click on
Add/Remove Wndows Components
Check IIS check box.
Select Internet Information Service (IIS) option and click on Details button
Check whether SMTP Service is checked or not.
If not selected then select SMTP check box.
This process should be done on server.
It will help out from ORA-29278: SMTP transient error: 421 Service not available
problem.
There is no IIS in my Windows Components..
Any suggestions? Thanks in advanceIt sounds like you don't have an SMTP server running on your local machine.
Even if you install IIS (or some other SMTP server), that is probably not enough to send email outside of your machine because your machine is unlikely to be trusted by the downstream mail servers. If you are running this in a company, you'll need to talk to your company's mail admin to determine where the corporate SMTP server is running. If you running this at home, you'll need to find out from your ISP what SMTP servers are available to you.
Justin -
UTL_SMTP: can't connect to remote mail server (error: 421)
I'm trying to execute this command as SYS:
exec MYSCHEMA.send_mail_via_utl_smtp('[email protected]', '[email protected]', 'my subject', 'my message','mail.mydomain.com');
and I get this error:
Error starting at line 8 in command:
exec MYSCHEMA.send_mail_via_utl_smtp('[email protected]', '[email protected]', 'my subject', 'my message','mail.mydomain.com');
Error report:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 29
ORA-06512: at "SYS.UTL_SMTP", line 108
ORA-06512: at "SYS.UTL_SMTP", line 150
ORA-06512: at "MYSCHEMA.SEND_MAIL_VIA_UTL_SMTP", line 17
ORA-06512: at line 1
29278. 00000 - "SMTP transient error: %s"
*Cause: A SMTP transient error occurred.
*Action: Correct the error and retry the SMTP operation.
However, I can telnet successfully as root user to mail.mydomain.com. The stored procedure is:
create or replace
PROCEDURE send_mail_via_utl_smtp(
sender IN VARCHAR2,
recipient IN VARCHAR2,
subject IN VARCHAR2 DEFAULT NULL,
message IN VARCHAR2,
mailhost IN VARCHAR2 DEFAULT 'mailhost'
AS
mail_conn UTL_SMTP.connection;
crlf CONSTANT VARCHAR2(2) := CHR(13) || CHR(10);
smtp_tcpip_port CONSTANT PLS_INTEGER := 25;
BEGIN
mail_conn := UTL_SMTP.OPEN_CONNECTION(mailhost, smtp_tcpip_port);
UTL_SMTP.HELO(mail_conn, mailhost);
UTL_SMTP.MAIL(mail_conn, sender);
UTL_SMTP.RCPT(mail_conn, recipient);
UTL_SMTP.DATA(mail_conn, SUBSTR(
'Date: ' || TO_CHAR(SYSTIMESTAMP, 'Dy, dd Mon YYYY HH24:MI:SS TZHTZM') || crlf
|| 'From: ' || sender || crlf
|| 'Subject: ' || subject || crlf
|| 'To: ' || recipient || crlf
|| message,
1, 32767));
UTL_SMTP.QUIT(mail_conn);
END send_mail_via_utl_smtp;
Note that mail.mydomain.com is sitting on the application server, and not the database server (not sure if that is important here). Previously, I set things up doing the following as SYS user:
# cd $ORACLE_HOME/rdbms/admin
# sqlplus / as sysdba
SQL> @utlmail.sql;
Package created.
Synonym created.
SQL> @prvtmail.plb;
Package created.
Package body created.
Grant succeeded.
Package body created.
No errors.
SQL> ALTER SYSTEM SET smtp_out_server = "mail.mydomain.com" SCOPE=MEMORY;
System altered.
SQL> show parameter smtp_out_server
NAME TYPE VALUE
============
smtp_out_server string mail.mydomain.com
SQL> exec DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('my_acl_email.xml','for my db acl to send email', 'MYSCHEMA', TRUE, 'connect');
PL/SQL procedure successfully completed.
SQL> exec DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('my_acl_email.xml','mail.mydomain.com', 25, NULL);
PL/SQL procedure successfully completed.
It appears that the SYS user is permitted by the ACL, but is somehow blocked access to mail.mydomain.com on the application server. Are there any Linux configurations that need to occur in implementing this process? Or, am I missing something in configuring Oracle. I'm using 11.2.0.1.0. This is my first time setting this up. Does the database need to be cycled down then back up for any of these settings to take place?
Edited by: tem on Apr 20, 2012 2:45 PMThanks Justin, that helps a lot. Now, with the 'AUTH LOGIN' command, I'm getting the error:
ORA-29279: SMTP permanent error: 503 AUTH command used when not advertised
ORA-06512: at "SYS.UTL_SMTP", line 29
ORA-06512: at "SYS.UTL_SMTP", line 110
ORA-06512: at "SYS.UTL_SMTP", line 170
ORA-06512: at "JCLOCKGEN.SEND_MAIL_VIA_UTL_SMTP", line 22
ORA-06512: at line 1
29279. 00000 - "SMTP permanent error: %s"
*Cause: A SMTP permanent error occurred.
*Action: Correct the error and retry the SMTP operation.
UPDATE:
Actually, my procedure above uses this line:
UTL_SMTP.HELO(mail_conn, mailhost);
But I noticed Justin's code above uses:
UTL_SMTP.EHLO(mail_conn, mailhost);
When I change the HELO to EHLO, everything works fine. Here's the final code:
create or replace
PROCEDURE send_mail_via_utl_smtp(
sender IN VARCHAR2,
recipient IN VARCHAR2,
subject IN VARCHAR2 DEFAULT NULL,
message IN VARCHAR2,
mailhost IN VARCHAR2 DEFAULT 'mailhost',
auth_username IN VARCHAR2,
auth_password IN VARCHAR2
AS
mail_conn UTL_SMTP.connection;
crlf CONSTANT VARCHAR2(2) := CHR(13) || CHR(10);
smtp_tcpip_port CONSTANT PLS_INTEGER := 25;
BEGIN
mail_conn := UTL_SMTP.OPEN_CONNECTION(mailhost, smtp_tcpip_port);
UTL_SMTP.EHLO(mail_conn, mailhost);
--------------BEGIN AUTHENTICATION--------------
UTL_SMTP.command(mail_conn, 'AUTH LOGIN');
utl_smtp.command(mail_conn, utl_raw.cast_to_varchar2(utl_encode.base64_encode( utl_raw.cast_to_raw(auth_username))));
utl_smtp.command(mail_conn, utl_raw.cast_to_varchar2(utl_encode.base64_encode( utl_raw.cast_to_raw(auth_password))));
--------------END AUTHENTICATION--------------
UTL_SMTP.MAIL(mail_conn, sender);
UTL_SMTP.RCPT(mail_conn, recipient);
UTL_SMTP.DATA(mail_conn, SUBSTR(
'Date: ' || TO_CHAR(SYSTIMESTAMP, 'Dy, dd Mon YYYY HH24:MI:SS TZHTZM') || crlf
|| 'From: ' || sender || crlf
|| 'Subject: ' || subject || crlf
|| 'To: ' || recipient || crlf
|| message,
1, 32767));
UTL_SMTP.QUIT(mail_conn);
END send_mail_via_utl_smtp;
Edited by: tem on Apr 20, 2012 5:55 PM -
Getting error on installation of ERP6.0 Ehp4 SR1
Hi,
We are Installing ERP6.0 Ehp4 SR1,Getting error on the phase of : Start Central Services Instance,here iam sending the sapinst_dev.log,guide me.
TRACE 2009-09-14 14:39:26.579 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 421
ERROR 2009-09-14 14:39:28.490 [sixxcstepexecute.cpp:950]
FCO-00011 The step startJava with step key |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features_Configuration|ind|ind|ind|ind|6|0|NW_Call_Offline_CTC|ind|ind|ind|ind|7|0|startJava was executed with status ERROR .
TRACE 2009-09-14 14:39:28.788 [iaxxgenimp.cpp:752]
CGuiEngineImp::showMessageBox
<html> <head> </head> <body> <p> An error occurred while processing option SAP Solution Manager 7.0 EhP1 > SAP Systems > MaxDB > Central System > Central System. You can now: </p> <ul> <li> Choose <i>Retry</i> to repeat the current step. </li> <li> Choose <i>View Log</i> to get more information about the error. </li> <li> Stop the option and continue with it later. </li> </ul> <p> Log files are written to /tmp/sapinst_instdir/SOLMAN/SYSTEM/ADA/CENTRAL/AS. </p> </body></html>
TRACE 2009-09-14 14:39:28.793 [iaxxgenimp.cpp:1255]
CGuiEngineImp::acceptAnswerForBlockingRequest
Waiting for an answer from GUI
ThankuHi,
Please run prerequisite test on the system for checking any parameter settings left out.
After completion of prerequisite test, please go the the result and try to rectify which are red.
If every thing is ok in prerequisite test, start installation.
As per the error information, there is problem with your java installation.
Thanks & Regards,
Vidyadhar K -
How can I solve ORA-29278: SMTP transient error: 421 Service not available
Hi
I have two different Solaris Server (Server1 & server2).
In both the server SMTP server is configured.
In these two solaris server (Server1 & server2) we have installed Oracle 9i
I am using client machine to execute the following procedure.
When I connect to server1 (using SQL plus) and execute the following procedure, it works fine, and able to send emails properly.
But when I connect to server2 (using SQL plus) and execute the following procedure, I get the follwoing error.
Could you please help me to resolve this?
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> set define off
SQL> set serveroutput on size 1000000
SQL> BEGIN
2 mail_files( 'localhost',
3 'Frm',
4 '[email protected]',
5 'From production',
6 'Test message from production',
7 9999999999,
8 NULL,
9 NULL,
10 NULL,
11 0 );
12 END;
13 /
BEGIN
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 327
ORA-06512: at "PROD_L.MAIL_FILES", line 238
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at line 2
SQL>Hi
I have two different Solaris Server (Server1 & server2).
In both the server SMTP server is configured.
In these two solaris server (Server1 & server2) we have installed Oracle 9i
I am using client machine to execute the following procedure.
When I connect to server1 (using SQL plus) and execute the following procedure, it works fine, and able to send emails properly.
But when I connect to server2 (using SQL plus) and execute the following procedure, I get the follwoing error.
Could you please help me to resolve this?
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> set define off
SQL> set serveroutput on size 1000000
SQL> BEGIN
2 mail_files( 'localhost',
3 'Frm',
4 '[email protected]',
5 'From production',
6 'Test message from production',
7 9999999999,
8 NULL,
9 NULL,
10 NULL,
11 0 );
12 END;
13 /
BEGIN
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 327
ORA-06512: at "PROD_L.MAIL_FILES", line 238
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at line 2
SQL> -
ORA-29278: SMTP transient error:421 Service not available on oracle 10g
HIi,
I am trying to send e-mails by using PL/Sql procedure . I am using UTL_MAIL/UTL_SMTP on oracle 10g R1 database.
There is no problem in creating procedure,but when i am doing execution i am getting the mention error.
I am trying to send mail with attachment as excel file.
ORA-20001: The following error has occured: ORA-29278: SMTP transient error:
421 Service not available
ORA-06512: at "SCOTT.MAIL_ATT_RAW", line 64
ORA-06512: at line 1
-----my procedure code------
CREATE OR REPLACE PROCEDURE mail_att_raw(filename varchar2) AS
fil BFILE;
file_len PLS_INTEGER;
MAX_LINE_WIDTH PLS_INTEGER := 54;
buf RAW(2100);
amt BINARY_INTEGER := 2000;
pos PLS_INTEGER := 1; /* pointer for each piece */
filepos PLS_INTEGER := 1; /* pointer for the file */
filenm VARCHAR2(50) := filename; /* binary file attachment */
data RAW(2100);
chunks PLS_INTEGER;
len PLS_INTEGER;
modulo PLS_INTEGER;
pieces PLS_INTEGER;
err_num NUMBER;
err_msg VARCHAR2(100);
resultraw RAW(32000);
BEGIN
/* Assign the file a handle */
fil := BFILENAME('BFILE_DIR', filenm);
/* Get the length of the file in bytes */
file_len := dbms_lob.getlength(fil);
/* Get the remainer when we divide by amt */
modulo := mod(file_len, amt);
/* How many pieces? */
pieces := trunc(file_len / amt);if (modulo <> 0) then
pieces := pieces + 1;end if;/* Open the file */
dbms_lob.fileopen(fil, dbms_lob.file_readonly);/* Read the first amt into the buffer */
dbms_lob.read(fil, amt, filepos, buf);/* For each piece of the file . . . */
FOR i IN 1..pieces LOOP/* Position file pointer for next read */
filepos := i * amt + 1;/* Calculate remaining file length */
file_len := file_len - amt;/* Stick the buffer contents into data */
data := utl_raw.concat(data, buf);/* Calculate the number of chunks in this piece */
chunks := trunc(utl_raw.length(data) / MAX_LINE_WIDTH);/* Don't want too many chunks */
IF (i <> pieces) THEN
chunks := chunks - 1;
END IF;/* For each chunk in this piece . . . */
FOR j IN 0..chunks LOOP/* Position ourselves in this piece */
pos := j * MAX_LINE_WIDTH + 1;/* Is this the last chunk in this piece? */
IF (j <> chunks) THEN len := MAX_LINE_WIDTH;
ELSE
len := utl_raw.length(data) - pos + 1;
IF (len > MAX_LINE_width) THEN
len := MAX_LINE_WIDTH;
END IF;
END IF;/* If we got something, let's write it */
IF (len > 0 ) THEN
resultraw := resultraw || utl_raw.substr(data, pos, len);
END IF;
END LOOP;/* Point at the rest of the data buffer */
IF (pos + len <= utl_raw.length(data)) THEN
data := utl_raw.substr(data, pos + len);
ELSE
data := NULL;
END IF;/* We're running out of file, only get the rest of it */
if (file_len < amt and file_len > 0) then
amt := file_len;
end if;/* Read the next amount into the buffer */dbms_lob.read(fil, amt, filepos, buf);
END LOOP;/* Don't forget to close the file */
dbms_lob.fileclose(fil);
SYS.UTL_MAIL.SEND_ATTACH_RAW(sender => '[email protected]', recipients => '[email protected]',subject => 'Testmail', message => 'Hallo', attachment => resultraw, att_filename => filename);
EXCEPTION
WHEN OTHERS THEN--dbms_output.put_line('Fehler');
raise_application_error(-20001,'The following error has occured: ' || sqlerrm);
END;
Please suggest me what settings i need to change. This same procedure is running on another maching,but not on my machine.
If somebody is having any other simple procedure ,please help me.
My SMTP port -25
Thanks in advance.Hi Justin,
Please get the answers of your queries
The error you're getting is coming from the SMTP server you are trying to connect to.
- What SMTP server is your database configured to use?
Reply - I am using IIS(5.0)
- What SMTP server is the database where this code is working configured to use?
Reply - Same IIS. Database is installed locally on my machine only. I am trying to send mail locally to me only,Not to the outside person.
- Has the SMTP server been configured to allow connections from both machines?
Reply - Yes
One more query, do we really require to set the SMTP_OUT_SERVER parameter for SCOPE=BOTH
ALTER SYSTEM SET smtp_out_server = '172.16.1.10' SCOPE=BOTH
I am not able to set like this for BOTH,only for SPFILE i can set ?.
My SMTP Server IP=172.16.1.10
PORT- 25
Thanks
Manoj -
Error "421 #4.4.5 Too many connections from your host"
We have deployed a Java application using JavaMail which enables people to send email to their contact lists. It has been in use for a few years, various updates being applied over that time. Most of our customers have no problem. But a couple of weeks ago, two of them suddenly could no longer send emails.
The connection to the SMTP server works but when the application sends email, it gets an error 421. A debugging dump is reproduced below: the target email address is changed to protect the uninvolved; messages starting with **** come from my program, other come from JavaMail.
Can anyone solve this problem? suggest where to look? Thanks.
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp10.bellnet.ca", port 25, isSSL false
220 toip35-bus.srvr.bell.ca ESMTP
DEBUG SMTP: connected to host "smtp10.bellnet.ca", port: 25
EHLO Communications
250-toip35-bus.srvr.bell.ca
250-8BITMIME
250 SIZE 20971520
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg "20971520"
**** transport connect worked
NOOP
250 ok
**** about to send message to [email protected]
NOOP
250 ok
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
**** cEmailAuthenticator.getPasswordAuthentication() called
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp10.bellnet.ca", port 25, isSSL false
421 #4.4.5 Too many connections from your host.
DEBUG SMTP: could not connect to host "smtp10.bellnet.ca", port: 25, response: 4Looks like the server keeps track of the number of connections from each machine, and when the number of connections in a certain period exceeds some number, that machine is deemed to be a potential spammer. At any rate it is something you should discuss with the manager of that server.
-
Payables Open Interface Import getting errors out
Hello All,
I am trying to run "Payables Open Interface Import" program to upload the invoice but the program is getting error out, in the log file at the end i am getting the below error:
(Insert ap inv dists 1a) Inside the insert function
(Insert ap inv dists 1) Insert into ap_invoice_distributions
(Insert ap inv dists 1) Insert into ap_invoice_distributions
ORA-00001: unique constraint (AP.AP_INVOICE_DISTRIBUTIONS_U1) violated
Insert_ap_inv_dists<-Create_lines<-Import_invoices<- Before report trigger
(Create Lines 22) Insert into ap_invoice_distributions
create_non_item_lines<-Import_invoices<- Before report trigger
Any one faced this kind of issue?
any suggestions to resolve this.
Thanks & Regards
AboothahirPl post details of OS, database and EBS versions.
Pl see these MOS Docs
Payables Open Interface Error ORA-00001: unique constraint (AP.AP_INVOICE_DISTRIBUTIONS_U1) violated (Doc ID 357784.1)
APXIIMPT Payables Open Interface Import Fails ORA-00001 (Doc ID 353052.1)
Unique Constraint Violated Importing Invoices With Multi Line Distribution Set (Doc ID 386323.1)
HTH
Srini -
Excel service and OWA - getting ERROR while trying to open/edit Excel documents
Hi All,
We have configured SharePoint 2013 with Excel Service and OWA (Office Web Apps).
After configuring, we are able to view/edit Word or PowerPoint documents from the browser (as OWA is configured). But we are getting errors while trying to open/edit Excel documents.
We are not able to view/edit the excel workbook from the browser (through OWA).
To open the excel in the browser, decision has to be taken at the farm level on what to be used – Excel Service or OWA Server? Is it possible to do setting at site collection level?
Error details are given below:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/25/2013 1:29:08 PM
Event time (UTC): 3/25/2013 7:59:08 AM
Event ID: fc2e0530f493493896e6c8b6297a0423
Event sequence: 10
Event occurrence: 3
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT/x-1-130086717598089315
Trust level: Full
Application Virtual Path: /x
Application Path: C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\
Machine name: VHYDMANTHSTP-02
Process information:
Process ID: 1252
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: ArgumentException
Exception message: An entry with the same key already exists.
at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL:
http://mysrevr/x/_layouts/xlpreview.aspx?ui=en-US&rs=en-US&WOPISrc=http://myservernames1/_vti_bin/wopi.ashx/files/f36d669ceb814d67bdad0e1e1f98e466&wdSmallView=1
Request path: /x/_layouts/xlpreview.aspx
User host address: 10.81.138.92
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 13
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)I have the same issue while opening the file , i have checked every thing twice. but unable to fix this thing . can any one help.
One more thing which is i am wondering none of the MS representative replied on this post which is originally posted on March 27-2013.
is microsoft alive??
Imran Bashir Network Administrator MCP, JNCIA-EX,ER,JNIOUS +92-333-4330176 -
Getting error while creating the variable of Schema Element type
Hi everybody,
For creating a variable of schema element type I am doing the following steps...
Select 'Variables' after right clicking on bpel process. IN this window, go to 'Create VAriable' then select 'Element' type. Now in Type Choose, I expanded the my imported schema files. And selected a element type, then click ok to create this variable... I am getting the message...
IN ORDER TO SAVE IMPORTED WSDL/SCHEMA FILES, YOU MUST HAVE A PARTNER LINK LOCATED UNDER THE CURRENT PROJECT DIRECTORY.
What is mean by that.
I have imported the schema files in project. AFter that I have imported them into the WSDL also. Now why I am getting error while creating the variable. However I can create variable directly in .BPEL file then everything is fine. And it is working also. But what is mean with the above error? Why I am not able to create variable through GUI?
Thanks.Hi,
I have this same problem this morning, and I was going crazy, until I found this webpage on the internet:
[http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process|http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process]
The idea is that the jdeveloper is not very good working with directories with spaces on the directory name. If you move all your work to a directory without spaces, it will work smoothly. At least, it had worked for me.
Regards,
Nacho -
Getting error while schedule a webi report
Hi All,
I am getting error "A database error occured. The database error text is: The supplied XML is not valid. [Measures].[4KO5AOUTL3ZKE55WDDOMUB0AI]. (WIS 10901) " while scheduling a Webi report.
Could anyone help me regarding the error?
RegardsHi Manoj,
Go to the controls tab in parameters in universe designer and there increase the "Limit size of result set to" and "limit execution time to".
Also in webi go to the edit query and increase the "maximum rows retrived" and "maximu retrievel time".
I think this should avoid partial results.
Thanks,
Neeraj -
Getting error while testing a outbound file in oracle B2B11g
Hi,
I am trying to configuare a outbound scenario in oracle B2B 11g.
I have created .ecs file and .xsd file and created a document type also and i am using generic file 1.0 as a lintening channel protocol and trying to read the input xml document from a perticular path.
I had setup partner and agreement also. everything is working fine and also file is succesfully polling from the source folder but i am getting error in B2B as :
B2B-50083
Error Description Machine Info: (infva0325) Description: Document protocol identification error.
Error Level ERROR_LEVEL_COLLABORATION
Error Severity ERROR
Error Text Document protocol identification error.
Can anyone guide me how to resolve this error?
I had tried everything but of no use.
Please do reply me with your suggestions.Hi Anuj,
Please find below xml data which will be saved as .txt file for outbound processing. Let me know if there are any changes i have to do. Please let me know if you need any further information. Listening channel is reading the file but in agreement level it is failing.
<?xml version="1.0" encoding="UTF-8"?><Transaction-DESADV XDataVersion="1.0" Standard="EDIFACT" Version="D93A" CreatedBy="ECXEngine_837" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" CreatedDate="2011-12-14T12:59:40" GUID="{2d323135-3336-3630-3232-313938393033}" xmlns="urn:oracle:integration:b2b:099C29D4C4ED419194917C20ADF8ABC3">
<Internal-Properties>
<Data-Structure Name="Interchange">
<Property Name="InterchangeSenderID">senderID</Property>
<Property Name="InterchangeSenderQual">senderQuali</Property>
<Property Name="InterchangeReceiverID">RecieverID</Property>
<Property Name="InterchangeReceiverQual">RecieverQuali</Property>
<Property Name="RepeatingSeparator"/>
<Property Name="InterchangeApplicationRef">DESADV</Property>
<Data-Structure Name="Transaction">
<Property Name="TransactionID">DESADV</Property>
<Property Name="TransactionControllingAgency"/>
<Property Name="TransactionMessageVersionNumber">D</Property>
<Property Name="TransactionMessageReleaseNumber">93A</Property>
<Property Name="TransactionAssociationAssignedCode"/>
</Data-Structure>
</Data-Structure>
</Internal-Properties>
<Segment-UNH>
<Element-0062>#ControlNumber#</Element-0062>
<Composite-S009>
<Element-0065>DESADV</Element-0065>
<Element-0052>D</Element-0052>
<Element-0054>93A</Element-0054>
<Element-0051>UN</Element-0051>
<Element-0057>EDIT30</Element-0057>
</Composite-S009>
</Segment-UNH>
<Segment-BGM>
<Composite-C002>
<Element-1001>351</Element-1001>
</Composite-C002>
<Element-1004>3364382</Element-1004>
</Segment-BGM>
<Segment-DTM>
<Composite-C507>
<Element-2005>137</Element-2005>
<Element-2380>20111214</Element-2380>
<Element-2379>102</Element-2379>
</Composite-C507>
</Segment-DTM>
<Loop-Group_2>
<Segment-NAD>
<Element-3035>SH</Element-3035>
<Composite-C082>
<Element-3039>7393142020009</Element-3039>
<Element-1131 xsi:nil="true"/>
<Element-3055>9</Element-3055>
</Composite-C082>
</Segment-NAD>
</Loop-Group_2>
<Loop-Group_2>
<Segment-NAD>
<Element-3035>CN</Element-3035>
<Composite-C082>
<Element-3039>7350056030012</Element-3039>
<Element-1131 xsi:nil="true"/>
<Element-3055>9</Element-3055>
</Composite-C082>
</Segment-NAD>
</Loop-Group_2>
<Loop-Group_10>
<Segment-CPS>
<Element-7164>1</Element-7164>
</Segment-CPS>
<Loop-Group_15>
<Segment-LIN>
<Element-1082>1</Element-1082>
<Element-1229 xsi:nil="true"/>
</Segment-LIN>
<Segment-PIA>
<Element-4347>5</Element-4347>
<Composite-C212_1>
<Element-7140>210587</Element-7140>
<Element-7143>BP</Element-7143>
</Composite-C212_1>
</Segment-PIA>
<Segment-QTY>
<Composite-C186>
<Element-6063>12</Element-6063>
<Element-6060>3</Element-6060>
</Composite-C186>
</Segment-QTY>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>PK</Element-1153>
<Element-1154>1</Element-1154>
</Composite-C506>
</Segment-RFF>
</Loop-Group_16>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>VN</Element-1153>
<Element-1154>6152310</Element-1154>
</Composite-C506>
</Segment-RFF>
<Segment-DTM>
<Composite-C507>
<Element-2005>171</Element-2005>
<Element-2380>20111214</Element-2380>
<Element-2379>102</Element-2379>
</Composite-C507>
</Segment-DTM>
</Loop-Group_16>
<Loop-Group_23>
<Segment-QVA>
<Composite-C279>
<Element-6064>0</Element-6064>
<Element-6063_1>83</Element-6063_1>
</Composite-C279>
<Element-4221>CP</Element-4221>
</Segment-QVA>
</Loop-Group_23>
</Loop-Group_15>
<Loop-Group_15>
<Segment-LIN>
<Element-1082>2</Element-1082>
<Element-1229 xsi:nil="true"/>
</Segment-LIN>
<Segment-PIA>
<Element-4347>5</Element-4347>
<Composite-C212_1>
<Element-7140>210510</Element-7140>
<Element-7143>BP</Element-7143>
</Composite-C212_1>
</Segment-PIA>
<Segment-QTY>
<Composite-C186>
<Element-6063>12</Element-6063>
<Element-6060>3</Element-6060>
</Composite-C186>
</Segment-QTY>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>PK</Element-1153>
<Element-1154>1</Element-1154>
</Composite-C506>
</Segment-RFF>
</Loop-Group_16>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>VN</Element-1153>
<Element-1154>6152310</Element-1154>
</Composite-C506>
</Segment-RFF>
<Segment-DTM>
<Composite-C507>
<Element-2005>171</Element-2005>
<Element-2380>20111214</Element-2380>
<Element-2379>102</Element-2379>
</Composite-C507>
</Segment-DTM>
</Loop-Group_16>
<Loop-Group_23>
<Segment-QVA>
<Composite-C279>
<Element-6064>0</Element-6064>
<Element-6063_1>83</Element-6063_1>
</Composite-C279>
<Element-4221>CP</Element-4221>
</Segment-QVA>
</Loop-Group_23>
</Loop-Group_15>
<Loop-Group_15>
<Segment-LIN>
<Element-1082>3</Element-1082>
<Element-1229 xsi:nil="true"/>
</Segment-LIN>
<Segment-PIA>
<Element-4347>5</Element-4347>
<Composite-C212_1>
<Element-7140>081349</Element-7140>
<Element-7143>BP</Element-7143>
</Composite-C212_1>
</Segment-PIA>
<Segment-QTY>
<Composite-C186>
<Element-6063>12</Element-6063>
<Element-6060>1</Element-6060>
</Composite-C186>
</Segment-QTY>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>PK</Element-1153>
<Element-1154>2</Element-1154>
</Composite-C506>
</Segment-RFF>
</Loop-Group_16>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>VN</Element-1153>
<Element-1154>6152310</Element-1154>
</Composite-C506>
</Segment-RFF>
<Segment-DTM>
<Composite-C507>
<Element-2005>171</Element-2005>
<Element-2380>20111214</Element-2380>
<Element-2379>102</Element-2379>
</Composite-C507>
</Segment-DTM>
</Loop-Group_16>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>NB</Element-1153>
<Element-1154>JF074</Element-1154>
</Composite-C506>
</Segment-RFF>
<Segment-DTM>
<Composite-C507>
<Element-2005>21E</Element-2005>
<Element-2380>20160905</Element-2380>
<Element-2379>102</Element-2379>
</Composite-C507>
</Segment-DTM>
</Loop-Group_16>
<Loop-Group_23>
<Segment-QVA>
<Composite-C279>
<Element-6064>0</Element-6064>
<Element-6063_1>83</Element-6063_1>
</Composite-C279>
<Element-4221>CP</Element-4221>
</Segment-QVA>
</Loop-Group_23>
</Loop-Group_15>
<Loop-Group_15>
<Segment-LIN>
<Element-1082>4</Element-1082>
<Element-1229 xsi:nil="true"/>
</Segment-LIN>
<Segment-PIA>
<Element-4347>5</Element-4347>
<Composite-C212_1>
<Element-7140>051596</Element-7140>
<Element-7143>BP</Element-7143>
</Composite-C212_1>
</Segment-PIA>
<Segment-QTY>
<Composite-C186>
<Element-6063>12</Element-6063>
<Element-6060>1</Element-6060>
</Composite-C186>
</Segment-QTY>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>PK</Element-1153>
<Element-1154>2</Element-1154>
</Composite-C506>
</Segment-RFF>
</Loop-Group_16>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>VN</Element-1153>
<Element-1154>6152310</Element-1154>
</Composite-C506>
</Segment-RFF>
<Segment-DTM>
<Composite-C507>
<Element-2005>171</Element-2005>
<Element-2380>20111214</Element-2380>
<Element-2379>102</Element-2379>
</Composite-C507>
</Segment-DTM>
</Loop-Group_16>
<Loop-Group_16>
<Segment-RFF>
<Composite-C506>
<Element-1153>NB</Element-1153>
<Element-1154>116812505</Element-1154>
</Composite-C506>
</Segment-RFF>
<Segment-DTM>
<Composite-C507>
<Element-2005>21E</Element-2005>
<Element-2380>20150131</Element-2380>
<Element-2379>102</Element-2379>
</Composite-C507>
</Segment-DTM>
</Loop-Group_16>
<Loop-Group_23>
<Segment-QVA>
<Composite-C279>
<Element-6064>0</Element-6064>
<Element-6063_1>83</Element-6063_1>
</Composite-C279>
<Element-4221>CP</Element-4221>
</Segment-QVA>
</Loop-Group_23>
</Loop-Group_15>
</Loop-Group_10>
<Segment-CNT>
<Composite-C270>
<Element-6069>2</Element-6069>
<Element-6066>4</Element-6066>
</Composite-C270>
</Segment-CNT>
<Segment-UNT>
<Element-0074>#SegmentCount#</Element-0074>
<Element-0062>#ControlNumber#</Element-0062>
</Segment-UNT>
</Transaction-DESADV> -
Getting Error while posting through KB11N : No true sender object entered
HI Expert,
We have stastical internal order defined and same we are using in Asset. Let me explain the scenarion.
We created the Purchase requisition with the stastical Internal Order then we did Purchase Order and MIGO -Goods Receipt.
Now we realised that wrong Internal Order was used. Now we want to tranasfer cost from that Internal order to New Internal Order. we are trying to post through KB11N but while giving the all details i am getting error as per below;
No true sender object entered
Message no. BK175
Diagnosis
You have entered a statistical object as a sender. Statistical objects, however, are only intended for use with dual account assignments.
Procedure
1. If you require a dual account assignment, enter a true object as a sender also.
We are using cost element with having cost element category 90.
I don't no which is the true sender Object.
Thanks in advance
ealry help will be highly appreciated.Your postings had happened to a statistical internal order. I hope the real postings might have happened to a cost centre.
You cannot settle anything from a statistical internal order. It is just for information purpose only. If the above posting had captured a cost centre (real posting), you can distribute/assess the cost from the cost centre to a real internal order for your purpose. -
While activating a request in DSO getting error code 10
While activating a request in DSO getting error code 10
Hi All,
I am trying to load data into Billing: Condition Data (0SD_O06) using 2LIS_13_VDKON. First while loading data I am getting error
Record 8778 :InfoObject SOLD_TO does not contain alpa-conforming value 100000 which I changed manually in PSA maintenence and tried to load data again and now I am getting an error (Error 10 in the update) ID:RSAR No119.
I have checked the formula in Transformation and it works fine. Still I am not able to load data.
Please help.
Thanks and regards
Vishal PardeshiCheck the log for the request from the manage screen of the DSO, it will be there next to the monitor button.
Otherwise you can check the error from the monitor screen of the request in Details tab.
Veerendra.
Maybe you are looking for
-
Image instead of text in Spry validation?
Hi, I have 2 questions concerning Spry implementation: 1. Instead of a long winded error text message in a textfield validation I just want to put a little image ( a picture tells a thousand words, they say!), like an "X" or in case the entry is vali
-
Error message when Elements starts installation process and halts
Mac OS 10.7.2 on a 13" macBook Air 1.8 ghz intel Core i7 4 GB Ram 20GB unused SSD space, After clicking "trial" and entering my Admin pasword, the install starts but then halts with the following messages: Exit Code: 24 ------------------------------
-
Dual monitor not working in 2012R2 essentials anywhere access
Hi I tried to connect to 2012R2 Ess anywhere access (Remote portal) from a W7Pro client using two monitors. Only one monitor gets used though. Can Anywhere Access be configured to enable dual monitor use in RDP sessions? Many thanks Rgds Willem
-
Project Systems Posting Problem
Hi All When i am trying to Post to Gl Account I am getting a error "FI: Postings" is not allowed (WBS C/1000-01)" Where C/1000-01 is my WBS. Can any one guide me on this. Regards
-
SAP 4.7 & SAP 6.0 version
Hi Guys, What are the additional features in SAP 6.0 than SAP 4.7 related to SD. regards, ram