Error in Update Process for optimistic locking

Hello,
I tried to create a tabular form according to this How-To:
http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html
which worked fine until I tried to implement the optimistic locking.
I use the same update process:
declare
l_cks wwv_flow_global.vc_arr2;
j pls_integer := 1;
begin
-- Get original MD5 checksum
select wwv_flow_item.md5(job,mgr,hiredate,sal,comm,deptno) cks
BULK COLLECT INTO
l_cks
from emp;
-- Compare the original checksum, l_cks,
-- with submitted checksum, htmldb_application.g_fcs.
-- If they are different, raise an error.
for i in 1..l_cks.count
loop
if htmldb_application.g_fcs(i) != l_cks(i) then
rollback;
raise_application_error(
          -20001,
     'Current version of data in database has changed '||
          'since user initiated update process.');
return;
end if;
end loop;
but as soon as I try to apply the changes in the update process I get an error message saying: PLS-00503: RETURN statement required for this return from function
So, if i delete the row with the "return;" statement, I get no error anymore, but when I test the optimistic locking I get an error as soon as I try to update a row in the first place.
What am I doing wrong?
Johnny
P.S. : I am using Apex 1.6

Hi Ant, of course......here is the customized pl/sql block I use:
declare
l_cks wwv_flow_global.vc_arr2;
j pls_integer := 1;
begin
-- Get original MD5 checksum
select wwv_flow_item.md5(partition,desig) cks
BULK COLLECT INTO
l_cks
from UNITS;
-- Compare the original checksum, l_cks,
-- with submitted checksum, htmldb_application.g_fcs.
-- If they are different, raise an error.
for i in 1..l_cks.count
loop
if htmldb_application.g_fcs(i) != l_cks(i) then
rollback;
raise_application_error(-20001,'Current version of data in database has changed ' || 'since user initiated update process.');
-- return;
end if;
end loop;
-- update UNITS
for i in 1..htmldb_application.g_f08.count
loop
if htmldb_application.g_f08(i) is not null then
update UNITS
set report_id = :P2_REPORT_ID,
partition = htmldb_application.g_f10(i),
desig = htmldb_application.g_f11(i)
where unit_id = htmldb_application.g_f08(i);
else
if htmldb_application.g_f10(i) is not null then
insert into UNITS
(report_id,
partition,
desig)
values
(:P2_REPORT_ID,
htmldb_application.g_f10(i),
htmldb_application.g_f11(i));
end if;
end if;
end loop;
end;
Thanks
Johnny

Similar Messages

  • Order management header level updation process for iStore order.

    Hi all,
    I worked on OM header level updation process for iStore order.only card holder name,expiration date updated using OE_ORDER_PUB.process_order but Credit card number,card type not updated for istore order in OM.so please help to me.
    CODE:
    SET SERVEROUTPUT ON;
    DECLARE
    v_api_version_number NUMBER := 1;
    v_return_status VARCHAR2 (2000);
    v_msg_count NUMBER;
    v_msg_data VARCHAR2 (2000);
    -- IN Variables --
    v_header_rec oe_order_pub.header_rec_type;
    v_line_tbl oe_order_pub.line_tbl_type;
    v_action_request_tbl oe_order_pub.request_tbl_type;
    v_line_adj_tbl oe_order_pub.line_adj_tbl_type;
    -- OUT Variables --
    v_header_rec_out oe_order_pub.header_rec_type;
    v_header_val_rec_out oe_order_pub.header_val_rec_type;
    v_header_adj_tbl_out oe_order_pub.header_adj_tbl_type;
    v_header_adj_val_tbl_out oe_order_pub.header_adj_val_tbl_type;
    v_header_price_att_tbl_out oe_order_pub.header_price_att_tbl_type;
    v_header_adj_att_tbl_out oe_order_pub.header_adj_att_tbl_type;
    v_header_adj_assoc_tbl_out oe_order_pub.header_adj_assoc_tbl_type;
    v_header_scredit_tbl_out oe_order_pub.header_scredit_tbl_type;
    v_header_scredit_val_tbl_out oe_order_pub.header_scredit_val_tbl_type;
    v_line_tbl_out oe_order_pub.line_tbl_type;
    v_line_val_tbl_out oe_order_pub.line_val_tbl_type;
    v_line_adj_tbl_out oe_order_pub.line_adj_tbl_type;
    v_line_adj_val_tbl_out oe_order_pub.line_adj_val_tbl_type;
    v_line_price_att_tbl_out oe_order_pub.line_price_att_tbl_type;
    v_line_adj_att_tbl_out oe_order_pub.line_adj_att_tbl_type;
    v_line_adj_assoc_tbl_out oe_order_pub.line_adj_assoc_tbl_type;
    v_line_scredit_tbl_out oe_order_pub.line_scredit_tbl_type;
    v_line_scredit_val_tbl_out oe_order_pub.line_scredit_val_tbl_type;
    v_lot_serial_tbl_out oe_order_pub.lot_serial_tbl_type;
    v_lot_serial_val_tbl_out oe_order_pub.lot_serial_val_tbl_type;
    v_action_request_tbl_out oe_order_pub.request_tbl_type;
    v_msg_index NUMBER;
    v_data VARCHAR2 (2000);
    v_loop_count NUMBER;
    v_debug_file VARCHAR2 (200);
    b_return_status VARCHAR2 (200);
    b_msg_count NUMBER;
    b_msg_data VARCHAR2 (2000);
    BEGIN
    DBMS_OUTPUT.PUT_LINE('Starting of script');
    -- Setting the Enviroment --
    mo_global.init('ONT');
    fnd_global.apps_initialize ( user_id => 1013438
    ,resp_id => 21623
    ,resp_appl_id => 660);
    mo_global.set_policy_context('S',204);
    -- Header Record --
    v_header_rec := oe_order_pub.g_miss_header_rec;
    v_header_rec.request_date := SYSDATE;
    v_header_rec.header_id := 251413;
    v_header_rec.credit_card_holder_name :='esakki';
    v_header_rec.credit_card_number := 'XXXXXXXXXXXX3510';
    v_header_rec.credit_card_expiration_date := to_date('01-JAN-2014','dd-mon-yyyy');
    v_header_rec.credit_card_code := 'MASTERCARD';
    v_header_rec.payment_type_code := 'CREDIT_CARD';
    v_header_rec.sold_to_org_id := 131747;
    v_header_rec.sold_from_org_id := 204;
    v_header_rec.ordered_date := SYSDATE;
    v_header_rec.operation := OE_GLOBALS.G_OPR_UPDATE;
    v_action_request_tbl (1) := oe_order_pub.g_miss_request_rec;
    -- Line Record --
    v_line_tbl (1) := oe_order_pub.g_miss_line_rec;
    DBMS_OUTPUT.PUT_LINE('Starting of API');
    -- Calling the API to update the header details of an existing Order --
    OE_ORDER_PUB.PROCESS_ORDER (
    p_org_id =>204
    ,p_operating_unit => NULL
    p_api_version_number => v_api_version_number
    ,p_init_msg_list => fnd_api.g_false
    ,p_return_values => fnd_api.g_false
    ,p_action_commit => fnd_api.g_false
    , p_header_rec => v_header_rec
    , p_line_tbl => v_line_tbl
    , p_action_request_tbl => v_action_request_tbl
    , p_line_adj_tbl => v_line_adj_tbl
    -- OUT variables
    , x_header_rec => v_header_rec_out
    , x_header_val_rec => v_header_val_rec_out
    , x_header_adj_tbl => v_header_adj_tbl_out
    , x_header_adj_val_tbl => v_header_adj_val_tbl_out
    , x_header_price_att_tbl => v_header_price_att_tbl_out
    , x_header_adj_att_tbl => v_header_adj_att_tbl_out
    , x_header_adj_assoc_tbl => v_header_adj_assoc_tbl_out
    , x_header_scredit_tbl => v_header_scredit_tbl_out
    , x_header_scredit_val_tbl => v_header_scredit_val_tbl_out
    , x_line_tbl => v_line_tbl_out
    , x_line_val_tbl => v_line_val_tbl_out
    , x_line_adj_tbl => v_line_adj_tbl_out
    , x_line_adj_val_tbl => v_line_adj_val_tbl_out
    , x_line_price_att_tbl => v_line_price_att_tbl_out
    , x_line_adj_att_tbl => v_line_adj_att_tbl_out
    , x_line_adj_assoc_tbl => v_line_adj_assoc_tbl_out
    , x_line_scredit_tbl => v_line_scredit_tbl_out
    , x_line_scredit_val_tbl => v_line_scredit_val_tbl_out
    , x_lot_serial_tbl => v_lot_serial_tbl_out
    , x_lot_serial_val_tbl => v_lot_serial_val_tbl_out
    , x_action_request_tbl => v_action_request_tbl_out
    , x_return_status => v_return_status
    , x_msg_count => v_msg_count
    , x_msg_data => v_msg_data
    DBMS_OUTPUT.PUT_LINE('Completion of API');
    IF v_return_status = fnd_api.g_ret_sts_success THEN
    COMMIT;
    DBMS_OUTPUT.put_line ('Order Header Updation Success : '||v_header_rec_out.header_id);
    ELSE
    DBMS_OUTPUT.put_line ('Order Header Updation failed:'||v_msg_data);
    ROLLBACK;
    FOR i IN 1 .. v_msg_count
    LOOP
    v_msg_data := oe_msg_pub.get( p_msg_index => i, p_encoded => 'F');
    dbms_output.put_line( i|| ') '|| v_msg_data);
    END LOOP;
    END IF;
    END;
    OUTPUT:
    Starting of script
    Starting of API
    Completion of API
    Order Header Updation Success : 251413
    Thanks,
    saran

    Forgot to mention :Soruce is Oracle EBS

  • App Store error: "This update is for an app downloaded with a different apple id"

    When trying to update PopClip, I get the following two errors:
    "This update is for an app downloaded with a different Apple ID. Sign in with that Apple ID and try again"
    After clicking OK, I receive the next error:
    "There was an error in the App Store. Please try again later. (100)"
    This app was not downloaded using a different Apple ID. I have been able to update other apps successfully.
    Any ideas?

    I keep getting error 100 when trying to download 1password4 updates

  • 10g Locks Up when selecting database field for optimistic locking

    As the subject says, when I attempt to select the database field for optimistic locking, JDeveloper locks up and I have to kill it with the task manager.
    Should I post problems with TopLink in 10g in this forum or the TopLink forum?

    I finally hit this StackOverflowError again. This happens sometimes when I select the Locking tab on a class where the locking field has already been selected. Here is the top of the stack trace:
    java.lang.StackOverflowError
         at java.util.TreeMap$KeyIterator.next(TreeMap.java:1047)
         at java.util.TreeMap.buildFromSorted(TreeMap.java:1588)
         at java.util.TreeMap.buildFromSorted(TreeMap.java:1534)
         at java.util.TreeMap.addAllForTreeSet(TreeMap.java:1492)
         at java.util.TreeSet.addAll(TreeSet.java:247)
         at java.util.TreeSet.<init>(TreeSet.java:138)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.getAssociatedTablesCopy(MWClassDescriptor.java:377)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.getSecondaryTablesCopy(MWClassDescriptor.java:698)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.hasMultipleTables(MWClassDescriptor.java:796)
         at oracle.toplink.workbench.ui.labels.DatabaseFieldLabel.isMultiTable(DatabaseFieldLabel.java:120)
         at oracle.toplink.workbench.ui.labels.DatabaseFieldLabel.installUI(DatabaseFieldLabel.java:93)
         at oracle.toplink.uitools.cell.BasicLabel.prepareLabel(BasicLabel.java:953)
         at oracle.toplink.uitools.cell.BasicLabel.getListCellRendererComponent(BasicLabel.java:611)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$RendererWrapper.getListCellRendererComponent(BasicListChooserUI.java:1104)
         at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1147)
         at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1097)
         at javax.swing.plaf.basic.BasicListUI$ListSelectionHandler.valueChanged(BasicListUI.java:1465)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:402)
         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:411)
         at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:435)
         at javax.swing.JList.setSelectedIndex(JList.java:1730)
         at javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:998)
         at javax.swing.plaf.basic.BasicComboPopup.access$000(BasicComboPopup.java:43)
         at javax.swing.plaf.basic.BasicComboPopup$ItemHandler.itemStateChanged(BasicComboPopup.java:782)
         at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1161)
         at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1218)
         at oracle.toplink.uitools.ComboBox.selectedItemChanged(ComboBox.java:512)
         at javax.swing.JComboBox.contentsChanged(JComboBox.java:1265)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$ComboBoxModel.fireContentsChanged(BasicListChooserUI.java:598)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$ListDataHandler.contentsChanged(BasicListChooserUI.java:842)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.removeAll(DefaultListModel.java:529)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:724)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:732)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:732)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    ...

  • Error message: Host process for windows services stopped

    I recently had to install a new hard drive into my laptop. I am running windows vista and have installed all updated drivers. After installing itunes and uploading my backed up library, I went to play a song and I got the error "host process for windows services stopped working and was closed." Movies play fine. I have searched but have not found anything. Any help would be greatly appreciated. 

    Q I just upgraded to a new mobo and CPU, the EVGA X58 SLi and i7 920, and this issue still persists! That means it is either the sound card or Steam. The drivers on the CD have no issues, only the newer ones do. So by deduction there is something wrong with the new drivers, but I need them to not BSOD in OpenAL!

  • Error While updating Process form data Using Scheduler

    Hi All,
    I am trying to update Process form data (ex : lastname) using a scheduled task Code. I am getting Error while updating Field.
    Code :
    HashMap<String, String> map = new HashMap<String, String>();
    map.put("UD_EBS_PF_LASTNAME", "lastname");
    formintf.setProcessFormData(instancekey, map);  //I AM GETTING AT THIS LINE
    Saying
    Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl_1036_WLStub.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
        at $Proxy2.setProcessFormDatax(Unknown Source)
        at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.security.Security.runAs(Security.java:41)
        at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
        at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
        at $Proxy3.setProcessFormData(Unknown Source)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.execute(AssignRandomPasswordToAllUsersSchedulerTest.java:182)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.main(AssignRandomPasswordToAllUsersSchedulerTest.java:63)
    Caused by: Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:761)
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:426)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    Is that possible there was the field ZDATE in your form interface/ context and now it is not? I guess some source has changed so the field in the form (binding to the not existing field) cannot be processed. Otto

  • Update process for installed CS extensions

    Hi,
    Once a CS extension has been built and installed what options are there  if you want to send out a update for a CS extension you have developed, how do you notify users who have installed the extension that there is an update.
    As CS Extensions created through CS Extension Builder are based on Adobe AIR is it possible to implement a update process similar to desktop AIR applications where it checks everytime it starts up if there is an update available or is there another solution?
    Thanks
    Stephen

    Even if the whole process is not yet finalized yet, a few things can be said already:
    Updates will be deloyed in the customer tennant => no explizit installation take place.
    The update will probably be visible via the business configuration or a kind of system message.
    Updates are also independent of the ByDesign release cycles.

  • Error in Branch Processing for Document Image

    Hello,
    I had some assistance on a previous Thread named: Document Image. I got some great feed back and help implementing an Document Image instead of the normal Download link. My question is that for the Document Library OBE Example item Name is required so the Type image will always appear. My Type is not required and an image is defaulted even if not Browse/Created when viewing IR. There is a default document image for Type and once it is clicked an error message appears.
    ORA-22275: invalid LOB locator specified
    Error ERR-1009 Error in branch processing. How do I only populate the Type Image if Browse/Create occurs? Here is the code that makes the images appear based on Document Type.
    SELECT '<a href="apex_util.count_click?p_url=f?p=&APP_ID.:6:&APP_SESSION.::::P6_EMPLOYEE_ID:' || employee_id || '&p_cat=DOCS&p_id=' || employee_id || '&p_user=' || :app_user || '&p_workspace=' || apex_custom_auth.get_security_group_id || '"><img src="' || decode(mimetype, 'application/vnd.oasis.opendocument.text', '#APP_IMAGES#icodt.gif', 'application/vnd.ms-excel', '#APP_IMAGES#ICXLS.gif', 'application/msword', '#APP_IMAGES#ICDOC.gif', 'application/pdf', '#APP_IMAGES#icpdf.gif', 'application/vnd.ms-powerpoint', '#APP_IMAGES#ICPPT.gif', 'application/vnd.oasis.opendocument.spreadsheet', '#APP_IMAGES#iccalc.gif', 'application/vnd.oasis.opendocument.presentation', '#APP_IMAGES#icodp.gif', 'text/plain', '#APP_IMAGES#ICTXT.gif', 'application/x-zip-compressed', '#APP_IMAGES#ICZIP.gif', '#APP_IMAGES#ICGEN2.gif') || '" width="20" height="20" border="0" />' "Type",
    "FILENAME",
    "EMPLOYEE_ID",
    "FIRST_NAME",
    "LAST_NAME",
    "EMAIL",
    dbms_lob.getlength("PHOTO") "PHOTO"
    from "#OWNER#"."OEHR_EMPLOYEES" I hope I explained my issue correctly for everyone to understand. Thanks for viewing and taking time to assist.

    Charles,
    I mentioned the solution in my previous post and said that you could use a case statement not to display the download link when there is no filename:
    SELECT CASE
              WHEN filename IS NOT NULL
                 THEN    '<a href=#><img src='
                      || DECODE
                               (mimetype,
                                'application/vnd.oasis.opendocument.text', '#APP_IMAGES#icodt.gif',
                                'application/vnd.ms-excel', '#APP_IMAGES#ICXLS.gif',
                                'application/msword', '#APP_IMAGES#ICDOC.gif',
                                'application/pdf', '#APP_IMAGES#icpdf.gif',
                                'application/vnd.ms-powerpoint', '#APP_IMAGES#ICPPT.gif',
                                'application/vnd.oasis.opendocument.spreadsheet', '#APP_IMAGES#iccalc.gif',
                                'application/vnd.oasis.opendocument.presentation', '#APP_IMAGES#icodp.gif',
                                'text/plain', '#APP_IMAGES#ICTXT.gif',
                                'application/x-zip-compressed', '#APP_IMAGES#ICZIP.gif',
                                '#APP_IMAGES#ICGEN2.gif'
                      || ' width=20 height=20 border=0 /></a>'
              ELSE NULL
           END TYPE,
           filename, employee_id, first_name, last_name, email,
           DBMS_LOB.getlength (photo) photo
      FROM oehr_employees;) :)
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Error: This update is for an app downloaded with a different Apple ID. Sign in with that Apple ID and try again.

    I am trying to update iphoto but I have been receiving the error message "This update is for an app downloaded with a different Apple ID. Sign in with that Apple ID and try again." All other IDs I have had NO LONGER work or aren't activated. I deleted the current verison of iphoto, but it still won't work, so now I have no iphoto whatsoever...any ideas? my current ID is my ONLY ID I have.

    Apple Closed all other accounts and the logins DO NOT WORK!
    Apple would only have closed an account if you called Apple and formally requested that be done. Otherwise, the account is still there.
    I was able to delete my old apps and redownload them onto my computer which switch the Apple ID it was under, but I am not having the same luck with iPhoto.
    Those would have been free apps that you "bought" again using your new Apple ID. iPhoto is a paid app and Apple will not transfer it to a different Apple ID.

  • Error While Updating Issue For Production

    Hi,
            When i am trying to update an UDF in issue for production i am getting the following error message.
      Item is Not a Component to the Referenced work order[Goods Issue - Object Type] Message 3560 -5

    Dear Manikandan K,
    Regarding the message we can tell you that the error message           
    "Item is not a component of the referenced Work Order" usually appears 
    because there is a case sensitive problem between the item code given  
    in the BOM and the item code given in the item master data.            
    Please check if the item codes of the BOM are exactly the same as the  
    codes given in the item master data. There should not be any differences
    between spelling of the codes (for example item code in the item master
    data is with capital letters X00014447 while the item code in the BOM  
    is with normal letters x00014447).                                                                               
    In case you find item with this issue please correct its item code     
    in the BOM manually so it will be exactly identical with the code given
    in the item master data.                                               
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • STOP 0x0000007B Blue Screen Error after updating drivers for my P67A-C45

    Hi!
    I recently updated the drivers for my mainboard MSI P67A-C45. I did this with the update utility that follows this product. I choose the "update all" function so I'm not really sure what was actually updated but I remember seeing the bios and my realtek network drivers in the list of stuff being updated. Anyway, during (what I think was) the update of my BIOS (a CMD window appeared and started executing tasks) my computer suddenly restarts. I wasn't really paying attention during this process but it seemed like it wasn't finished and that the restart was unintentional.
    Now during boot I get a Blue Screen message at the "Starting Windows" logo. The Blue Screen flashes by and my computer restarts instantly. It's a STOP 0x0000007B message which probably has to do with the drivers I just tried to update.
    I have Windows 7 64-bit and I have tried the startup repair and the system restore function without any success.
    Any ideas?
    Can I revert these updates or maybe install the original drivers without formatting my hdd? I have the original CD that came with the board.
    Best Regards
    Victor

    AHCI is a mode setting for the SATA controllers. You will find it in Integrated Peripherals. If you haven't set it to AHCI, it normally defaults to IDE mode. X79 platform being the exception. Yes. Remove LU5 & download & install all driver updates & such manually.
    If your UEFI/BIOS did get flashed by LU5, I would recommend to remove the power cord from the PSU, remove the battery for awhile, clear CMOS, reset all the settings, especially check in the OC Section, CPU Features. Check to make sure there are no '0's showing. I don't know what your CPU is, so I don't know what to tell you to set the Core Ratio limit for each core if they are in fact sitting on 0. Disable Spread Spectrum & EuP 2013.

  • Currency conversion error in Update rules for 0SD_C03

    Hi All
    I have freshly installed Sales Overview cube 0SD_C03 from BI Content(3.x version) and when extracting data from datasource "2LIS_13_VDITM" there is an error "Error: Conversion foreign curr. -> local curr.: 0090000000 20080516 M -> SGD".
    Till PSA data is loading fine, there is error while loading from PSA to cube(ie. in Update Rule).
    Checked in the PSA for the errored records, all the records which have 0(zero) as amount are green and the rest of them are errored with the above message.
    When checked in the manage cube there are added records but the request is red.
    Please let me know if some one as the clue.
    Regards
    Jayant

    Hi
    You will find the transfer global settings for the source system where you are extracting the data.
    Select the source sytem, right click,go to transfer gloabal settings, (select the currencies in this)
    Then Reload the data into the cube,
    After, Reloading the data into the cube replicate the master data, and activate the mappings,and load the data.
    I think, this will work....
    Regards
    Sudheer

  • HT1222 Error "The update Java for Mac OS x 10.6 Update 11" can't be installed. An unexpected error occurred. I have already fixed some HD issues but I cant update. Please help

    I have tried many times downloading this update and installing getting the same result. I ran disk utility and checked for errors. Disk has no errors.
    Im currently working on 10.6.8 on a MackBook Pro late 2008.

    Thx for the reply:
    I've already ran Mac Update and Dld standalone with no success. Im also getting same error  when trying to install Itunes 11.0.1, ProApps QuickTime codecs.
    I have also tried the Supplemental Update with the same result.

  • HT4623 My iphone had an error while updating and is now locked up on the apple screen with the progress bar

    Itunes was updating my phone from 6.01 to 6.1 and it came up with an error. I closed the error not thinking about it and now my phone is locked up on the apple screen with the progress bar on it.

    hi i tried to update my iphone 3gs from ios 4.1 to 6.1.2, while doing the same i got an error message (-5000) which i ignored an continued. it was almost about to complete while my itunes is not able to detect the iphone kindly help.

  • Updated Process for the Ideas Exchange

    Hey folks! Spotify Community team here.
    If you've been around the Spotify Community for a while, you've probably noticed that we keep tabs on your suggestions for improving Spotify through our Idea Exchange. 
    In an effort to keep the Idea Exchange as organized and up-to-date as possible, we've changed the way Ideas are submitted. We've outlined the new process with a step-by-step guide below. 
    We hope that you continue submitting ideas to make Spotify even better.  While we can't promise that we'll implement every idea that you submit, but we'll always do our best consider each one and provide updates wherever possible. 
    The guidelines:
    Search for previously submitted ideas.  Someone may have already submitted the same idea.
    One idea per post.  No double dipping.  
    Ensure the idea is implementable.  Avoid posting general feedback or questions in the idea exchange--the more specific the idea the better.  
    Use an intuitive title.  
    Submitting a new idea:
    1. Go to the Idea Submissions Board.
    2. Click the New Idea button.
    3. Enter an Idea Subject that includes one of the tags above. 
    4. In the Body enter a detailed description of your idea, including any screenshots or links you'd like to share. 
    5. Select one a platform label.
    6. Then select a subcategory label.
    7. Click Post. 
    8. One of our Idea Guardians in the Rock Star Program will analyze the idea and mark it either as a "Live Idea" or close it for a specified reason (duplicate idea, unspecified, etc). Allow us to introduce our Idea Guardians: Marco, FredJ, gprocess, Peter, dinomight, Anthony, pnc, Jordi, kbrooksc, Carina, OviiiOne, and Rodrigo.
    9. If your idea reaches the Live Idea board it can then start to gain kudos and comments from other users.
    10. Once your idea reaches 100+ kudos a Community Manager or Moderator will update the status to one of the following:
    The Idea statuses: 
    New Suggestion (no status/default one): the idea was just posted, it is waiting to be reviewed by an Idea Guardian.  
    New Idea: this is a new and unique idea, you can add your kudos here. 
    Inactive Idea: Ideas that could not gather at least 25 kudos per year will get closed - you can submit this idea again if you still feel the topic should get some attention. We recommend changing the title or description if posting the same idea again.
    Good Idea, give it some kudos: We like this idea. A decision has not been made but we want to see how much the Community continues to vote on it.
    Under Consideration:  This has been brought up internally. 
    Watch this space: This feature is coming. We have a rough pipeline for its release. 
    Not right now: We talked about this internally and it’s not on our pipeline for the next few months or more.
    Case Closed:  We talked about it, but we won’t be running with it. Thanks anyway!
    Implemented:  This feature has rolled out on the specific platform.
    Needs more info:  We need more clarity or information around this idea from the original poster.
    Curious for more information about the Ideas Board? Check out The Ideas Board: How your feedback reaches Spotify.
    Thanks for your continued feedback and contributions everyone,
    The Spotify Community Team 

    Ah, yes, now I see it. For those of us with less than perfect vision, how about putting the text in red in the center of the page as opposed to in only slightly darker green to the right. I've never used this page before so I had no idea there even was something to select on the right hand side. Also, the first link in the first post on this page gives me this: "You do not have sufficient privileges for this resource or its parent to perform this action.Click your browser's Back button to continue.Return to my original page"

Maybe you are looking for

  • Creating web buttons using InDesign 3.

    I am creating web buttons using InDesign 3. I need to create a 150×150 button and when I go to Document setup, put in 150 pt, the dimensions of the document end up saving as 625×625. What am I doing wrong?

  • NG6 pattern lock problem.

    Is anyone else having the problem of not being able to interact with their phone after the NG6 update with pattern lock enabled? On the first unlock my phone takes me to my home screen but does not respond to touch. If I relock and then unlock again

  • Why do I get the error??

    When I try to open my Adobe Dreamweaver CS4 I get the following error.. I have tried reinstalling it even though I get.. What shall I do.. Help me..

  • Help with rotating circular menu

    Hi there. With help from a few tutorials, I've made a menu with 5 buttons that rotate around a central Clip. So far so good. Except I need to add a lightning that will point toward the center whenever a button is activated. Much like picture below: E

  • Article creation--How to create purchase view

    Hi, I am using BAPI_MATERIAL_MAINTAINDATA_RT to create Article. I am able to create article using Basic view, Log. DC view etc. There is no purchasing view in HEADDATA. Also fields like Purchase organization, net price etc are not present in any stru