UTL_MAIL, ORA-29261: bad argument
Hi, I'm sort of a newbie PLSQL and this is my first post here. I saw that people asked this question before and I saw concerned responses. But here's the situation:BEGIN
UTL_MAIL.SEND('[email protected]',
'[email protected]');
END;
This is the code that I'm running. But I get the error indicated in the title. Here is what I tried so far; I installed UTl_MAIL packets because they are not pre installed according to http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_mail.htm#i1001699, and then I set the parameter SMTP_OUT.show parameter smtp_out_server
---
smtp_out_server string 10.200.123.135
But I still get the error. I'm running on 10g release 2 XE on my local, and I am able to ping the e-mail server.Published by: user1156042 on July 14, 2010 01:37
UTL_MAIL is an excellent example of how not to write a bunch of IMO... and is kind of disgusting to see this junk programming of Oracle.
I think you simply run into a bug because you do not specify the optional material and/or message parameters. At the very least, include the subject.
Here is an example (10.2 XE):
SQL> exec utl_mail.send( sender => '', recipients => '', subject => 'Test', message => 'Test email' );
PL/SQL procedure successfully completed.
SQL> exec utl_mail.send( sender => '', recipients => '', subject => 'Test' );
PL/SQL procedure successfully completed.
SQL> exec utl_mail.send( sender => '', recipients => '' );
BEGIN utl_mail.send( sender => '', recipients => '' ); END;
*
ERROR at line 1:
ORA-29261: bad argument
ORA-06512: at "SYS.UTL_ENCODE", line 190
ORA-06512: at "SYS.UTL_ENCODE", line 315
ORA-06512: at "SYS.UTL_MAIL", line 152
ORA-06512: at "SYS.UTL_MAIL", line 455
ORA-06512: at "SYS.UTL_MAIL", line 594
ORA-06512: at line 1
As you can see, do not specify the object (optional parameter) causes an error (trying to encode the header using the ENCODE_HEADER() function according to the UTL_MAIL package source).
Tags: Database
Similar Questions
-
apex_mail, error ora-29261 htmldb_mail
Here is the code and the output to send the e-mail message and push the queue. Once I push the queue of e-mail, the ora-29261 will appear. It works fine on several other databases, but I have problems in a database. I tried tracing action but no extra information about the oracle error. I changed the email addresses below for purposes of protection of personal information. I know these aren't valid email addresses.
declare
number of ws_id;
Start
Select max (workspace_id) in the ws_id of apex_applications;
wwv_flow_api.set_security_group_id (ws_id);
(htmldb_mail). Send
p_to = > '[email protected] ',.
P_FROM = > '[email protected] ',.
p_subj = > 'test ',.
p_body = > 'test');
end;
/
PL/SQL procedure successfully completed.
-------------------------------------------------------------------------
Select * from apex_mail_queue;
1.1571E + 15
[email protected]
[email protected]
[email protected]
test
test
0
SYS
2 JANUARY 09
----------------------------------------------------------------------------
exec ('192.168.1.102 ','25 ') htmldb_mail.push_queue;
By pushing the e-mail: 1157105350067515
Pushed by e-mail: 1157105350067515
PL/SQL procedure successfully completed.
----------------------------------------------------------------------------
Select * from apex_mail_queue;
1.1571E + 15
[email protected]
[email protected]
[email protected]
test
test
1
ORA-29261: bad argument
SYS
2 JANUARY 09Hello
I had the same error message.
In the "Forum Settings" (newspaper as 'ADMIN', "Manage the Services" section), I changed the Protocol SMTP port (from 0 to 25) and after that, it worked fine.
Jos
-
ORA-39000 bad dump file specification
Hi all
I'm trying to exercise a windows scheduler job that will allow to create backup of my database every day once. So this is why I have created a batch file "PREPROD_BACKUP.bat", which contains data:
off @echo
setlocal EnableDelayedExpansion
expdp PARFILE SYSTEM/Leosoft@XE = export_dump.par
The export_dump.par file contains information:
DIRECTORY = preprod_cron_jobs
DUMPFILE = ratormonitor_! date: ~ 10, 4. Date: 6 ~, 2! ! Date: ~ 4, 2.! DMP
LOGFILE = ratormonitor.log
SCHEMAS = RATOR_MONITORING, RATOR_MONITORING_CONFIGURATION
CONTENT = ALL
When I try to run the "PREPROD_BACKUP.bat" I get error like 'ORA-39001:invalid argument value', ' ORA-39000 dump bad file specification ", ORA - 39087:directory name ratormonitor_! date is not valid. I try to create the dump with current datetimestamp file attached to the file for the name of the dump file should look like this "ratormonitor_2015.02.03.37.029062831", but we get an error.
Looks like you're under Windows.
This will not work:
! date: ~ 10, 4. Date: 6 ~, 2! ! Date: ~ 4, 2!
If you use the following syntax:
%Date:~10,4%%date:~6,2%.%D ate: ~ 4, 2%
-
Variable with a value. «PURGE error: bad Argument Type.»
Hi, my 50G calculator accuses a value for the variable 'X' but I can't find it in any directory, and when I try to delete I get the message "' PURGE error: bad Argument Type." " I also have the theta variable with the same problem. How can I remove the value of these variables? TKS
In addition to Make suggestions, two other possibilities come to mind: 'X' can be a directory object (which would cause the error to the wrong Type of Argument because non-empty directory objects cannot be purged by PURGE, but must be purged by PGDIR), or it could be a local variable (which can only be served by putting an end to the environment that created which is usually a program). So if Make suggestions don't work, try foster 'X' PGDIR and if that does not work, try KILL (which ends all the current environments).
If those WHO do not work, please do 'X' TYPE HOME and tell us what object type 'X'.
DISCLAIMER: I do not work for HP; I'm a happy user of HP Calculator.
-
LabVIEW 2015 do not install it, autorun.exe "met a bad argument.
Hello
I recently got a new laptop and tried to install labVIEW on it. He started to install, but the system loses power in the middle and close. I deleted the National Instruments folder in Program Files (x 86) and retried, but when I run autorun.exe said he "met a bad argument" with a red 'X'. So I tried to launch setup.exe, and he starts, but bypasses LabVIEW and continues for the module in real time, where it says "LabVIEW 2015 must be installed before you install the real time module. Any help would be appreciated.
Thank you
-
ACS and "bad argument key.
Today our ACS (ver 4.1 on windows 2003 server) suddenly stopped working. We use it to authenticate and authorize the main access to the switches via Ganymede. I see "bad argument key" errors in ACS, but the shared secret is the same on both sides (switch vs ACS), so it's not a problem.
A "debug" on a switch Ganymede says:
January 7, 21:32: Telnet2: 1 1 251 1
January 7, 21:32: TCP2: Telnet sent WILL ECHO (1)
January 7, 21:32: Telnet2: 2 2 251 3
January 7, 21:32: TCP2: Telnet sent WILL SUPPRESS-GA (3)
January 7, 21:32: Telnet2: 80000 80000 253 24
January 7, 21:32: TCP2: Telnet sent TO TTY-TYPE (24)
January 7, 21:32: Telnet2: 10000000 10000000 253 31
January 7, 21:32: TCP2: Telnet sent MAKE the SIZE of the WINDOW (31)
January 7, 21:32: TAC +: send worm package AUTHENTIC/START = 192 id = 3650164881
January 7, 21:32: TAC +: using Ganymede server-group "Ganymede +" list by default.
January 7, 21:32: TAC +: 10.1.2.2 (3650164881) AUTHENTIC/START/CONNECTION/ASCII queued
January 7, 21:32:05: TAC +: 10.1.2.2 (3650164881) AUTHENTIC/START/CONNECTION/ASCII - TIMED OUT
January 7, 21:32:05: TAC +: (3650164881) AUTHENTIC/START/CONNECTION/ASCII processed
January 7, 21:32:05: TAC +: using Ganymede server-group "Ganymede +" list by default.
January 7, 21:32:05: TAC +: 10.10.10.1 (3650164881) AUTHENTIC/START/CONNECTION/ASCII queued
January 7, 21:32:10: TAC +: 10.10.10.1 (3650164881) AUTHENTIC/START/CONNECTION/ASCII - TIMED OUT
January 7, 21:32:10: TAC +: (3650164881) AUTHENTIC/START/CONNECTION/ASCII processed
January 7, 21:32:10: TAC +: using Ganymede server-group "Ganymede +" list by default.
(etc.)
There are two servers, ACS, they sync and they both have the same problem.
Accessibility is not the problem.
What should I check for?
Erik
Mohamed
Since it is a new show you could get more and delivers better answers if you start a new thread rather than adding what may appear as most comments on a continuous.
However, since you asked the question here, I have a comment and a suggestion. This production line:
QA: TAC +: invalid package AUTHENTIC/START/CONNECTION/ASCII (control keys).
suggests that something (probably the shared key for authentication of the device) is not properly synchronized between your device and the RADIUS server.
My suggestion would be to search for in the report of attempts failed on the RADIUS server and see if you see the authentication attempt of this unit. If that is what the GANYMEDE server say about the cause of the failure?
HTH
Rick
-
Cannot export
An internal error has occurred: bad argument #1 to 'find' (string expected, got the draw)
No one can tell you anything. Your track is not the least useful info like what is exported from which program on which system and so on.
Mylenium
-
When you try to access my library, I get an error message stating "bad argument #1 to 'loadstring' (string expected, got Boolean).
I have already uninstalled and reinstalled Lightroom and it always appears.
It may be a bad plugin. Try disabling all plugins, then by restarting LR. To disable the plugins:
1 file > plug-in Manager
2. Select a plugin in the left column.
3. in the right column, scroll down to the Status section.
4. If necessary, expand the section status by clicking on the triangle to the left of the 'status '.
5. click on disable.
-
Error 19: Bad argument: invalid resource format. Error on line 0, the character offset 560, in ' {} alignChildren: 'fill', text: ' $$$ / AdobePlugin/Shared/Photomerge/process/Name = Photomerge', orientation: 'row', alignment: "fill." View1: Panel { "text: ' $$$ / AdobePlugin/Shared/Photomerge/Scr/layout = layout", direction: "column", alignment: ["fill", "fill"], View2: Group { orientation: "column", alignment: "fill." _LOauto: RadioButton {text: ' $$$ / AdobePlugin/shine/Photomerge/Scr/Auto = Auto ", alignment: 'left'"}, view4: Image {image: "/Applications/Adobe%20Photoshop%20CS6/Presets/Scripts/Stack%20Scripts%20Only/P_AutoAlign _Automatic_87x38.png"} }, view5: Group { orientation: "column", alignment: "fill." _LOperspective: RadioButton {text: ' $$$ / AdobePlugin/Shared/Photomerge/Scr/Perspective = Perspective', alignment: 'left'}, Vision7: Image {image: "/Applications/Adobe%20Photoshop%20CS6/Presets/Scripts/Stack%20Scripts%20Only/P_AutoAlign _Perspective_87x38.png"} }, view8: Group { orientation: "column", alignment: "fill." _LOcylindrical: RadioButton {text: ' $$$ / AdobePlugin/Shared/Photomerge/Scr/cylindrical cylindrical = ', alignment: 'left'}, view10: Image {image: "/Applications/Adobe%20Photoshop%20CS6/Presets/Scripts/Stack%20Scripts%20Only/P_AutoAlign _Cylindrical_87x38.png"} }, view11: Group { orientation: "column", alignment: "fill." _LOspherical: RadioButton {text: ' $$$ / AdobePlugin/Shared/Photomerge/Scr/spherical ball = ", alignment: 'left'"}, view13: Image {image: ' /} Hi Donald,.
Sorry for the inconvenience.
This happens usually when the script does not have enough permissions to manage this.
Please make sure that this folder applications, and two libraries have full read and write.
Also if it happens again, please tell me if you use Bridge for example or directly with Photoshop.
Thank you
Jitendra
-
ORA-01428: "NULL" argument is out of range
I have the code below in one of our proc stored. When this proc was called with the parameters, the stmt SELECT in the code below passed NULL values to variables (v_col_1, T_DATE). Y at - it a possiblity the code below could raise the error: ORA-01428: "NULL" argument is out of range.
I use Windows XP. Oracle 11g version.
Please let me know if I am missing any information.
Published by: Northwest Sep 8, 2011 13:51BEGIN LOOP BEGIN SELECT col_1, c_date INTO v_col_1, v_date FROM tab_table WHERE c_region = p_region AND c_status = 'ACTI' AND rownum < 2 FOR UPDATE; EXCEPTION WHEN others THEN v_col_1 := NULL; END; EXIT WHEN v_col_1 IS NULL; UPDATE tab_table SET c_status = 'FINS' WHERE c_col_1 = v_col_1 AND c_date = v_date AND c_region = p_region; COMMIT; .... .... .... END LOOP; END;
Northwest says:
Under what conditions can we get ORA-01428: argument * "NULL" * by mistake?What is your purpose here? Creation of a working process or reproduce the error?
The way you wrote that the procedure is old fashioned (to put it kindly).
When looping through a query result, you better use the modern form:declare cursor c_name is select * from dual; -- you complex quers goes here begin for r_name in c_name loop -- do what you want with the current record in r_name end loop; end;
or (eaven better) that the suggested RDA if possible.
I bet that you will get the ORA-01428 this way.You should not try to fix a solution error prone if more accomplished are available!
Good bye
DPT -
OpenProject bad argument when running SaveAsProjectTemplate.jsx
Hello
I created a template project, RoboHelp 8 and deployed the team for use in a future project.
Six authors have been able to load the Project Explorer scripts, then you run the SaveAsProjectTemplate.jsx script to make a project template. An author has tried to execute this script and faced the error bad argument openProject once they have accepted the default location.
The installation process is the same for all machines in seven, he activated/registered without a hitch and all available updates were performed on the seven machines (we all 8.0.2.208).
Anyone know, please, why this error could be produced on a machine?
Thank you very much
Nigel
Hi Nigel,
I don't see your last post when I posted my previous answer. Using Windows 7 can indeed be a problem. I had a problem with writing the files when the user account control has been activated. This blocks the script write files to the locations protected like C:\Users and C:\Program Files. He did not produce any errors, files were simply not created or modified and the script trotted.
You can turn off UAC for now and run the script again?
Take a bow
Willam
-
User-defined function: BAD ARGUMENT TYPE, ERROR
I am creating a function defined by the user, named DOTAN, to calculate the angle between two vectors X and Y. The UDF looks like this: DEFINE (' DOTHAN (X, Y) = ACOS (DOT (X, Y) / (ABS (X) * ABS (Y)))')--> (see pic attached to the actual Calculator display). The problem is that I can not set because as soon as I hit ENTER I get the warning: DEFINE ERROR: wrong Type of Argument. I tested each component separately and I am sure that the problem is with the help of DOT (X, Y) inside a UDF, but I don't know why. Maybe I'm missing some setting related to the use of functions which take an argument that is greater than 1 inside a UDF. Just guessing. Any idea?
Thank you
for some reason, the DOWRY is a commandment and not a function for the 50G.
You cannot use DOT in a function, you maybe wrote a program
in RPL
'--> x, y ' x y DOT XY ABS ABS * / ACOS ' ""DOTHAN"STO
[3.0] [0.3] DOTAN
back 90 degreesI never use the algebraic mode but I guess it's the same thing with a program...
-
Hi all
I use the following code to call the FND_LOOKUP_VALUES_PKG. Procedure LOAD_ROW
I get the following errorFND_LOOKUP_VALUES_PKG.LOAD_ROW(x_lookup_type => 'XXHR_YEAR' ,x_lookup_code=>''||I ,x_enabled_flag=>'Y' ,x_start_date_active=>SYSDATE ,x_end_date_active =>null ,x_description=>I||' '||'Weeks' ,x_view_appsname=>'PER' ,x_meaning=>''||I ,x_territory_code=>null ,x_tag=>null ,x_attribute_category=>null ,x_attribute1=>null ,x_attribute2=>null ,x_attribute3=>null ,x_attribute4=>null ,x_attribute5=>null ,x_attribute6=>null ,x_attribute7=>null ,x_attribute8=>null ,x_attribute9=>null ,x_attribute10=>null ,x_attribute12=>null ,x_attribute13=>null ,x_attribute14=>null ,x_attribute15=>null ,x_last_update_date=>null ,x_security_group=>null ,x_owner=>'v' ,x_custom_mode=>null);
PLS-00306: wrong number or types of arguments in the call to 'LOAD_ROW '.
I checked all the names of arguments thay match exactly
Can someone please help me solve the error
Here is the definition of the procedure
Please ignore the line numbersprocedure Load_Row ( 706 x_lookup_type in varchar2, 707 x_view_appsname in varchar2, 708 x_lookup_code in varchar2, 709 x_enabled_flag in varchar2, 710 x_start_date_active in varchar2, 711 x_end_date_active in varchar2, 712 x_territory_code in varchar2, 713 x_tag in varchar2, 714 x_attribute_category in varchar2, 715 x_attribute1 in varchar2, 716 x_attribute2 in varchar2, 717 x_attribute3 in varchar2, 718 x_attribute4 in varchar2, 719 x_attribute5 in varchar2, 720 x_attribute6 in varchar2, 721 x_attribute7 in varchar2, 722 x_attribute8 in varchar2, 723 x_attribute9 in varchar2, 724 x_attribute10 in varchar2, 725 x_attribute11 in varchar2, 726 x_attribute12 in varchar2, 727 x_attribute13 in varchar2, 728 x_attribute14 in varchar2, 729 x_attribute15 in varchar2, 730 x_last_update_date in varchar2, 731 x_owner in varchar2, 732 x_meaning in varchar2, 733 x_description in varchar2, 734 x_security_group in varchar2, 735 x_custom_mode in varchar2)
Thank youuser13644242 wrote:
Hi allI use the following code to call the FND_LOOKUP_VALUES_PKG. Procedure LOAD_ROW
FND_LOOKUP_VALUES_PKG. LOAD_ROW (x_lookup_type-online 'XXHR_YEAR'
, x_lookup_code => "| I have
, x_enabled_flag => 'Y '.
x_start_date_active-online SYSDATE
x_end_date_active-online null
x_description-online I | » '||' Weeks
, x_view_appsname => "FOR".
, x_meaning => "| I have
x_territory_code-online null
x_tag-online null
x_attribute_category-online null
x_attribute1-online null
x_attribute2-online null
x_attribute3-online null
x_attribute4-online null
x_attribute5-online null
x_attribute6-online null
x_attribute7-online null
x_attribute8-online null
x_attribute9-online null
x_attribute10-online null
x_attribute12-online null
x_attribute13-online null
x_attribute14-online null
x_attribute15-online null
x_last_update_date-online null
x_security_group-online null
, x_owner-online "v".
x_custom_mode-online null);but this is not mandatory, it would be better if you can rearrange the order of the parameters depending on how it was defined for clarity and easy search the setting with variables. for example, the parameter x_view_appsname => 'BY' must be next to your x_lookup_type => 'XXHR_YEAR' and x_owner-'v' next to x_last_update_date online => set to null. I see that you are missing the x_attribute11 setting try to include and run the package, see how it goes.
FND_LOOKUP_VALUES_PKG.LOAD_ROW (x_lookup_type => 'XXHR_YEAR' ,x_view_appsname => 'PER' ,x_lookup_code => ''||I ,x_enabled_flag => 'Y' ,x_start_date_active => SYSDATE ,x_end_date_active => null ,x_territory_code => null ,x_tag => null ,x_attribute_category => null ,x_attribute1 => null ,x_attribute2 => null ,x_attribute3 => null ,x_attribute4 => null ,x_attribute5 => null ,x_attribute6 => null ,x_attribute7 => null ,x_attribute8 => null ,x_attribute9 => null ,x_attribute10 => null ,x_attribute11 => null -- this is the missing parameter in your code ,x_attribute12 => null ,x_attribute13 => null ,x_attribute14 => null ,x_attribute15 => null ,x_last_update_date => null ,x_owner => 'v' ,x_meaning => ''||I ,x_description => I||' '||'Weeks' ,x_security_group => null ,x_custom_mode => null);
-
error report: ORA-29262: bad URL
Hi friends,
When I tried to reorder the items in my form through drag and drop operation. I tried to change the display of the form of two rows to three rows.
I am facing this error-> report error: ORA-29262: wrong URL.
My Version of Oracle Apex is - > 3.1.1.00.09
My version of the database is - > 10.2.0.1.0
Please let me know if anyone of you has solutions.Hello
I had this error, I think it's related to the bug listed on Metalink as 6360779 which is would have been set in Application Express 3.1.1.00.09 see http://www.oracle.com/technology/products/database/application_express/html/3.1.1_patchnote.html?_template=/ocom/print
However, I use the version above to the apex and received the error, I found that I had put a % at the end of a label sign, that caused the error. Remove the % sign, helped him drag / move to continue.
Hope this helps
Paul
-
I tried to export and got it in LR CC 2015... please shoot me
Anyone know what that means... I have a deadline? OMG...
Yes, once you have renamed the preferences file, Lightroom would have created a newer file preferably, can delete the new file preferably created and rename the old file preference to what it was (Original)
Maybe you are looking for
-
entered iCal disappeared from the iphone
Last night all of my entries on my calendar I simply disappeared. I can still see them on my iPad. I use my calendar daily daily, if so very problematic, but also very strange that all and I mean all, inscriptions on iCal disappeared after being ther
-
Hi Support Team, 1) Since I installed El Capitan I can't 'wipe free space' on my MacIntosh HD by 'Utility Disc': 'Erase' it is blocked. 2) How do I unlock (enable) the function "Clear space" in "disk utility"? Jona li
-
Nets not transferred to Ultiboard
I have a Multisim 13 design for an extension table simple using a card-edge connector. The custom component is the Multisim and Ultiboard of databases. The nets appear in Multisim, but the ewnet file does not show their links with the custom compon
-
I can't open paint... I tried to restart my laptop. but it's always the same. why I can't open the paint?
-
Pavilion 15-p158sa: Bios is not updated
Hello I was wondering if anyone can help. I just bought a computer laptop HP Pavilion 15-p158sa and when you use the HP Wizard it says I have a few updates including bios, so I chose all of them and let run, after awhile it restarted and went through