SQLException: [Lotus][ODBC Lotus Notes]Too many columns or expressions

Hi there...
getting the above error when i try to execute a SQL statement using Java 1.5.....
see the problem here is the way the data is set-up...in order to limit a data-view i first have to read in a string of employee numbers by which my query will be limited..these values are not found in the data base but exist on an ftp Server in ascii format...
I ftp to the server retreive the relevant employee numbers & use a string buffer to extract the correct format of each employee number...i then use this string to limit my query..
//cast the stringBuff to a string
String toSend = stringBuff.toString() + "'";
//format of string toSend = 'IE0046', 'IE0012', 'IE1123', etc..etc...
//SQL, limit using string toSend...
NotesQuery = "SELECT EmpNum,Empcc,FullName,MailFile,sizecalc,Threshold_3 FROM UBC_Export_Dublin WHERE(EmpNum IN("
                + toSend + ") AND Empcc = '754') ORDER BY EmpNum";
           //execute query using resultSet
            rs = stmt.executeQuery(NotesQuery);the output format of the string passed is correct but contains more than 1,000 employee numbers..i am aware this may be alot of entries to process but i taught it would work alright..has anyone encounter a simliar problem before in the same environment?
I have also tried making the ResultSet.CONCUR_UPDATABLE and updating it this way..but i get an error stating that this is not support with the LotusNotes DB....
thanks in advance..

Try removing the bracket immediately after WHERE.
NotesQuery = "SELECT EmpNum,Empcc,FullName,MailFile,sizecalc,Threshold_3 FROM UBC_Export_Dublin WHERE EmpNum IN("
                + toSend + ") AND Empcc = '754' ORDER BY EmpNum";

Similar Messages

  • Too many columns to be shown in the Enterprise Manager 11g?

    Hello,
    we are having some problems with the Enterprise Manager 11g. When we want to VIEW DATA of a specific table, we get this exception. We think that our table has too many columns to be displayed. If we delete some of the columns, the data is shown in the enterprise manager. But this cannot be a solution for us. Can you help us with this point?
    2009-08-03 10:07:04,210 [EMUI_10_07_04_/console/database/schema/displayContents] ERROR svlt.PageHandler handleRequest.639 - java.lang.ArrayIndexOutOfBoundsException: -128
    java.lang.ArrayIndexOutOfBoundsException: -128
         at oracle.sysman.emo.adm.DBObjectsMCWInfo.getSqlTimestampIndexes(DBObjectsMCWInfo.java:194)
         at oracle.sysman.emo.adm.schema.TableViewDataBrowsingDataSource.executeQuery(TableViewDataBrowsingDataSource.java:167)
         at oracle.sysman.emo.adm.DatabaseObjectsDataSource.populate(DatabaseObjectsDataSource.java:201)
         at oracle.sysman.emo.adm.DatabaseObjectsDataSource.populate(DatabaseObjectsDataSource.java:151)
         at oracle.sysman.emo.adm.schema.DisplayContentsObject.populate(DisplayContentsObject.java:369)
         at oracle.sysman.db.adm.schm.DisplayContentsController.onDisplayAllRows(DisplayContentsController.java:303)
         at oracle.sysman.db.adm.schm.DisplayContentsController.onDisplayContents(DisplayContentsController.java:290)
         at oracle.sysman.db.adm.schm.DisplayContentsController.onEvent(DisplayContentsController.java:136)
         at oracle.sysman.db.adm.DBController.handleEvent(DBController.java:3431)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:577)
         at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:205)
         at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:121)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:781)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:337)
         at oracle.sysman.eml.app.Console.doGet(Console.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:109)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:153)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)When we select the table via SQL, everything works fine.

    Hi,
    I'm Galit from the QE team of VIN.
    All the things that you've described are correct.
    It is actually an edge case where the only VM, that the manual App can be managed from its Map view, was removed from the App.
    The Manual App management is as designed, and may be changed in the future.
    There are 2 ways to overcome this situation:
    1.You can, as you stated, create another Manual App with similar name and remain with the "Zombie App".
    2. To run a specific command that will remove the Zombie App from the DB.
    Please note that option no. 2 involves using an API that we do not publish.
    If you would like to use option no. 2 contact me in private and we will see about supplying the relevant commands to run in order to delete the "zombie" application.
    Thanks,
    Galit Gutman

  • Unable to load the following resource: Error: too many columns- form won't

    Hi ..
    Can you please suggest on the following error, which i am facing the issue while opening data form in Hyperion Planning 11.1.1.4 .
    Unable to load the following resource: Error: too many columns- form won't
    Regards,
    Vasu

    It is something around 256 if I am not mistaken, I dread to think what a form with 700 columns is like to work with.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Too many columns for Custom report

    Hi,
    I'm building a custom XML Publishe report, the O/P will be in excel format.
    Problem is that i have too many columns...around 30 which are extracted to excel sheet.
    How should i create RTF file with these many columns?
    Any suggestion?
    Database:10g
    Thanks.

    Hi,
    try the Oracle BI Publisher forum (BI Publisher as you are using XML Publisher.
    Regards, Roberto

  • Tabular form: too many columns

    What can I do with too many columns in a tabular form? I tried modifying the report template behind and put </tr><tr> inside column template, but I'm unable to find current's loop column number. This would work if after every 3rd column in a report I could do the </tr><tr> thing.
    Substitution string #COLNUM# doesn't work in this particular template field.

    Hi "prpi",
    What do you want to achieve? Have less columns?
    Or see them on the next row?
    You can use javascript to show/hide columns. Have a look here: http://htmldb.oracle.com/pls/otn/f?p=11933:46:7060485099466175
    Hope that helps,
    Dimitri
    -- http://dgielis.blogspot.com

  • Too many columns in CROSS-Tab

    Post Author: plm
    CA Forum: Crystal Reports
    Hi,
    I have created a cross-tab table that is supposed to return one column per value from a specific field. This specific field is not fixed and currently contains about 50 values (let's make them Col_1, Col_2,...,Col_50. Tomorrow, a user can create Col_51, calling it whatever he wants, and another user delete Col_3. In short, this is fairly dynamic, and the cross-tab is supposed to reflect these values and the data attached to it.
    At the moment, Crsytal report XI returns has many columns as there are occurences in my column field. GREAT. How can I get 5 columns over 10 pages instead???
    Thanks,
    Philippe

    Sorry, don't think you can. At least I have not been able to figure it out. If you have less rows than columns, you could try reversing it.

  • Too many Columns in the Cross_Tab will get error

    Follow the requirement that will so many Columns in  the report , and should use the Corss_Tab,But when the data more than one page ,that will get error:Error formatting Cross-Tag Object.
    Is there anybody get the same problem ???

    Hi Alex,
    What version of Crystal Reports are you using (exact Service Pack/Support Pack and Patch)?
    If the Crosstab is located on the Group Header or Footer, please see if the resolution from SAP Note: 1214209 helps. This is what it says:
    This is a known issue in Crystal Reports and has been assigned Track ID ADAPT00055049.
    This occurs because the 'Keep together' option is not selected for the group where the crosstab has been inserted.
    To resolve this issue, complete the following steps:
    1. From the 'Format' menu, click 'Section'. This launches the 'Section Expert'.
    2. Click the group that contains the crosstab and select 'Keep Together'.
    3. Click the 'OK' button to close the 'Section Expert' dialog box.
    -Abhilash

  • How many is too many columns in a composite index

    hi all, (using 10g r2)
    i do realize that there is not an exact right answer, but im more curious to find out how others have handled this situation, for better or for worse...
    i know the literal upper bound on the number of columns that can be part of a composite index but i was wondering if any of you had come up with what you feel to be practical or upper bounds on the number of columns in a composite index? Also, can anyone share info on what might be strategy to figure out at what point the number of columns in the index creates a situation where updating/maintaining the index outweighs any performance gain you get from the composite index? Thanks in advance! -- jp

    user12241698 wrote:
    i was wondering if any of you had come up with what you feel to be practical or upper bounds on the number of columns in a composite >index? Also, can anyone share info on what might be strategy to figure out at what point the number of columns in the index creates a >situation where updating/maintaining the index outweighs any performance gain you get from the composite index? sb92075 pointed out the practical limit can only be obtained by testing. This is situational - like everything else, it "depends".
    Testing can be done by timing the results of the index variations you want to check. Time multiple uses of the index for DML and query operations involving the index. I like to track the numbers in seconds and put the values in spreadsheets for later reference and easy summation; you can put the data in tables to and use SQL for analysis if you want. I use dbms_utiltiy.get_time in pl/sql (get first time before run, get second time after run, time in fractiions of a second is second time minus first time) or set timing on in sql*plus (hour-minute-second) to obtain run times.
    Efficiency depends on what the compsite index is for. Are you trying to enforce uniqueness? Use the composite for data retrieval? Adding exra columns to avoid table access?
    Due to maintenance considerations indexes should not have more columns than needed. "duplicate" indexes with the same columns (like "id" vs "id, name") are usually redundant and one index (the one with the fewer columns) can usually be removed.

  • ALV: Problem in exporting to excel with too many columns

    Hi,
    While exporting from ALV report to excel following issue was faced:
    ALV report contains 81 columns out of which 67 columns are displayed properly but from 68th column onwards data is dispalyed on next row
    I want all columns displayed on single row..
    Any help will greatly appreciated..
    Thanks,
    Deepak

    Hi Deepak,
    I was browsing through these threads to find anwer for the same issue.
    So thought of putting my analysis which helped me resolve my problem.
    Analysis/Solution:
    When we export ALV data to excel worksheet, as sap notes say the maximum lenght allowed is 1023 charaters and the max no of columns supported is 90.
    (I never faced any issue related to no of columns as it worked fine for columns >90 too)
    Issue occured when row size of exported data gets more than 1023 character.
    Therefore the row data must not exceed 1023 character, otherwise column splits and moves to next row.
    One additional aspect generally missed is that:
    When data in any particular column changes it's length, alv header also changes its lengh (short text, medium text, long text; depending on the length of of the longest cell in the column)
    therefore even if you have total length of row less than 1023 character, there might be cases when your ALV header size exceeds this length.
    Hopefully it will be helpful for you too.
    Regards,
    Parveen

  • Table has too many columns for one pg in InDesign document. How do I force a break?

    I have imported an Excel table into my InDesign document.  The table is 598 columns wide.  Obviously this isn't fitting on one page.  I want it to just keep flowing from page to page, keeping one same column at the beginning of each page (like "freeze panes" does in Excel) but it's not doing that.  Is this possible in my InDesign document or will I have to manually copy and paste 10 columns at a time, which is about how many are fitting on one page?  Any searches I do on this subject just talk about flowing rows but nothing about columns. 

    As far as I know there's probably no way ID is going to do what you want.
    You can place a table across a multiple page spread, but the odds of being able to do that and still keep the file printable are marginal, at best. You can't for example, leave blank space at the gutters unless you are able to add a blank column that spans the gutter, and the limt for multipage spreads is 10 pages wide, whcih doesn't sound like it's probably enough to hold almost 600 columns.
    Perhaps placing the table using named ranges of appropriate widths would work...

  • Viewer Auto Resizes Columns – when too many columns

    Hi Guys,
    I’ve created a report in Desktop and am viewing it through Viewer (4.1). The report itself is a simple ‘table’ report with quite a lot of columns. (that’s where my problem comes in). I’m trying to tidy it up (mostly column X), therefore have wrapped a few columns in Discoverer Desktop all should look good….right?… well not quite ;-(
    When viewing the Report in Viewer, Viewer has automatically resized or shrunk the columns. I have 24 columns in the report and even after Viewer has done it’s own resize to my columns, I still need to use the scroll bar to view columns to the right. So what was the point of Viewer doing that in the first place? Anyways, column X was originally word wrapped and expanded to include a lengthy description, however after being “Viewered” it is now the width of the heading text itself. Data within this columns is still wrapped, but by the size of the column heading.
    I’ve noticed that if I start taking columns out one by one, Viewer will resize and increase the column size by a tiny amount. So to be able to display column X as required in Viewer, I’d have to take out 18 columns to be left with 6, which would then show Column X as the right size.
    Please tell me if there is any workaround or settings that can be amended in the Pref.txt file?
    Thanks,
    Lance
    Message was edited by:
    Lance Botha

    Hi Lance
    There is nothing you can do in 4i to control this behavior, one very good reason to upgrade.
    Discoverer Viewer will resize its columns in an attempt to fit them on a single page. It does this very well when the number of columns allows this. When you have more columns than can fit into a single page you will get multiple pages. If you reduce the headings for some of the columns are you able to get it to compress into a single page? If not, I fear you cannot do more.
    Best wishes
    Michael

  • Split row in two rows (Table with too many columns)

    Hello,
    I have a small problem. I have a table with several columns. As all the columns do not fit with the correct width, the format is very ugly. Since leaving all data in a row is very small, I like to cut a line into two, namely:
    - For example if I have a table with 10 columns, I would leave in the first row 7 columns (for that look good data) and the next row only the remaining 3 columns. Thus each row of the original table, occupy two rows on the form.
    Thank you very much beforehand

    hello
    thanks for the reply, will be very helpful.
    Regarding links to examples, I do not relate to this problem, these are not correct, you must have confused the link.
    thanks!

  • Too many table columns

    Hi,
    I have to create a pdf with a table having multiple columns.
    But the table has too many columns to fit in a A4 page.
    I do not wan to change the paper type. I have to use A4 paper only.
    Is there a way in which I can show the table records in two consecutive rows..
    so that I can split the columns into two rows.
    There will be two header rows... and two data rows (only data rows will repeat)
    data row1 will have data from say fields 1 to 10 and data row 2 will have data from fields 11 to 20.
    Regards
    Reema.

    As far as I know there's probably no way ID is going to do what you want.
    You can place a table across a multiple page spread, but the odds of being able to do that and still keep the file printable are marginal, at best. You can't for example, leave blank space at the gutters unless you are able to add a blank column that spans the gutter, and the limt for multipage spreads is 10 pages wide, whcih doesn't sound like it's probably enough to hold almost 600 columns.
    Perhaps placing the table using named ranges of appropriate widths would work...

  • Too many pictures in iPhoto.  What should I do?

    Hi.  I have over 33,000 pictures in iPhoto.  Consequently, it runs super slow.  What should I do?  I only have one iPhoto libary.  Should I have more? 

    No - and no
    33,000 is not too many - I have over 40,000 - someone posted today that they have over 300,000 photos
    multiple libraries is usually not a solution to anythingdo you have all of the sharing options turned off?
    LN

  • Encore Error when building Blu Ray *ISO (too many primary video...)

    Hi
    I have huge problem.
    I'm creating Blu Ray Image (ISO)
    I have project with
    Main Menu (Button-Start Film and Button-Submenu) Background Video and audio
    Submenu (16 Chapters Buttons and Button-Back to Main Menu) Background Video and audio
    One Timeline (rendered in PrPro) 2:46h (16 Chapters on it)
    I do Render motion menus first, then transcoding now of Timeline and when i Click Build I get this error
    "Blu-Ray Object: "<Menu>Name_Menu top menu",Error:"device error",Code: "2",
    Note: "Too many primary video streams in clip (Spec Table 9-3,Annex B)"
    I couldn't Find any answers for this problem in google.
    Anybidy had this and solved ?
    My Machine is
    Motherboard. ASRock P67 Extreme 4
    Proc. Intel core i7 2600 3.4GHz LGA1155
    RAM. DDR3 CL9: 12GB
    HDD. WD WD10EARS 1TB Caviar 64MB Sata
    Cooler Aerocool 700W
    GFX. Asus Geforce GTX 460 1024MB DDR5
    Win7 x64 Home Premium

    Are you using an AVCHD file as a background video and Audio?  The AVCHD files are the cause of the issue.I think this is a known issue in Encore and is discussed in the below thread -
    http://forums.adobe.com/message/3158140
    Thanks.
    Shuchi

Maybe you are looking for

  • Which table keeps the Discoverer Report list?

    Hi, I'm new to Discoverer, actually I haven't started to use yet. I would like to know is it possible to retrieve a list of reports created in Discoverer so that I can add them to the standard reports that I developed using Oracle Report builder in m

  • File not found, Error= –43

    Everytime i try to make a new project logic pro does not accept audiophiles i use from other project-folders (File not found, Error= -43). Even with the newest logic-version (10.0.7) and also a new mac book pro (moving via migration assistant) it doe

  • Mail files in Mail  1.3.11 vs Mail 2.1.2?

    I recently attempted to import my Mail info from my primary computer running 10.4.11 with Mail 2.1.2 into a computer I plan to use for backup use that is running 10.3.9 and Mail 1.3.11 I used a post I found here in the Discussions on 'Moving Folders

  • Organizer- Not Bridge on Mac PSE version 9

    I have updated my classroom iMacs with Photoshop Elements version 9.  And now I have Organizer rather than Bridge (as in version 8).  And I hate it. Q.1  Can I (and my students) buy and use a version of Bridge that can work with PSE 9 from Adobe? Q.2

  • TS4268 IMESSAGE NOT CONVERTING TO SMS

    I phone says imessage sent. non iphone user has not recieved message. imessage not converting to sms. turned imessage off, reset netwrk setting, turned on imessage, still not working.