Unable to attach file

Hi,
When i excute procedure which sends mail with word attachment,tha following error message is displayed.
kindly help me .
procedure code is as fallows
CREATE or replace PROCEDURE pro_MAIL_ATTACH_tolldoc IS
vInHandle utl_file.file_type;
rfile RAW(32767);
flen NUMBER;
bsize NUMBER;
ex BOOLEAN;
fname VARCHAR2(4000) := 'file.txt';
vSender VARCHAR2(30) := '[email protected]';
vSubj VARCHAR2(50) := 'Wt';
vMesg VARCHAR2(4000);
vMType VARCHAR2(30) := 'text/plain; charset=us-ascii';
--vTo VARCHAR2(30) := '[email protected]';
vTo VARCHAR2(30) := '[email protected]';
BEGIN
vMesg := 'Please print and complete attachment';
utl_file.fgetattr('EWM_POMS_UPLOAD', 'file.doc', ex, flen, bsize);
vInHandle := utl_file.fopen('EWM_POMS_UPLOAD','file.doc', 'R');
utl_file.get_raw(vInHandle, rfile, flen);
utl_file.fclose(vInHandle);
utl_mail.send_attach_raw(
sender => vSender,
recipients => vTo,
subject => vSubj,
message => vMesg,
attachment => rfile,
att_inline => FALSE,
att_filename => fname);
END;
RA-29284: file read error
ORA-06512: at "SYS.UTL_FILE", line 119
ORA-06512: at "SYS.UTL_FILE", line 1100
ORA-06512: at "WTEWM.PRO_MAIL_ATTACH_TOLLDOC", line 22
ORA-06512: at line 1

the following error message is displayed .
vInHandle := utl_file.fopen('EWM_POMS_UPLOAD', 'FILE.DOC', 'RB');
file size is 200 kb
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 475
ORA-29283: invalid file operation
ORA-06512: at "WTEWM.PRO_MAIL_ATTACH_TOLLDOC", line 21
ORA-06512: at line 1

Similar Messages

  • Unable to attach files in mail and unable to print from browser

    while trying to attach files it is not opening the path in mozilla. and uable to print directly from browser.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • Unable to attach file to create service notification(IW51) transactio iView

    Hi,
    We are using Create Service Notification (IW51) transaction iView (SAP GUI for HTML) in one of our portal workset.
    Few users are facing issue while trying to attach file to the Service Notification. When they open the file dialogue to attach the file
    it keeps on spinning and hangs, nothing proceeds further. Does anyone faced similar issue if so can you provide solution for this?
    Regards,
    Abhiram.

    << Do not post the same question across a number of forums >>

  • Unable to Attach Files in Yahoo! Mail Since Upgrading to Safari 5

    My ability to attach files in Safari has been removed. Any suggestions would greatly be appreciated.
    Thanks and have a great day!

    HI,
    BrowserPlus causes problems when attaching files to Yahoo mail after the Safari update.
    Go here for help to uninstall BrowserPlugshttp://help.yahoo.com/l/us/yahoo/browserplus/uninstall.html
    Carolyn

  • What do I do since, I am unable to attach files to my emails and I get messages saying that the attachment failed?

    When I try to attach a file to emails, the attachment fails and I receive an error message saying that it has failed. Sometimes it asks me to check whether there are firewalls or proxy. How do check for these? How do I disable these? Do I have to do so every time I attach a file to a mail? My OS is Windows Vista Home Premium and browser is Firefox. Email is Gmail. The files I try to attach are less than 5 MB.

    So sorry to all.  I did some research in this community and found out I was not the only one with that problem.  I removed microsoft Silverlight as suggested and followed instructions on how to do it and that did the trick.  All is well now.

  • Unable to Attach file for list item using SP.File CopyTo Method

    Requirement: I have a document library and list, the requirement is i need to take a document from document library and attach to list item in the list using CSOM only.
    Followed technique: to achieve this requirement i followed below methodology
    clientContext = SP.ClientContext.get_current();            
                    webSite = clientContext.get_web();
                    webSite.AllowUnsafeUpdates =true;
                    var list = webSite.get_lists().getByTitle('Documents');
                    item = list.getItemById(3);
                    file = item.get_file();
                    file.checkOut('Comments',1);
                    file.copyTo("xxxxxxx/Lists/Student/Attachments/4/mahesh.docx","1"); 
    file.checkIn('Comments',1);
                    clientContext.load(file );
                    clientContext.executeQueryAsync(Function.createDelegate(this, this.OnLoadSuccess), Function.createDelegate(this, this.OnLoadFailed));      
    Issue: This functionality is absolutely working fine when list item contains at least one attachment, if list item doesn't have any attachments the code is failing. i tried web.AllowUnsafeUpdates also but not working.
    Could anyone please help me on this.... :(
    Thanks in Advance!
    Regards,
    Mahesh Yamana
    Mahesh@SharepointSolutions

    Hi SK,
    Thank you for your reply!
    We are not allowed to use Visual Studio and the same thing we can use in JavaScript, but file stream takes path as one parameter which is physical location of your file system. When you use it some times users might not have access to the file system then
    our code fails.
    Regards,
    Mahesh Yamana
    Mahesh@SharepointSolutions

  • Suddenly I am unable to attach files in yahoo email while using firefox, but when I use IE, there is no problem in attaching files. The problem is existing for last 5 days.

    Even files of small size are not getting attached in yahoo mail when I use firefox. However there is no problem when I use IE.

    Thank you jscher2000. Yes my PDFs do contain the .pdf extension. I tried your excellent idea to utilize the drag and drop method, but I still get the same error message with PDFs. I have no problem attaching photos or Word documents with either method; just PDFs.
    For further diagnostics, I started composing my email in Safari, attached all my pdfs and saved my email as a Draft.  I then went to Firefox, opened the draft to continue working on it, and voila!  There are all the pdfs I attached previously while in Safari.  I was able to send the email with attachments through Firefox with no issues. The attachments went through and were able to be opened.
    I am mystified, as Firefox has been trouble-free with my email account, and I have never had this particular issue till today. I made no changes to anything else on my computer, but I did notice very late last night that Outlook had one of those typical messages at the top of my Inbox to refresh my browser since Outlook had been updated. I refreshed and shut down for the night, and when I rebooted this morning that is when I discovered this brand new glitch with attachments. I'm assuming this has something to do their last update.

  • I am unable to attach files to emails in apple mail.

    When I click on the paper clip option to attach a file, it takes me through the usual process, but does not attach the file.   I've tried with various types of files (PDF's, pictures, spread sheets).  Also tried from another user on the machine as well as a new 'clean' user account.   I also repaired permissions.  Still no luck
    If I drag a file to the mail icon it opens a new message an appears to insert the attachment.  However, the attachment is either empty or unusable.    It simply opens into a blank Text Edit document.
    Any help?  Not sure what to do next

    Try these server settings.
    Mail Server Information

  • After updating Firefox this morning, I am now unable to attach files to my Mobile Me email account.

    When I try to attach a file to my outgoing email, it does not recognize when I click on the "paper clip" attachment button. No warning, no pop up window......just nothing happens.
    ''Locked as a duplicate of https://support.mozilla.com/en-US/questions/882976''

    Hi [email protected]
    It sounds like an issue with Firefox Sync. Here is an article on how to troubleshoot the issue:
    [[Firefox Sync is not working]]

  • Unable to attach file in gmail but successfully ataching them in other browsers

    all of a sudden i m not able to upload anything via firefoz rather it be gmail attachment or dropbox or 4shared or sendpace but i can do it via other browsers and no i dont face these issues while downloading

    Hi haris.ahmad,
    Thank you for your question, I understand that adding an attachment to gmail in Firefox is not working for you. After testing this on a new profile on a Windows 8 machine and did not have any troubles. However, this does not mean there is not an issue. In order to further investigate what may be causing this issue. In the past there was pop up that came up to add an attachment to gmail. Can you please also check to make sure that gmail is added to the pop up exceptions list: [[Pop-up blocker settings, exceptions and troubleshooting]]
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Since updating my firefox I am unable to attach files to my email.

    We are using mobileme and always have been. It will work if I open mobileme in internet explorer but not with Firefox.

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • Insert Bar in hotmail is greyed out and am unable to attach files; have silverlight plug in enabled; what's the problem?

    the Insert bar in hotmail reply is greyed out and the icons such "Attachments" are not clickable. I am using Firefox 3.6.13 and have Silverlight 4.0.51204.0 enabled. What can be the problem? Also, in some instances cookies that store my address and other information that I need to populate when filling in online purchase forms on - say - eBay, are not working and I have to fill them in every time.

    in mozilla firefox go to Tools/addons/plug-ins and '''disable silverlight'''

  • Unable to upload files using firefox, be it dropbox, gmail or any other websites where we need to attach files. It does not open up a new window to choose file.

    all of a sudden im unable to attach files in any of the websites. Im using firefox version 30 and when I click to attach file it does not open up a new window where we can choose the file from my computer. It happens almost in all websites that I use (gmail, dropbox, other websites).
    This was not the case before, seem some problem with firefox.. can somebody fix this at the earliest. thanks

    hello Balaatmozilla,
    please check if this problem appears as well when you try to download a file, does this happen again when you try to download a file?
    if so there must be a problem with your HDD controler, to solve this issue follow th steps:
    1.Right Click on My Computer, Select Properties
    2.Click on Device Manager in Top Left corner
    3.expand the IDA/ATI/ATAPI controllers
    4.right click on the one which is related to your HDD
    5.click on Uninstall
    6.Restart
    when you restart your windows the OS will try to install the drivers again, if this happens then restart again and check if the problem is solved, if no try to install the HDD drivers and related drivers manually and then restart your machine

  • I am unable to attach PDFs to Hotmail/Outlook email using my FF browser today. Never had issue before today.

    1. I am unable to attach pdfs today in Outlook/Hotmail email using my Firefox browser (27.0.1). I keep getting an error message that says, "The file is not a picture and can't be inserted inline." I do not understand why I keep getting this error message. I am not attempting to insert an image. I am selecting to Insert Files as Attachments from the drop down menu.
    No matter how many times I attempt to attach various pdfs to my emails today using Firefox as my browser, I keep getting this same error message. I have cleared the cache, cleared all cookies, cleared all history, signed out of my Hotmail/Outlook account, signed back in, restarted computer, etc., to no avail. Same problem.
    2. I switched to my Safari browser, and have no problem attaching pdfs in my Hotmail/Outlook email account. The pdfs are attaching perfectly as usual. My emails are being sent normally with the attachments. The attached pdfs are being received and are opening perfectly as intended.
    3. Why am I unable to attach files with Firefox today? Firefox is my browser of choice and I have used it with my Hotmail/Outlook email account without any problems, till today. Please help me! Thank you!

    Thank you jscher2000. Yes my PDFs do contain the .pdf extension. I tried your excellent idea to utilize the drag and drop method, but I still get the same error message with PDFs. I have no problem attaching photos or Word documents with either method; just PDFs.
    For further diagnostics, I started composing my email in Safari, attached all my pdfs and saved my email as a Draft.  I then went to Firefox, opened the draft to continue working on it, and voila!  There are all the pdfs I attached previously while in Safari.  I was able to send the email with attachments through Firefox with no issues. The attachments went through and were able to be opened.
    I am mystified, as Firefox has been trouble-free with my email account, and I have never had this particular issue till today. I made no changes to anything else on my computer, but I did notice very late last night that Outlook had one of those typical messages at the top of my Inbox to refresh my browser since Outlook had been updated. I refreshed and shut down for the night, and when I rebooted this morning that is when I discovered this brand new glitch with attachments. I'm assuming this has something to do their last update.

  • Has anybody encountered problems attaching files to gmail when run in firefox

    Trying to attach a file (I tried pdf, word, excel files) to a gmail when running in Firefox ended with an "Unable to attach file" statement. However, in IEX and Safari the same works properly.
    Anybody an idea about this problem?

    Hi,
    Please check if this happens in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile]. If the new profile is okay, you can then [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] on the old (previous) profile via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''.

Maybe you are looking for