Adding attachment via File browse not working

Hi, I'm using Apex 4.1.1 through GlassFish server 3.1.1. Recently I've imported my database application and after running my app, adding of an attachment isn't working anymore. Before I used Apex via Emb. PL/SQL Gateway(from which I've exported app sql) and everything worked just fine. My code for adding attachment is like this:
IF (:P2_ATTACHMENT IS NOT NULL)
THEN
INSERT INTO ATTACHS
(ID_ATACHMENT,NAME_ATTACH, TYPE_ATTACH, ATTACHMENT, DATE_ATTACH)
SELECT ID,NAME, mime_type,blob_content, sysdate
FROM wwv_flow_files
WHERE NAME = :P2_ATTACHMENT;
DELETE wwv_flow_files
WHERE NAME = :P2_ATTACHMENT;
:P2_ATTACHMENT := NULL;
END IF;
If I skip this piece of code, and try to submit page(where is also couple of other insert statements), then is ok.
What is the problem of this, GlassFish, wwv_flow_files table, apex listener...?
Thanks.

Hi,
>
isn't working anymore.
>
Do you get an error? What diagnostic details do you have? E.g. what do see in View Debug if you run the page in Debug mode?
Prima facie, there is nothing wrong in the code or in the infrastructure.
Regards,
PS: Please post code in {code} tags.
Edited by: Prabodh on Jun 21, 2012 5:00 PM

Similar Messages

  • KDEConnect file browsing not working between PCs

    Hello,
    Recently I've noticed that browsing files in KDEConnect doesn't work between PCs.
    PC is showed in the list, ping is working, but when I try to browse the files either by button from KDEConnect menu either direcly from Dolphin,
    system is trying to connect to another pc, but after few seconds, returns me error:
    Could not mount device.
    The reported error was:
    Could not mount device filesystem
    And here is the log of dolphin running on sudo.
    I haven't figured out how to run dolphin in logging mode, so I've runned it by sudo and pasted kdeconnect address used by non-sudo dolphin.
    kdeinit4: Shutting down running client.
    Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    kbuildsycoca4 running...
    kbuildsycoca4(3282) KBuildSycoca::checkTimestamps: checking file timestamps
    kbuildsycoca4(3282) KBuildSycoca::checkTimestamps: timestamps check ok
    kbuildsycoca4(3282) kdemain: Emitting notifyDatabaseChanged ()
    kiokdeconnect(3290)/kdeconnect KioKdeconnect::setHost: Setting host: "_604bef3e_8198_4745_b330_274886751aa8_"
    kiokdeconnect(3290)/kdeconnect KioKdeconnect::stat: Stat: KUrl("kdeconnect://_604bef3e_8198_4745_b330_274886751aa8_")
    kiokdeconnect(3290)/kdeconnect KioKdeconnect::stat: Stat: KUrl("kdeconnect://_604bef3e_8198_4745_b330_274886751aa8_")
    kiokdeconnect(3291)/kdeconnect KioKdeconnect::setHost: Setting host: "_604bef3e_8198_4745_b330_274886751aa8_"
    kiokdeconnect(3291)/kdeconnect KioKdeconnect::listDir: Listing... KUrl("kdeconnect://_604bef3e_8198_4745_b330_274886751aa8_/")
    About a week ago it was working fine and I haven't been doing anything strange on them.
    I've deleted all configs of KDEConnect, purged it totally and installed again, even tried -git version, but the issue still persists.
    I can't find any logs about KDEConnect. I'll include them if someone tells me, where they are.
    Can someone tell me how to fix this issue,
    Thanks in advance,
    ~vonflynee
    Last edited by vonflynee (2015-03-12 22:31:06)

    If you are not using the cloud, you have to sync via iTunes to share pages documents.   This answer describes how.....
    https://discussions.apple.com/message/21179931#21179931

  • Adding contacts via Mail app not working

    New feature for iOS 8 will capture information from a mail message and allow you to add a contact.
    It works most of the time, but I have had several mail messages with contact information (phone number, different Email, address) that will not allow me to add them to the contacts with this new feature.  I tested it with a user and had her send me a message formatted the same way as another message that worked and it still would not allow me to add her via the new feature.  Is the phone looking for certain information in a particular format in order for it to be added?
    This is being done on an iPhone 5S
    Thank you.

    Awesome customer service, Apple!

  • CsrAttachmentUploadDiv part attachment is not rendered SP 2013(Attach file in not working for all the list forms)?

    csrAttachmentUploadDiv partattachment  is not rendered SP 2013(Attach file in not working for all the list forms)?
    Ravi
    function ShowPartAttachment() {
    ULSopi:
        if (document.getElementById("part1") == null || typeof document.getElementById("part1") == "undefined") {
            alert(Strings.STS.L_FormMissingPart1_Text);
            return;
        (document.getElementById("part1")).style.display = "none";
        (document.getElementById("partAttachment")).style.display = "block"; //problem here

    Am also facing the similar problem....any iputs are highly appriciated.
    Issue..
    1) Defined the attachment type in IMG.
    2) Added the attachment type "SFREEATTM" by selecting other attributes---> Attachment Types.
    3) Attached the excel file in the design.
    See the screen shot below:
    The Issue is when testing through tcode nwbc in the inbox the attachment tab is not visible after selecting the particular form.
    Please see the screen shot below:
    Did i miss any Configuration?? Please suggest...
    Regards,
    Naveen

  • Browse for file/img not working - Win 7

    Browse for file/img not working still - Win 7
    I have tried "run as Admin" and in "XP Compatibility mode" but still no luck fixing this issue in Win 7. Anyone have a potential fix so I can stop wasting time double checking every link/img on new work?
    Thanks!

    Are you referring to this issue?
    Problem selecting local root folder in Vista & Windows 7
    http://forums.adobe.com/thread/478327
    If so, there's no fix yet and not likely to be one.

  • File collaboration not working

    This is still an issue for me and has been for over a week. Latest Safari and the latest Chrome, different emails, they all produce the same result for me.
    Sounds like the same issue that @Quaetapo reported.
    Mac OS X 10.10.3

    I have forked the discussion (from Library collaboration not working to a new forum thread and updated the topic to File collaboration not working.
    Two things to try:
    Clear the browser cache and cookies and see if the error goes away.
    Open the browser's Developer Tools and go to the Network tab. Do you see any 4xx or 5xx errors (usually the call will be colored red).

  • Per window private browsing not working, still sharing cookies

    Firefox 21, per window private browsing not working. The cookies are still shared among private browsing windows and tabs. Even with private tab addon, still not working.
    If I log into google in one tab, I am still logged in with that account in new private tabs and private windows.

    One more question about cookies in private browsing mode.
    I don't like browse a web using usual mode 'cause I don't like tonns of sites in a history. But when I start with private mode every time I get empty set of cookies and this was not quite good for me 'cause some sites store its options needed for me. In a prev. versions of FF I solved this issue in such a way: I stored some cookies in a file and every time I started private browsing I loaded them from file. But now this method gives nothing: in cookies manager all set of "non private" cookies is shown both before importing and after importing them from a file and I need to reconfigure my sites every time I start private browsing.
    I'm sorry for my English.

  • .jar file is not working properly :developed in NETBEANS

    Hi Gurus,
    i am using NETBEANS IDE 7.2.
    i am developing a project that interacts with databases 10g and COM ports of machine , these all processes are performed by .bat file which i am trying to run from jFramform , code works perfectly .bat file is also called perfectly when i run the project using F6 from the NETBEANS, for testing i placed some dialogue boxes on the form to test it ,
    but when i run executable .jar  file , form run successfully and dialogue box works perfectly but .bat file is not called by executable .jar file.
    this is how i call the .bat file...
      String filePath = "D:/pms/Libraries/portlib.bat";  
            try { 
              Process p = Runtime.getRuntime().exec(filePath); 
            } catch (Exception e) { 
                e.printStackTrace(); 
    and below is the contents of portlib.bat file
    java -jar "D:\SMS\SMS\dist\SMS.jar" 
    you must probably ask why i am calling a .jar file using .bat file .
    reason is that this .jar project sends message using GSM mobile , System.exit(); is compulsory to complete a job and then do the next one ,
    if i use the same file to execute this job it makes exit to entire the application (hope you can understand my logic).
    that's why i use extra .jar file in .bat file , when single job is completed .bat exits itself and new command is given.
    Problem is that code is working perfectly in NETBEANS when i run the project but when i run .jar then .bat file is not working  ,
    thanks.

    Thanks Sir ,
    You need to first test an example that works like the one in the article.
    There are plenty of other examples on the web - find one you like:
    http://javapapers.com/core-java/os-processes-using-java-processbuilder/
    I tried this one.
      try {
                ProcessBuilder dirProcess = new ProcessBuilder("D:/SMS/SMS/Send_message.bat");
                 File commands = new File("D:/SMS/SMS/Send_message.bat");
                 File dirOut = new File("C:/process/out.txt");
                 File dirErr = new File("C:/process/err.txt");
               dirProcess.redirectInput(commands);
                 dirProcess.redirectOutput(dirOut);
               dirProcess.redirectError(dirErr);
                 dirProcess.start();
            } catch (IOException ex) {
                Logger.getLogger(mainform.class.getName()).log(Level.SEVERE, null, ex);
    as instructed in the article i compiled  both the projects at same version or sources and libraries which is 1.7
    here is my version details
    C:\>javac -version
    javac 1.7.0_07
    C:\>java -version
    java version "1.7.0_07"
    Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
    Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
    inside the NETBEANS IDE c:\process\err.txt  remains empty and code works perfectly , but when I run executable .jar file( by double clicking on that file in dist directry) then c:\process\err.txt becomes full with this error text and there is no response from calling D:\SMS\SMS\send_message.bat
    here is the error text
    java.lang.UnsupportedClassVersionError: sms/SMSMAIN (Unsupported major.minor version 51.0)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Exception in thread "main"
    here is /SMS/SMS
    unknown source ?

  • File- Export not working after upgrade from 11i to R12

    Hi,
    File -> Export not working after upgrade from 11i to R12.1.3 in few systems. Can you please let me know what could be the issue.
    If export record count more than 200 it is working fine in all the systems and if change the profile option "Export MIME type” value to ‘text/tab-separated-values’ from application/excel also it is wokring.
    Thanks and Regards,
    Jagadeesha

    Enabled the FRD. Below are few last lines. Can you please let me know what i can in this log file contents.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing GET_ITEM_PROPERTY/FIELD_CHARACTERISTIC Built-in:
    In Argument 0 - Type: Integer Value: 196613
    In Argument 1 - Type: Number Value: 54
    Out Argument 0 - Type: String Value: 12
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing FIND_MENU_ITEM Built-in:
    In Argument 0 - Type: String Value: FILE.EXPORT
    Out Argument 0 - Type: Integer Value: 19
    Executing GET_MENU_ITEM_PROPERTY Built-in:
    In Argument 0 - Type: Integer Value: 19
    In Argument 1 - Type: Number Value: 79
    Out Argument 0 - Type: String Value: TRUE
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_synch.menu_toolbar_sync. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: NULL
    In Argument 1 - Type: String Value: GLOBAL.OUT
    Executing USER_EXIT Built-in:
    In Argument 0 - Type: String Value: FND GETPROFILE NAME="UPK_RECORDING_ENABLED" FIELD="GLOBAL.OUT" N
    FNDCPVCM, 11, Built-In, Entry, 316509814, USER_EXIT
    FNDCPVCM, 11, Built-In, Exit, 316509814, USER_EXIT
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.OUT
    Out Argument 0 - Type: String Value: N
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing GET_APPLICATION_PROPERTY Built-in:
    In Argument 0 - Type: Number Value: 75
    Out Argument 0 - Type: String Value: IHR40P
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed call_all_libraries. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_standard.event. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    FNDCPVCM, 10, Prog Unit, Exit, 316509814, /FNDCPVCM-3/P45_30_DEC_201223_28_33
    FNDCPVCM, 9, Trigger, Exit, 316509814, WHEN-NEW-ITEM-INSTANCE
    FNDCPVCM, 8, Prog Unit, Exit, 316509814, /DMU-4/P8_30_DEC_201223_23_12
    # 15 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301498413820
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3
    # 16 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301512613925
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3

  • I am using Ubuntu; iTunes installed via wine is not working properly. So how should i sync my apps on iTunes and device?          When will iTunes come to Ubuntu

    I am using Ubuntu; iTunes installed via wine is not working properly. So how should i sync my apps on iTunes and device?
    When will iTunes come to Ubuntu?

    See:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes
    If you have submitted crash reports then please post the IDs of one or more recent crash reports that have this format:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website, or open this page via "Help > Troubleshooting Information".
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter

  • File- Print not working from SQL Developer 1.2.1 Build MAIN-32.13

    File->Print not working from SQL Developer 1.2.1 Build MAIN-32.13.
    I downloaded sqldeveloper-1.2.1.3213.ZIP and extract to a local directory. From the extracted directory I ran ..\sqldeveloper\sqldeveloper.exe from Windows XP sp2. The program itself seems to run just fine but File-Print doesn't do anything. In Help-About, Java Platform is reported as 1.5.0_06 and Oracle IDE is 1.2.1.3213. I'm not sure where to look for what is causing the problem.
    Thanks

    I hadn't tried CTRL-P before but I did today. On the first attempt, I saw a small jump in the memory usage for sqldeveloper.exe as reported in Windows Task Manager. Otherwise, there was no change. A second CTRL-P in the same session produced a further bump but subsequent attempts in the same session produced no further change in CPU or Memory Usage.
    Using Task Manager to monitor this further, I tried File->Print again and saw that sqldeveloper would periodically climb to 1 or 2 percent CPU and consume a little more memory. After a minute or so, though, all activity stops again.
    I do not get a print dialog box from SQLDeveloper using either CTRL-P or File->Print

  • File sharing not working 10.6

    file sharing not working on 10.6

    Rather more information is needed!
    With what are (not) sharing?
    Other computers on a network? (if so, are they all Macs or some Windows?)
    Other Users on the same Mac?

  • Flash file, clicks not working in one environment

    Hi everyone,
    I have produced files using Captivate 2, that have output as .exe. These work perfectly across all of our sites, except one.
    The only issue with the site where the files are not working is:
    - Click box within the Flash file do not progress to the next page
    I have output with 'Playback control' and the users at the site in question are able to progress through along the Playback bar. However, I only placed this in for the purposes of testing the file. The final files need to not have the 'Playback control'.
    Does anyone know what I can do differently, to ensure the click boxes work on this site in question?
    I look forward to hearing from you.
    Ravi Sandhu

    Hi Ravi
    I'm not sure I fully understand your question. You seem to be saying a Click Box isn't working. But you say the "Click Box within the Flash File". I'm not sure if this means you have used Flash to create a button or something that you are trying to use with Captivate or if you simply mean that you have used Captivate to create a SWF, and inside that SWF the Click Box doesn't seem to work.
    What would be helpful is if we could see the project first hand. Are you able to post the .CP file for us to download and view? If that's not possible, what about posting a screen capture of the slide with the issue where we can see the entire timeline and all objects.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • In private browsing not working in Firefox 3.6.12 If I open yahoomail one session for one account and if I open other session for yahoomail, it automatically opens the earlier mail account.

    In private browsing not working in Firefox 3.6.12 If I open yahoomail one session for one account and if I open other session for yahoomail, it automatically opens the earlier mail account. But if I want to use more than one yahoomail accounts, in private browsing is not working. Please suggest.

    That problem isn't related to Private Browsing specifically, that's how Firefox works with regards to multiple "sessions" with the same server - only one logon is allowed at any time. Try using one of these extensions to be able to run multiple session cookies.
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data is not.) but

    I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data does not.)

    HI Dave,
    I'm surprised you get no message when you attempt opening the Excel document in Numbers.
    I'm assuming Numbers 3.1, since you are running Mavericks.
    Does the Numbers file that opens show any content?
    Does it contain a table?
    How large?
    Does it contain more than one tab (indicating more than one sheet)?
    Do those other tabs contain a table?
    Have you checked those tables for data content?
    There have been cases in the past of imported documents opening with white text on a white background, giving the appearance of containing nothing. Check for this by selecting a block of cells, then applying a Fill colour or a Text colour using the Format button (paintbrush).
    I'd also suggest attempting to open the Excel files using LibreOffice, which can be downloaded from the linked website.
    Regards,
    Barry

Maybe you are looking for