Help me to solve the problem while Uploading

Hi Everyone,
I am importing datas from spread sheet to database table by APEX upload.
In my case the client made thier entries in Spread sheet,I have to upload their entries in to Database table.Our client does not know the value for primary column and also he need not know the primary id value.In such a instance how can I assign a sequence value to particular column(primary key column) apart from spread sheet.
Thanks in advance
Akash

Akash
I actually meant that you must create a new table from the spread sheet, not a new application.
Do you want to load it from your application every time?
If you do not need to load it from your application every time, do what I recommended. After you have created the new table, the sequence will be created and the trigger is automatically created. Then you can just load the spread sheet in every time (without the primary key) - it will be created from the sequence.
You can even try it from the application after you have created it the first time.
OR
You can try this:
1) Create a sequence that must start from the last value that you had (or you can use an existing sequence if you have one).
2) Create a trigger on your table with the following:
create or replace trigger "bi_ORGUNITS" -- bi_orgunits is the name of trigger
before insert on "ORGUNITS" -- orgunits is the name of your table
for each row
begin
if :new."ID" is null then
select "ORGUNITS_SEQ".nextval into :new."ID" from dual;
-- Orgunits_seq is name of your sequence and ID is name of your primary key
end if;
end;
Please let me know if you got it right.
Elsie

Similar Messages

  • An error encounter on test devise (real devise) i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    Hello, I am using tesseract api in my app, which run perfectly on simulator but on test devise (real devise) it is showing an error i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    if you can't compile the webutil.pll in your forms developer you need to set the forms_builder_classpath in you windows registry. You have to add the frmwebutil.jar,jacob.jar to the registry key. The configuration files you mention are for running the forms.

  • Thank you for providing immediate  feedback.   bt that solution did not help me to solve the problem.still am nt able to make outgoing calls. i dont find any problem in recieving calls also right. bt i dont have any problem in recieving calls.

    Thank you for providing immediate  feedback.   bt that solution did not help me to solve the problem.still am nt able to make outgoing calls. i dont find any problem in recieving calls also right. then i dont what is wrong with my iphone.The same sim which i used in iphone4s is working in all other phones.its not the problm of carrier.
    Iphone 4s Black 16gb

    Rather than starting a new thread every time it would be easier to follow you if you stick to the one thread

  • My ipod touch 4G got problem after update to iOS 6, it can not access the Apps store ,can not access safari,map, weather and so on, could someone help me to solve the problem, thanks in advance~~~

    My ipod touch 4G got problem after update to iOS 6, it can not access the Apps store ,can not access safari,map, weather and so on, could someone help me to solve the problem, thanks in advance~~~

    Force close the App Store app and reset the iPad. No data will be lost when you reset the device.
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Next, reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • My login option turned to disabled ,according  to the tips ,i've changed my passwords many times, but i still can't login my itunes store ,who can help me to solve the problem?

    My login option turned to disabled ,according  to the tips ,i've changed my passwords many times, but i still can't login my itunes store ,who can help me to solve the problem?

    Try here >  Can't connect to the iTunes Store
    Try disabling anti virus software and turning off the Firewall.

  • HT201210 how to solve the problem while re storing iphone 3gs. unknon erron occured(29)

    How to solve the problem while restoring iphone 3gs? (unknon error occured (29)

    Hello Musthafa K.O.M,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694#47
    Check for hardware issues
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
    Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
    Have a nice day,
    Mario

  • I have the following Imac and Iphoto 11 in Finder folder I upgrade the iphoto file  and  all the latest event files, can you help how to solve the problem? Thank you  Model Name iMac    Model Identifier:     iMa

    I have the following Imac and Iphoto 11 in Finder folder I upgrade the iphoto file  and I lost all the latest event files, can you help how to solve the problem? Thank you
    Model Name:     iMac
    Model Identifier:     iMac8,1   Processor Name:     Intel Core 2 Duo
    Processor Speed:     2.4 GHz

    http://support.apple.com/kb/HT2638?viewlocale=en_US&locale=en_US

  • Help me to solve the problem

    hi,
    i had declared rMeasure String variable. and i accessed it. but it is giving error (
    org.apache.jasper.JasperException: Unable to compile class for JSPC
    Duplicate variable declaration: String rMeasure was String rMeasure )
    help to solve the problem.
    Regards
    javasakshi
    CODE:
    <%@ page import="java.sql.*" %>
    <%! String rMeasure=""; %>
    <%
    try{
    src.DBConn sessionName = (src.DBConn)session.getAttribute("DBName");
    ResultSet rsa;
    rsa=sessionName.getRs("SCAMS2",new String[]{sid});
    while (rsa.next()) {
    rMeasure=rsa.getString("Measure");
    %>
    <jsp:forward page="/jsp/OutModScale.jsp" >
    <jsp:param name="rSclId" value="<%=rMeasure %>" />
    </jsp:forward>
    <%
    }catch(Exception e) {
    System.out.println(e);
    %>

    Hi,
    I didn't see anything wrong with the given code.Is that full code u r
    using?I event tested in my comp . i didn't get any error.If possible post u r full code.
    best regards,
    mohan

  • HT1918 I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    You made a purchase and exhausted the credit on your card before it processed. All purchases are final. Contact iTunes Store support. You need to settle up before you can purchase or download anything else.

  • Back up problem. Pls help me to solve the problem.

    Dear Apple support team,
    When I connect ipod to Itunes, the process of verifying and backing up is too long. And Itunes makes all programs such as firefox, yahoo messenger... run slowly. After syncing, the notice is appeared as below:
    Therefor, I do not know whether the Itunes create backup or not
    Pls help to check and solve this problem.
    Thanks for your support
    Lolly

    I can't give you the adequate support, but maybe the iTunes forume can: https://discussions.apple.com/community/itunes/itunes_for_windows / https://discussions.apple.com/community/itunes/itunes_for_mac

  • Please help me to solve the problem ---it's urgent

    hi everybody
    my application is deployed on the weblogic 9.0. I am using the VB DLL through which i am sending the request to the servlet.
    When i am pressing the "Color" button in VBDLL to retrieve the color information, server takes the long time nearly 10-12 minutes to return back the color information but it throws the following error
    <Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "621" seconds working on the request "Http Request: /sales/appFindSize.jsp", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    java.lang.Object.wait(Native Method)
    java.lang.Object.wait(Object.java:474)
    javelin.client.JobWaiter.blockUntilFinished(JobWaiter.java:45)
    javelin.client.ClientUtilsImpl.build(ClientUtilsImpl.java:838)
    weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:244)
    weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
    weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:224)
    weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:383)
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3022)
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925)
    weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848)
    weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288)
    weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    please help me to solve this error it is urgent.
    Thanks in advance
    Pandurang S. Pokharkar

    Exchange rates can be entered as a direct or indirect quotation. You can maintain two prefixes that
    can be used to differentiate between direct and indirect quotations exchange rates during input and
    display. If you don´t set up a prefix, the standard setting is valid:
    &#159; “” (blank, without a prefix) for direct quotation exchange rates
    &#159; “/” for indirect quotation exchange rates
    n Scenario 1: If you use mainly direct quotation exchange rates and indirect quotation occurs seldom,
    use the default configuration. In this way you can enter direct quotation exchange rates without a
    prefix.
    n Scenario 2: If, in addition to direct quotation exchange rates, the handling of indirect quotation is
    required, you should define a prefix that is not “blank” for both quotation types, e.g.:
    &#159; “*” for direct quotation exchange rates, “/” for indirect quotation exchange rates
    &#159; If you follow this suggestion, the configuration does not allow exchange rates to be entered
    without a prefix, an error message occurs. Thus users are forced to consider which the correct
    quotation is and enter the rate with a valid prefix.
    n Scenario 3: If indirect quotation is the major notation at your company, you can configure the
    settings this way:
    &#159; “*” for direct quotation exchange rates, “ ” (blank) for indirect quotation exchange rates
    &#159; This configuration allows indirect quotation exchange rates to be entered without a prefix whereas
    the less used direct quotation exchange rates have to be entered with a prefix.

  • I take pictures in RAW but when I move them from aperture 3 to a pendrive they come in jpg. Can someone help me to solve the problem?

    I take pictures in RAW , why is that when I want to move them from aperture to a pen drive they come out in jpg?

    As Allen wrote exported images will be JPG or TIFF unless you specifically export the master. If you export the master the original RAW file will be written out of Aperture.
    Be aware that any adjustments you did to the image or ant metadata you added will not be included.
    BTW how are you 'moving' them out of Aperture?

  • The tab button is not operating, it is visually there, just doesn't work. tried rebooting and help but cannot solve the problem. also tried control+T and nothing works, reset to default and still doesn't work.

    Tab button is not operating. Tried rebooting, resetting options to default, tried with mouse and with control+T and nothing seems to activate it. It was working properly until an hour ago. Now the + (tab) button is there but it is idle. How do I fix this issue?

    This issue can be caused by the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    Your system details show that toolbar in the user agent as AskTbFWV5/3.12.2.16749
    See:
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on th

    I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on the FTP server Blog.

    You haven't a problem. You simply did not read the iWeb Help :

  • My new iPhone 5 has black and white lines on the screen. It's not been damaged. I've tried turning it off but this does not solve the problem? Please help.

    My new iPhone 5 has black and white lines on the screen. It's not been damaged. I've tried turning it off but this does not solve the problem? Please help. I can't find my answer on the Internet.

    By far the most common problem hardware-wise seems to be scuffs on the aluminium. Yours is the first report of a faulty screen I've seen.
    If you use the same Apple ID on both devices it'll sync whatever you want it to - music/apps/photos/messages/etc.
    I've just switched from a Galaxy S3 to iPhone 5 (having already owned an iPad for a while) so I'm in a similar position!

Maybe you are looking for

  • How to get ServerStats working

    Hi all, What do you need to do to get ServerStats working out-of-the-box on a Windows 7 machine? Regards

  • LV 2011 installer with NI-CAN

    executable and on the target machine I can run that if I previously installed NI-CAN 2.7.3 from the support download of NI.com. Now I wanted to build an installer, that would automatically install the NI-CAN together with all the other drivers, runti

  • Editing TEXT in WORD file.

    Hi, Is it possible to EDIT a text file (word) from FORMS 10g. Let's say I want to FIND and REPLACE text in a word file. Is there any tools or JAVA code that can help me achieve this? Thanks in advance, Marc.

  • Badi for emailing the release for purchase order,

    hi all, in me28->release (approve) purchasing documents->release purchasing document..there u have a button (release+save ) button   i want to enhance at that pointi.e when u select the po no and click the button,automatically trigger an email to the

  • Can not load external Iphoto library to Iphoto

    I was told to update Iphoto this morning I did so, I open Iphoto using the option key to get my external iphoto library but nothing loads, instead I get a screen that looks like I have a new Iphoto with no photos no albums no slideshows etc. I am usi