APEX 4 - Edit Application Properties - Apply Changes - Error

This has seemed to have started after upgrading to Apex 4. We also updated to 4.0.1, and are still having the problem. With any application, if we attempt to apply changes to the application definition it fails...
Home>Application Builder>Application 104>Shared Components>Edit Application, Defintiion tab. Make a change, then click 'Apply Changes' The browser returns a 404 error. In fact, we don't have to make a change to the values displayed. Just attempting to apply the existing values fails.
This is the error we receive in the ohs.log...
[2010-08-31T19:48:35.2479-05:00] [OHS] [ERROR:32] [OHS-9999] [mod_context.c] [host_id: hostname] [host_addr: xxx.xxx.xxx.xxx] [tid: 19] [user: username] [ecid: 004ZmWEhjJ35yW8C3jMMOz0001Lr0004y3] [rid: 0] [VirtualHost: main] MODPLSQL-00261: mod_plsql: /pls/apex/wwv_flow.accept HTTP-404 Failed to execute target procedure ORA-00604: error occurred at recursive SQL level 1\nORA-06502: PL/SQL: numeric or value error: character string buffer too small\nORA-06512: at line 10\nORA-06550: line 35, column 3:\nPLS-00306: wrong number or types of arguments in call to 'ACCEPT'\nORA-06550: line 35, column 3:\nPL/SQL: Statement ignored\n, referer: http://hostname:xxxx/pls/apex/f?p=4000:4001:3485056460649030::NO::FB_FLOW_ID:104
We're unable to find any cause for the error. Any help would be appreciated.
Thanks!

Yes, we still have the logs. No errors from the install or patch to 4.0.1. All packages, procedures, functions are valid.
And, I just found the problem. We had an 'after servererror on database' trigger enabled without the proper field checks. Disabled the trigger, problem solved.
Thanks for the help!

Similar Messages

  • Edit Page;Report;Enable CSV Output;Apply Changes;Page Not Found;wwv_flow

    Hi,
    We have a really annoying error in our application, whereby we are unable to save ANY changes to report attributes if Enable CSV Output is Yes.
    I have many pages with Enable CSV Output set to Yes, and when run, the pages can indeed be exported to Excel, fine so far.
    However, if we do Edit Page, choose Report change Enable CSV Output to No, then apply changes the option is removed ok - BUT if we then set it back to Yes, when we apply changes again we get a Page Not Found error at this address ;
    http://sglas-sand.fm.rbsgrp.net:7780/pls/fdm_uat2/wwv_flow.accept
    We obviously dont need to keep changing this value, but the above demonstrates that our reports do currently support CSV output, but for some recent reason, trying to save a page where this option has been changed to Yes causes this crash.
    We also seem unable to change and save any other attribute when CSV Output is set to Yes. This leaves us in a tricky situation - unable to change our pages unless we are prepared to remove the Export option!
    We were wondering if the support of this this option requires any special processing / objects / etc to be availble / running. Any help greatly appreciated.
    John Nice
    Royal Bank of Scotland - Finance IT

    Hi Scott,
    Thanks for the reply. Our errors were like this in the log ;
    [Thu Feb 22 14:52:33 2007] [error] [client <private ip removed>] ] [ecid: 1172155953:<private ip removed>] :30306:0:1855,0] mod_plsql: /pls/fdm_uat2/wwv_flow.accept HTTP-404 ORA-06550: line 23, column 3:\nPLS-00306: wrong number or types of arguments in call to 'ACCEPT'\nORA-06550: line 23, column 3:\nPL/SQL: Statement ignored\n
    Versions are ;
    Database : 10.2.02
    HTMLDB : 2.2
    Apache : 10g release 2
    Regards,
    John
    Message was edited by:
    John @ RBoS

  • PDF properties (meta tags) can't be changed (error 0x80040154 - class not registered)

    Hello,
    Changing PDF properties (meta tags: author, title, comment, theme etc) in  Adobe Reader as well as in Windows Explorer are disabled rsp does not funtion.
    1. In Adobe Reader "File properties", the overwriting rsp insertion of text is disabled in grey.
    2. In Windows  Explorer, following message window appears: "Properties change: Due to an unexpected error, properties can't be changed - Error  0x80040154: class not registered"
    (Sorry for the bad translation, but I am running the German version)
    Is there a technical explanation and  solution for this problem? In other PDF programms, the change of meta data does work fine.
    =====================
    Windows 7 64-bit, Acrobat Reader X 10.1.1. (Standard PDF Viewer)
    =====================
    Many thanks & best regards
    adiflis

    @MadEyes: I found out you had to set a site address in wordpress the hard way, i set it for a dns host and I couldn't get into the wp-admin page or load any sort of image or css.
    At the moment i have a server root directory with a wordpress folder on it. Eg:
        (/srv/http)/wp/
    and a  test index file in the root. Eg:
        (/srv/http)/index.html
    The index file doesn't show up publicly, but it will on the local network.
    I set the apache port back to 61669 and tested with canyouseeme.org. I got (i will email you the ip addy):
        Success: I can see your service on X.X.X.X on port (61669)       >EDIT: If I close apache, then it fails. Start it back up, it succeeds.
        Your ISP is not blocking port 61669
    I also nmap'd myself and got this:
        Host is up (0.025s latency).
        Not shown: 996 closed ports
        PORT     STATE    SERVICE
        23/tcp   open     telnet
        5989/tcp open     wbem-https
        6881/tcp filtered bittorrent-tracker
        8080/tcp open     http-proxy
    A port forward is definitely set up, so i dont know how much I can trust this (I did make 6881, but them program isn't open).
    Any of this any help?
    >EDIT: Excerpt from Webmin: "System hostname    localhost.localdomain" this doesn't seem right.
    Localhost:
    #<ip-address>   <hostname.domain.org>   <hostname>
    127.0.0.1       localhost.localdomain   localhost  ablanck
    #::1            ablanck.localdomain     localhost
    Last edited by lucytheboydog (2011-02-07 04:34:24)

  • Apply changes overwrites initial record when editing a datagrid

    If I go in to edit record 1 of a datagrid using the pencil icon; use the next/previous buttons to go to another record; then press "Apply Changes", it over writes record 1. Does this happen to anyone else, or is this a bug?
    I'm running Apex 4.1.1 on Oracle 11 XE on Windows XP via EPG. This happens with both Internet Explorer 8 and Google Chrome version "17.0.963.56 m".
    Thanks,
    Tak

    I frequently do this for my grids maybe the datagrid has this fucntionality built in to detect changes made by users to rows?
    Should I make a custom component that extends?
    my current solution is to do this:
    <GridColumn  width="140" headerText="Margin (disabled)" headerText.editMode="Margin (editing)" dataField="margin"  editable="false"  editable.editMode="true"  >
                        <itemEditor>
                            <fx:Component>
                                <DefaultGridItemEditor>
                                    <fx:Script>
                                        <![CDATA[
                                            override public function set value(newValue:Object):void
                                                textArea.text = newValue != null ? newValue.toString() : "";
                                                this.data.isModifiedClientSide = 1;
                                        ]]>
                                    </fx:Script>
                                </DefaultGridItemEditor>
                            </fx:Component>
                        </itemEditor>
                    </GridColumn>

  • SharePoint Designer 2007 - Errors with Edit Document Properties Form

    All,
    I'm using SharePoint Designer 2007 and in two of my document libraries when I upload content I get this error:
    Object reference not set to an
    instance of an object.   at
    Microsoft.SharePoint.ApplicationPages.UploadPage.GetEditFormUrl(SPFile spfile)
       at Microsoft.SharePoint.ApplicationPages.UploadPage.OnSubmit(Object o,
    EventArgs e)
       at
    System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e)
       at
    System.Web.UI.HtmlControls.HtmlInputButton.RaisePostBackEvent(String
    eventArgument)
       at
    System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
    eventArgument)
       at
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
    String eventArgument)
       at
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
    Boolean includeStagesAfterAsyncPoint)
    So - when I open the EditForm.aspx page and attempt to add the proper Document Library Properties - and see that the Edit Document Properties Form is blank no matter what File - I try to add I get this Error: 
     “The page you have selected does not contain a reference to the correct SharePoint list”
    Therefore - since the EditForm.aspx page hasn't been changed in a while - what are some items to look at to remedy this odd problem.

    All,
    I fixed this - by Opening the page in Designer - going to Insert -> SharePoint Controls -> List Form then selecting the proper library from the list - then selecting Edit Item Form. I then right mouse clicked the library and selected Properties
    -> clicked List Properties then clicked the Supporting Files tab and under the Edit Document Forms Property - selected the item as such - clicked OK - saved everything -> refreshed the browser then all worked! 

  • Windows vista system, continuously trying to download a DRM file in Adobe Digital Editions application shows "Error check activation". I have authorized the Fire Wall and still the same.

    windows vista system, continuously trying to download a DRM file in Adobe Digital Editions application shows "Error check activation". I have authorized the Fire Wall and still the same.

    Since Re-activation as suggested by the link above is not working for you, Can you please confirm the following:
    The OperatorURL is reachable. ( you can find the operatorURL from the acsm file by opening it in notepad,etc)
    And Book is still available on the book-store for purchase.
    (If any of first two are not available, you might have to talk to distributor for next action item to get the book. Since you will have record of purchasing the book, (in my opinion) they should provide you the new token for downloading the book)
    And please confirm this that you used the same userID for downloading that you used when you first fulfilled/downloaded the book.
    (If it is the case, then you have to use the correct userID)
    I hope it helps.

  • Changing the background  in apex 4.1 applications

    Dear friends
    Can anyone please tell me how can i change the background color or can add a image to the background in apex 4.1 applications by using css
    I tried for login page it is done but for other pages it is not working.
    Can someone please tell me the exact steps to do this
    Regards
    Sabyasachi

    Why are you opening more threads for the same query?
    You already have one open at adding background color or image to apex application
    Regards,

  • Error importing APEX 4.0 application into APEX 4.1

    Hello,
    I'm not sure it has anything to do with APEX versions, but when importing a APEX 4.0 application into APEX 4.1, I get the following error:
    ORA-00942: table or view does not exist
    DAD name: wluapex
    PROCEDURE : wwv_flow.accept
    URL : http://harpo.wvnet.edu:9954/pls/wluapex/wwv_flow.accept
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=9954
    SERVER_NAME=harpo.wvnet.edu
    REQUEST_METHOD=POST
    QUERY_STRING=
    PATH_INFO=/wwv_flow.accept
    SCRIPT_NAME=/pls/wluapex
    REMOTE_HOST=
    REMOTE_ADDR=184.13.119.210
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTPS
    REMOTE_USER=APEX_PUBLIC_USER
    ORACLE_SSO_USER=
    OSSO_IDLE_TIMEOUT_EXCEEDED=
    OSSO_USER_GUID=
    HTTP_CONTENT_LENGTH=416883
    HTTP_CONTENT_TYPE=multipart/form-data; boundary=---------------------------7db702cc602f8
    HTTP_USER_AGENT=Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
    HTTP_HOST=harpo.wvnet.edu:9954
    HTTP_ACCEPT=text/html, application/xhtml+xml, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=en-US
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=ORA_WWV_REMEMBER_UN=WISERS:WLUTEST; ORA_WWV_USER_71401175607832=63F8D4BD93EE9776
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=https://harpo.wvnet.edu:9954/pls/wluapex/f?p=4000:460:4154733060059762::NO:460:F4000_P56_CREATE_OPTION,P460_FILE_TYPE:IMP,FLOW_EXPORT
    HTTP_SOAPACTION=
    HTTP_ORACLE_ECID=1319804299:129.71.2.217:3530870:0:7033,0
    HTTP_ORACLE_CACHE_VERSION=
    HTTP_AUTHORIZATION=
    WEB_AUTHENT_PREFIX=
    DAD_NAME=wluapex
    DOC_ACCESS_PATH=docs
    DOCUMENT_TABLE=wpg_document
    PATH_ALIAS=
    REQUEST_CHARSET=AL32UTF8
    REQUEST_IANA_CHARSET=UTF-8
    SCRIPT_PREFIX=/pls
    HTTP_IF_MATCH=
    HTTP_CACHE_CONTROL=
    SOAP_BODY=
    HTTP_X_ORACLE_DEVICE_CLASS=
    HTTP_X_ORACLE_DEVICE_ORIENTATION=
    HTTP_X_ORACLE_DEVICE_MAXDOCSIZE=
    HTTP_X_ORACLE_DEVICE=
    HTTP_X_ORACLE_ORIG_ACCEPT=
    HTTP_X_ORACLE_ORIG_USER_AGENT=
    HTTP_X_ORACLE_USER_LOCALE=
    HTTP_X_ORACLE_USER_NAME=
    HTTP_X_ORACLE_USER_DISPLAYNAME=
    HTTP_X_ORACLE_USER_USERKIND=
    HTTP_X_ORACLE_USER_AUTHKIND=
    HTTP_X_ORACLE_USER_DEVICEID=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE1=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE2=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLASTLINE=
    HTTP_X_ORACLE_USER_LOCATION_BLOCK=
    HTTP_X_ORACLE_USER_LOCATION_CITY=
    HTTP_X_ORACLE_USER_LOCATION_COMPANYNAME=
    HTTP_X_ORACLE_USER_LOCATION_COUNTY=
    HTTP_X_ORACLE_USER_LOCATION_STATE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODEEXT=
    HTTP_X_ORACLE_USER_LOCATION_COUNTRY=
    HTTP_X_ORACLE_USER_LOCATION_TYPE=
    HTTP_X_ORACLE_USER_LOCATION_X=
    HTTP_X_ORACLE_USER_LOCATION_Y=
    HTTP_X_ORACLE_SERVICE_HOME_URL=
    HTTP_X_ORACLE_SERVICE_PARENT_URL=
    HTTP_X_ORACLE_HOME_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_LABEL=
    HTTP_X_ORACLE_CACHE_USER=
    HTTP_X_ORACLE_CACHE_SUBID=
    HTTP_X_ORACLE_CACHE_AUTH=
    HTTP_X_ORACLE_CACHE_DEVICE=
    HTTP_X_ORACLE_CACHE_LANG=
    HTTP_X_ORACLE_CACHE_ENCRYPT=
    HTTP_X_ORACLE_ASSERT_USER=
    Any ideas on what may be causing this error?
    Thanks,
    Bob

    We contacted Oracle Support and their answer is below:
    ===================
    Yes you can import the Application that is created in Apex 2.0 to Apex 3.2
    While performing the import please review the below documents, which may help you.
    How to Upgrade / Migrate from APEX 2.2.0.00.32 to 3.1.2 (Doc ID 578630.1)
    After Export / Import Of Workspace, There Are No Applications (Doc ID 358858.1)
    ORA-942 When Importing Applications or Workspaces in APEX (Doc ID 1333062.1)
    ===================
    I will close my thread. Thanks, Diane

  • How do I solve this error message Exception Details: System.Exception: Unable to ExecuteModuleActionURI : Module/Jobs/Controller/Applications/Action/Apply/JobID/915337

    Server Error in '/' Application.
    Unable to ExecuteModuleActionURI : Module/Jobs/Controller/Applications/Action/Apply/JobID/915337
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Exception: Unable to ExecuteModuleActionURI : Module/Jobs/Controller/Applications/Action/Apply/JobID/915337
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [Exception: Unable to ExecuteModuleActionURI : Module/Jobs/Controller/Applications/Action/Apply/JobID/915337]
    BiteCMF.Util.Xsl.ExtensionObjects.BiteExtensionObject.ExecuteModuleActionURI(String moduleActionURI, String location) in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\Util\XSL\ExtensionObjects\BiteExtensionObject.cs:63
    [XslTransformException: An error occurred during a call to extension function 'ExecuteModuleActionURI'. See InnerException for a complete description of the error.]
    System.Xml.Xsl.Runtime.XmlExtensionFunction.Invoke(Object extObj, Object[] args) +1292307
    System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) +806
    <xsl:template match="Job">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, String URL) +20724
    <xsl:template match="ViewData">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +152
    <xsl:apply-templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator ) +806
    Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) +55
    System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) +150
    System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) +88
    System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, Stream results) +89
    BiteCMF.Util.Xsl.BiteXsl.Transform(XmlDocument xmlToTransform) in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\Util\XSL\BiteXSL.cs:216
    BiteCMF.Util.Xsl.BiteXsl.Transform(XmlDocument xmlToTransform, String xslUrl) in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\Util\XSL\BiteXSL.cs:182
    BiteCMF.Modules.ViewActionResult.ToString(BiteRequestBroker requestBroker) in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\Modules\ViewActionResult.cs:166
    BiteCMF.Modules.ViewActionResult.Process(BiteRequestBroker requestBroker) in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\Modules\ViewActionResult.cs:255
    BiteCMF.Modules.CMS.CMSRequestBroker.ProcessRequestAsFrontend() in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\Modules\CMS\CMSRequestBroker.cs:221
    BiteCMF.Modules.CMS.CMSRequestBroker.HandleRequest() in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\Modules\CMS\CMSRequestBroker.cs:45
    BiteCMF.CMS.BiteRequestBroker.ExecuteModuleBrokers() in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\CMS\BiteRequestBroker.cs:165
    BiteCMF.CMS.BiteRequestBroker.ProcessRequest() in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\CMS\BiteRequestBroker.cs:83
    BiteCMF.BiteHttpModule.ProcessRequest(HttpApplication app) in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\BiteHttpModule.cs:192
    BiteCMF.BiteHttpModule.Application_PostAcquireRequestState(Object source, EventArgs e) in C:\Users\mbailey.REDANT\Desktop\Projects\Changeboard\BiteCMF\BiteHttpModule.cs:164
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
    Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456

    http://ww2.cs.fsu.edu/~rosentha/linux/2.6.26.5/docs/DocBook/libata/ch07.html#excatATAbusErr wrote:
    ATA bus error means that data corruption occurred during transmission over ATA bus (SATA or PATA). This type of errors can be indicated by
    ICRC or ABRT error as described in the section called “ATA/ATAPI device error (non-NCQ / non-CHECK CONDITION)”.
    Controller-specific error completion with error information indicating transmission error.
    On some controllers, command timeout. In this case, there may be a mechanism to determine that the timeout is due to transmission error.
    Unknown/random errors, timeouts and all sorts of weirdities.
    As described above, transmission errors can cause wide variety of symptoms ranging from device ICRC error to random device lockup, and, for many cases, there is no way to tell if an error condition is due to transmission error or not; therefore, it's necessary to employ some kind of heuristic when dealing with errors and timeouts. For example, encountering repetitive ABRT errors for known supported command is likely to indicate ATA bus error.
    Once it's determined that ATA bus errors have possibly occurred, lowering ATA bus transmission speed is one of actions which may alleviate the problem.
    I'd also add; make sure you have good backups when ATA errors are frequent

  • Server log shows error and warning 108 & 1085 every 5 minutes. Faile dto apply changes to software installation settings.

    Event: 108
    Failed to apply changes to software installation settings. Software changes could not be applied. A previous log entry with details should exist. The error was : %%2147746153
    Event: 1085
    Windows failed to apply the Software Installation settings. Software Installation settings might have its own log file. Please click on the "More information" link.
    This errors have been happening a long while and do not appear to be having any effects on our end users. However, they are making
    it very hard to sift through our log files as you could imagine! This DC is windows 2008 r2.
    If there is any other information needed, let me know. Thanks!

    In addition you can debug the software installation Policy easily.
    GPO Troubleshooting
    Also you can use the ADM/ADMX for GPO related issues (GPO DEBUG LOGGING).
    http://www.gpoguy.com/FreeTools/FreeToolsLibrary/tabid/67/agentType/View/PropertyID/85/Default.aspx
    http://www.gpoguy.com/FreeTools/FreeToolsLibrary/tabid/67/agentType/View/PropertyID/84/Default.aspx
    Use this tool for registry key change.
    http://www.gpoguy.com/FreeTools/FreeToolsLibrary/tabid/67/agentType/View/PropertyID/87/Default.aspx 
    I have tested all the above tools and all are working fine.
    Best regards Biswajit Biswas Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin

  • How do I change the external editing application?

    I set my external editing application to something other than what I want it to be now, and I cannot find a way to change it.

    iPhoto preferences - select edit in and reselect the current external editor - a selection window will open so you can select a new one
    LN

  • 2 Day Plus Application Express Developer Guide - error?

    Good day !
    In "Oracle Database Express Edition 2 Day Plus Application Express Developer Guide" chapter 8 "How to Upload and Download Files in an Application" at the topic "Store the Document in a Custom Table" ( page 8-10, 8-11) is recommended:
    6. Under Source, replace the process with the following:
    IF ( :P1_FILE_NAME is not null ) THEN
    INSERT INTO file_subjects(id,NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE)
    SELECT ID,:P1_FILE_NAME,:P1_SUBJECT,blob_content,mime_type
    FROM HTMLDB_APPLICATION_FILES WHERE name = :P1_FILE_NAME;
    WHERE name = :P1_FILE_NAME;
    DELETE from HTMLDB_APPLICATION_FILES WHERE name = :P1_FILE_NAME;
    END IF;
    7. Scroll up to the top of the page and click Apply Changes.
    After this I receive Error Message:
    ORA-06550: line 6, column 1: PLS-00103: Encountered the symbol "WHERE" when expecting one of the following: begin case declare else elsif end exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe
    Now I can't find mistake. Please, help me ( if difficulties not so big )
    Winni

    Replace by:IF ( :P1_FILE_NAME is not null ) THEN
    INSERT INTO file_subjects(id,NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE)
    SELECT ID,:P1_FILE_NAME,:P1_SUBJECT,blob_content,mime_type
    FROM HTMLDB_APPLICATION_FILES WHERE name = :P1_FILE_NAME;
    DELETE from HTMLDB_APPLICATION_FILES WHERE name = :P1_FILE_NAME;
    END IF;The second WHERE clause is superfluous.
    Regards, Marc

  • Form apply changes results in Unable to fetch custom authentication functio

    created a simple form/report application using the wizard and no modification of any kind and I can do everything except apply changes to any field on form screen -
    got the following error:
    Unable to fetch custom authentication function body in application - HTTP 500 Internal Server Error
    any ideas??
    Thanks.

    I am using data base account.
    more info:
    the table I am working with is an existing table with large number of columns. to simplify testing I created the following table as a select from original table:
    CREATE TABLE APPS.FGS_TEMP_2
    TASK_ID NUMBER(15) NOT NULL,
    PROJECT_ID NUMBER(15),
    TASK_NUMBER VARCHAR2(25 BYTE) NOT NULL
    CREATE UNIQUE INDEX APPS.FGS_TEMP_2_IDX1 ON APPS.FGS_TEMP_2
    (TASK_ID)
    LOGGING
    ALTER TABLE APPS.FGS_TEMP_2 ADD (
    CONSTRAINT FGS_TEMP_2_CON
    PRIMARY KEY
    (TASK_ID)
    USING INDEX APPS.FGS_TEMP_2_IDX1);
    and again used wizard to create a simple tabular form to view and edit - now I am able to edit and apply changes to PROJECT_ID , TASK_NUMBER but not TASK_ID ?? which I guess is a different problem.
    here is the table I am trying to create the form for to edit and add - this is an existing table with few thousands rows.
    CREATE TABLE HED.EDD_CPR_EMP
    EDD_CPR_ID NUMBER NOT NULL,
    UNIQUE_PAYROLL_ID VARCHAR2(10 BYTE) NOT NULL,
    CPR_PERSON_ID NUMBER,
    LEGACY_PAYROLL VARCHAR2(7 BYTE),
    GEN_LEGACY_PAYROLL_FLAG VARCHAR2(1 BYTE),
    LOGIN_ID VARCHAR2(7 BYTE),
    BEMS_ID VARCHAR2(10 BYTE),
    STD_USER_ID VARCHAR2(10 BYTE),
    STD_UNIX_ID VARCHAR2(10 BYTE),
    CMS_PERSON_ID NUMBER,
    PERSON_TITLE VARCHAR2(10 BYTE),
    FIRST_NAME VARCHAR2(30 BYTE),
    MIDDLE_INITIAL VARCHAR2(1 BYTE),
    LAST_NAME VARCHAR2(40 BYTE),
    SUFFIX VARCHAR2(10 BYTE),
    EXT_FULL_NAME VARCHAR2(80 BYTE),
    KNOWN_AS VARCHAR2(30 BYTE),
    ORIGINAL_HIRE_DATE DATE,
    BENEFIT_DATE DATE,
    LAST_HIRE_DATE DATE,
    HIRE_CODE VARCHAR2(30 BYTE),
    HIRE_CODE_DESC VARCHAR2(30 BYTE),
    TERMINATION_DATE DATE,
    TERMINATION_REASON_CODE VARCHAR2(3 BYTE),
    TERMINATION_REASON_DESC VARCHAR2(30 BYTE),
    LAST_DAY_WORKED DATE,
    BADGE_EXPIRATION_DATE DATE,
    ACCT_BUSINESS_UNIT VARCHAR2(2 BYTE),
    ACCT_LOCATION VARCHAR2(2 BYTE),
    ACCT_DEPARTMENT VARCHAR2(4 BYTE),
    ACCT_BUSINESS_UNIT_DESC VARCHAR2(30 BYTE),
    ACCT_LOCATION_DESC VARCHAR2(30 BYTE),
    ACCT_DEPARTMENT_DESC VARCHAR2(30 BYTE),
    HR_DEPARTMENT VARCHAR2(10 BYTE),
    HR_ORG_LEVEL_CODE VARCHAR2(15 BYTE),
    HR_ORG_STRUCTURE_CODE VARCHAR2(12 BYTE),
    HR_ORG_FUNCTION_CODE VARCHAR2(2 BYTE),
    HR_DEPARTMENT_DESC VARCHAR2(30 BYTE),
    HR_ORG_LEVEL_DESC VARCHAR2(30 BYTE),
    HR_ORG_STRUCTURE_DESC VARCHAR2(51 BYTE),
    HR_ORG_FUNCTION_DESC VARCHAR2(30 BYTE),
    HR_PARENT_DEPARTMENT VARCHAR2(10 BYTE),
    US_PERSON_STATUS VARCHAR2(30 BYTE),
    SHIFT VARCHAR2(1 BYTE),
    SCHEDULED_WORK_WEEK_HOURS VARCHAR2(3 BYTE),
    PART_TIME_CODE VARCHAR2(1 BYTE),
    EXPLICIT_EMAIL_ADDRESS VARCHAR2(240 BYTE),
    STABLE_EMAIL_ADDRESS VARCHAR2(240 BYTE),
    URL_ADDRESS VARCHAR2(240 BYTE),
    PERSON_STATUS_CODE VARCHAR2(1 BYTE),
    PERSON_STATUS_DESC VARCHAR2(12 BYTE),
    PERSON_TYPE_CODE VARCHAR2(1 BYTE),
    PERSON_TYPE_DESC VARCHAR2(16 BYTE),
    HRMS_STATUS_CODE VARCHAR2(1 BYTE),
    HRMS_STATUS_DESC VARCHAR2(30 BYTE),
    MANAGER_BEMS_ID VARCHAR2(10 BYTE),
    MANAGER_NAME VARCHAR2(85 BYTE),
    SJC_OCCUPATION_CODE VARCHAR2(2 BYTE),
    SJC_JOB_FAMILY_CODE VARCHAR2(2 BYTE),
    SJC_FLSA_CODE VARCHAR2(1 BYTE),
    SJC_LEVEL_CODE VARCHAR2(1 BYTE),
    SJC_SMC_CODE VARCHAR2(3 BYTE),
    EEO1_CAT_CODE VARCHAR2(1 BYTE),
    SJC_OCCUPATION_DESC VARCHAR2(25 BYTE),
    SJC_JOB_FAMILY_DESC VARCHAR2(25 BYTE),
    SJC_FLSA_DESC VARCHAR2(30 BYTE),
    SJC_SMC_DESC VARCHAR2(25 BYTE),
    EEO1_CAT_DESC VARCHAR2(25 BYTE),
    HOURLY_JOB_CODE VARCHAR2(5 BYTE),
    JOB_TITLE VARCHAR2(60 BYTE),
    HOURLY_GRADE VARCHAR2(2 BYTE),
    HOURLY_UNION_CODE VARCHAR2(20 BYTE),
    HOURLY_UNION_DESC VARCHAR2(60 BYTE),
    DIRECT_INDIRECT_CODE VARCHAR2(1 BYTE),
    MANAGEMENT_LEVEL_CODE VARCHAR2(1 BYTE),
    MANAGEMENT_LEVEL_DESC VARCHAR2(30 BYTE),
    TEMPORARY_ASSIGNMENT_CODE VARCHAR2(1 BYTE),
    WORK_SCHEDULE_CODE VARCHAR2(30 BYTE),
    ROLE_TYPE VARCHAR2(1 BYTE),
    ROLE_DESCRIPTION VARCHAR2(13 BYTE),
    PERSON_CREATION_DATE DATE,
    PERSON_LAST_UPDATE_DATE DATE,
    LOCATION1_BUILDING_NUMBER VARCHAR2(6 BYTE),
    LOCATION1_FLOOR_NUMBER VARCHAR2(6 BYTE),
    LOCATION1_ROOM_NUMBER VARCHAR2(6 BYTE),
    LOCATION1_STREET_ADDRESS1 VARCHAR2(60 BYTE),
    LOCATION1_STREET_ADDRESS2 VARCHAR2(60 BYTE),
    LOCATION1_STREET_ADDRESS3 VARCHAR2(60 BYTE),
    LOCATION1_CITY VARCHAR2(30 BYTE),
    LOCATION1_STATE VARCHAR2(2 BYTE),
    LOCATION1_POSTAL_CODE VARCHAR2(30 BYTE),
    LOCATION1_COUNTRY VARCHAR2(70 BYTE),
    LOCATION1_LAST_UPDATE_DATE DATE,
    LOCATION2_BUILDING_NUMBER VARCHAR2(6 BYTE),
    LOCATION2_FLOOR_NUMBER VARCHAR2(6 BYTE),
    LOCATION2_ROOM_NUMBER VARCHAR2(6 BYTE),
    LOCATION2_STREET_ADDRESS1 VARCHAR2(60 BYTE),
    LOCATION2_STREET_ADDRESS2 VARCHAR2(60 BYTE),
    LOCATION2_STREET_ADDRESS3 VARCHAR2(60 BYTE),
    LOCATION2_CITY VARCHAR2(30 BYTE),
    LOCATION2_STATE VARCHAR2(2 BYTE),
    LOCATION2_POSTAL_CODE VARCHAR2(30 BYTE),
    LOCATION2_COUNTRY VARCHAR2(70 BYTE),
    LOCATION2_LAST_UPDATE_DATE DATE,
    MAIL1_SITE_CODE VARCHAR2(3 BYTE),
    MAIL1_STATION VARCHAR2(10 BYTE),
    MAIL1_LAST_UPDATE_DATE DATE,
    MAIL2_SITE_CODE VARCHAR2(3 BYTE),
    MAIL2_STATION VARCHAR2(10 BYTE),
    MAIL2_LAST_UPDATE_DATE DATE,
    WORK_PHONE1 VARCHAR2(20 BYTE),
    WORK_PHONE1_LAST_UPDATE_DATE DATE,
    WORK_PHONE2 VARCHAR2(20 BYTE),
    WORK_PHONE2_LAST_UPDATE_DATE DATE,
    CELLULAR1 VARCHAR2(20 BYTE),
    CELLULAR1_LAST_UPDATE_DATE DATE,
    CELLULAR2 VARCHAR2(20 BYTE),
    CELLULAR2_LAST_UPDATE_DATE DATE,
    PAGER1 VARCHAR2(20 BYTE),
    PAGER1_PIN VARCHAR2(30 BYTE),
    PAGER1_LAST_UPDATE_DATE DATE,
    PAGER2 VARCHAR2(20 BYTE),
    PAGER2_PIN VARCHAR2(30 BYTE),
    PAGER2_LAST_UPDATE_DATE DATE,
    PAGER3 VARCHAR2(20 BYTE),
    PAGER3_PIN VARCHAR2(30 BYTE),
    PAGER3_LAST_UPDATE_DATE DATE,
    FAX VARCHAR2(20 BYTE),
    FAX_LAST_UPDATE_DATE DATE,
    CREATED_BY NUMBER,
    CREATION_DATE DATE,
    LAST_UPDATED_BY NUMBER,
    LAST_UPDATE_DATE DATE,
    REQUEST_ID NUMBER(15),
    PROGRAM_APPLICATION_ID NUMBER(15),
    PROGRAM_ID NUMBER(15),
    PROGRAM_UPDATE_DATE DATE,
    LAST_UPDATE_LOGIN NUMBER,
    WIN2K_CREATED_BY VARCHAR2(25 BYTE),
    WIN2K_UPDATED_BY VARCHAR2(25 BYTE),
    L3_EMP_ID VARCHAR2(9 BYTE),
    MANAGER_CPR_ID NUMBER,
    SALARY_JOB_CODE VARCHAR2(10 BYTE),
    JOB_FLSA VARCHAR2(10 BYTE),
    BADGE_NUMBER VARCHAR2(50 BYTE)
    Thanks for the help.

  • Custom Save / Apply Changes / Delete buttons...

    Hi All,
    I wanted to make a custom save / apply changes and delete buttons in my forms. Therefore I wrote some JavaScript functions to call these actions as shown below;
    function saveRecord(pListPage){
    if (P&APP_PAGE_ID._CALLACTIONTYPE!= 'CANCEL') {
    if (P&APP_PAGE_ID._CALLACTIONTYPE!= 'DELETE'){
    doSubmit(P&APP_PAGE_ID._CALLACTIONTYPE);
    lvurl = 'f?p=&APP_ID.:' + pListPage+ ':&APP_SESSION.::NO:' + pListPage+ ':P' + pListPage+ '_CALLTYPE' + ',P' + pListPage+ '_CALLFROM,P' + pListPage+ '_SELECTEDRECORD,' + 'P' + pListPage+ '_MANDATORYFILTER,'+ 'P' + pListPage+ '_MANDATORYFILTERVALUE,P' + pListPage+ '_REFERENCEDBY' + ':' + $v(P&APP_PAGE_ID._CALLTYPE) + ',' + $v(P&APP_PAGE_ID._CALLFROM) + ',' + $v(P&APP_PAGE_ID._SELECTEDRECORD) + ',' + $v(P&APP_PAGE_ID._MANDATORYFILTER) + ',' + $v(P&APP_PAGE_ID._MANDATORYFILTERVALUE) + ',' + $v(P&APP_PAGE_ID._REFERENCEDBY);
    top.location.href = lvurl;
    function deleteRecord(pListPage){
    document.getElementById("P&APP_PAGE_ID._CALLACTIONTYPE").value = 'DELETE';
    confirmDelete(htmldb_delete_message,'DELETE');
    But the problems what I couldnt sort out are;
    1- If any error happens in doSubmit(); (can be any DB error by triggers etc.) I cannot show the error. Does anybody know to check whether doSubmit() returned an error or not...
    2- Delete button shows the confirmation dialog box but when I confirm to delete I got an error show below;
    "     Checksum error for Hidden and Protected item ID (1737324593811176), value (DELETE), posted checksum (D636C53A8C84A57A1BBB04A61B600C4A), expected checksum (********************************), index_i (9), index_j (5), index_m (7); "
    Can you please tell me how to sort this problems or can anybody know that there's another ways to do these things?
    I really need help guys...
    Thank you very much,
    Osman...

    Hi Varad,
    We need to have custom buttons for save etc because there are some parameters must be transferred between screens. Let me explain it like this;
    Normally when you enter the IR screen, we set a couple of hidden items' values. (such as P_CALLFROM, P_CALLTYPE, etc...)
    and then user goes into a record to edit or insert.
    When user saves the record by pressing standard Apex "Apply Changes" button, page will go back to IR page but we loose the parameter which we assigned before...
    That's why I need to have a custom save, delete etc buttons...
    So, if I need to create a custom process, Do I need to collect all the filed values from the page by myself?
    Thanks,
    Osman...

  • Can I edit the rpt file & change the datasource before loading the report?

    We are an ISV and our application has a lot of reports.  Our reports use a SQL Server database as the data source and each SQL Server at our customer sites has a different name.
    In our testing we have determined that ReportDocument.Load tries to connect to the SQL Server that is saved in the RPT.  If it can't fine the SQL Server saved in the RPT the load take about 60 seconds while it is waiting for the SQL Server Connection to time out.
    We are using the Visual Studio 2008 version of Crystal Reports.  This did not seem to be a problem with VB6/CR8.5.
    We would like to edit the RPT and change the data source to the appropriate SQL Server before we call ReportDocument.Load.
    Is it possible to edit the rpt file and change the data source before loading the report?
    Or is there some way to tell Crystal not to try connecting to the DB
    during the report.load?
    In our case we will NEVER use the data source that is saved in the RPT, we will always change the data source using ApplyLogOnInfo.
    Thanks

    HI Todd,
    You Can Not edit the report document before ReportDocument.Load() because if you dont load the report then you dont have anything to Edit
    But as far as changing the datasource is concerned you can change that at runtime.
    For changing the datasource following code will help you if both databases have a same schema :
    Code for changing the database
    ConnectionInfo crConnectionInfo = new ConnectionInfo();
    crConnectionInfo.ServerName = "SERVER";
    crConnectionInfo.DatabaseName = "DATABASE";
    crConnectionInfo.UserID = "USERID";
    crConnectionInfo.Password = "PASSWORD";
    // Loop through the ReportObjects in a report and find all the subreports
    foreach(ReportObject crReportObject in crReportDocument.ReportDefinition.ReportObjects)
         // Check the kind of the ReportObject, if it is a subreport
         // proceed. If not skip.
         if(crReportObject.Kind == ReportObjectKind.SubreportObject)
              // Get the SubReport in the form of a ReportDocument
              string sSubreportName = ((SubreportObject)crReportObject).SubreportName;
              ReportDocument crSubReportDocument = crReportDocument.OpenSubreport(sSubreportName);
              // Use a loop to go through all the tables in the main report
              foreach(Table crTable in crSubReportDocument.Database.Tables)
    // Get the TableLogOnInfo from the Table and then set the new
    // ConnectionInfo values.
    TableLogOnInfo crLogOnInfo = crTable.LogOnInfo;
    crLogOnInfo.ConnectionInfo = crConnectionInfo;
    // Apply the TableLogOnInfo
    crTable.ApplyLogOnInfo(crLogOnInfo);
    // Set the location of the database. This value will vary from database to
    // database.
    crTable.Location = "DATABASE.OWNER.TABLENAME" or crTable.Locations;
    The sample for doing this is available on support site.
    Thanks,
    Prasad

Maybe you are looking for