Exception --- Value can not be converted to requested type.Error Code: 0

Inside my query, I try to use function,like
Expression formattedRegDateCol = regDateCol.getFunction("to_char", "YYYY/MM/DD");
sometimes query works fine and sometimes got following exception, can anyone here help me out..
Internal Exception: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.Error Code: 0
Call:SELECT COUNT(*), to_char(REG_DATE, 'YYYY/MM/DD') FROM SYSTEM_DETAIL WHERE ((REG_DATE BETWEEN {ts '2008-08-10 00:00:00.0'} AND {ts '2008-09-30 23:59:59.0'}) AND (GEOGRAPHIC_ID = 104)) GROUP BY to_char(REG_DATE, 'YYYY/MM/DD') ORDER BY to_char(REG_DATE, 'YYYY/MM/DD') ASC
Query:ReportQuery(com.cad.registration.RegistrationDetailImpl)
     at com.cad.report.data.DocumentReturnedDataGenImpl.loadData(DocumentReturnedDataGenImpl.java:130)
     at com.cad.report.data.AbstractDataGen.getReport(AbstractDataGen.java:96)
     at com.cad.report.command.ProcessReportRequestOnMessage.run(ProcessReportRequestOnMessage.java:74)
     at com.cad.registration.command.AbstractCommand.execute(AbstractCommand.java:106)
     at com.cad.flow.core.Run.run(Unknown Source)
     at com.cad.flow.core.WorkflowComponent.run(Unknown Source)
     at com.cad.flow.ejbs.WorkflowManagerBean.execute(WorkflowManagerBean.java:238)
     at com.cad.flow.ejbs.WorkflowManagerBean.execute(WorkflowManagerBean.java:135)
     at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl.execute(WorkflowManager_uh667k_EOImpl.java:132)
     at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
     at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335)
     at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
     at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl_1001_WLStub.execute(Unknown Source)
     at com.cad.util.WorkflowProxy.runWorkflow(WorkflowProxy.java:128)
     at com.cad.kbd.messenger.listener.mdb.ReportRequestMDB.onMessage(ReportRequestMDB.java:84)
     at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
     at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
     at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
     at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
     at weblogic.jms.client.JMSSession.execute(JMSSession.java:3964)
     at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070620)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.Error Code: 0
Call:SELECT COUNT(*), to_char(REG_DATE, 'YYYY/MM/DD') FROM SYSTEM_DETAIL WHERE ((REG_DATE BETWEEN {ts '2008-08-10 00:00:00.0'} AND {ts '2008-09-30 23:59:59.0'}) AND (GEOGRAPHIC_ID = 104)) GROUP BY to_char(REG_DATE, 'YYYY/MM/DD') ORDER BY to_char(REG_DATE, 'YYYY/MM/DD') ASC
Query:ReportQuery(com.cad.registration.RegistrationDetailImpl)
     at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:282)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:988)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:780)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:562)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:441)
     at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:457)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:174)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:481)
     at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:825)
     at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:791)
     at oracle.toplink.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:518)
     at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
     at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
     at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:451)
     at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2089)
     at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
     at oracle.toplink.publicinterface.Session.executeQuery(Session.java:965)
     at oracle.toplink.publicinterface.Session.executeQuery(Session.java:878)
     at com.cad.persistence.toplink.TopLinkPersistenceBrokerImpl.executeQuery(TopLinkPersistenceBrokerImpl.java:420)
     at com.cad.report.data.DocumentSys.getSummitedDocumentNumber(DocumentSys.java:332)
     at com.cad.report.data.DocumentSys.loadData(DocumentSys.java:110)
     ... 24 more
Caused by: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.
     at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
     at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
     at weblogic.jdbc.base.BaseData.getTimestamp(Unknown Source)
     at weblogic.jdbc.base.BaseResultSet.getTimestamp(Unknown Source)
     at weblogic.jdbc.wrapper.ResultSet_weblogic_jdbc_base_BaseResultSet.getTimestamp(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObjectThroughOptimizedDataConversion(DatabaseAccessor.java:1038)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:942)
     ... 45 more

Here is my code
ExpressionBuilder builder = new ExpressionBuilder();
ReportQuery query = new ReportQuery(RegistrationDetailImpl.class, builder);
query.addArgument("startTime");
query.addArgument("endTime");
query.addArgument("lro");
Expression lroCol = builder.get("lro");
Expression regDateCol = builder.get(
QueryConstants.RegistrationDetailQueryConstants.REGISTRATION_NUMBER_COL).get(
QueryConstants.RegistrationDetailQueryConstants.REGISTRATION_DATE_COL);
Expression formattedRegDateCol = regDateCol.getFunction("to_char", "YYYY/MM/DD");
Expression timeExp = regDateCol.between(builder.getParameter("startTime"), builder
.getParameter("endTime"));
Expression lroExp = lroCol.equal(builder.getParameter("lro"));
query.setSelectionCriteria(timeExp.and(lroExp));
query.addCount();
query.addAttribute("regDate", formattedRegDateCol);
query.addGrouping(formattedRegDateCol);
query.addOrdering(formattedRegDateCol.ascending());
descriptor.getDescriptorQueryManager().addQuery("testquery", query);

Similar Messages

  • CF9 Problems with Select * query, resulting in Value can not be converted to requested type.

    So, I work on a legacy CF web site and there are numerous SELECT * FROM USERS_TABLE queries all over the site.
    Well, we changed the structure of said table in the database on our Testing and Staging sites, with no issues.
    When we pushed up to our production environment and changed the structure of the production DB table, the server kept kicking back "Value can not be converted to requested type."
    After doing some searching out there, it looks like CF caches the structure of the table, and you either have to restart CF to clear it, or rename and then name-back the DSN to fix the issue.
    http://www.bennadel.com/blog/194-ColdFusion-Query-Error-Value-Can-Not-Be-Converted-To-Requ ested-Type.htm
    That said, this doesn't happen in our testing and staging environments - so what would be the difference?
    Is there some setting I need to change in the CF Admin to keep this from happening again?

    Also, if you can use a Stored Procedure to retrieve the data, do so.  Standard queries gets all the information, anyway, chokes bandwidth passing it all to the CF server, and forces the CF server to filter, sort, and format the data.  SPs tell the db server to get ONLY the data requested, and forces the db server to filter and sort the data, leaving only formatting to the CF server.
    That's not true. The only time CF messes with data returned from the DB is if there's a maxrows attribute, and the record set returnded from the DB has more than that number of records... which causes CF to truncate the recordset to the correct size before returning it. The DB might or might not stop sending rows down to CF after CF says "yeah, I've got all I want now".
    Other than that, for all intents and purposes all CF does with the SQL is pass it to the DB and wait for an answer. The only thing it does to the returned data is to create a CF record set ("query") with it... this does not involve any filtering and sorting.
    Adam

  • Can not restore my iPhone 4 with error code 1611 and can not activate it to work too.

    My iPhone 4 can not be activated and when I tried to restore it with itune there is error code 1611 about hardware issue.If anyone ever had the same problem please help.

    Have you googled to see what the error code means?  Perhaps that will give you a clue as to how to solve your problem.

  • Value cannot be converted to requested type

    hi.
    can anyone tell me why i get the following error:
    [sunm][Oracle JDBC Driver]Value can not be converted to requested type
    I get this error when i try to execute a SQL query like the one below:
    SELECT * FROM orders WHERE orders.date BETWEEN '20-SEP-05' AND '22-SEP-05'
    this is not the exact query i am trying to excute, but serves the purpose of this forum post.
    ideally, i'd like to use the "?" parameter instead of the dates written above. the application's user selects a StartDate and EndDate for his search. this should display a list of orders within that date range.
    i have tried using several date formats, as well as the TO_DATE() function. i always get this error when using the "?" parameter but it displays the correct records when i use an actual date.
    i also only get this error when working with dates. i can use the "?" parameter with no problems for any other table column.
    someone please help!!

    How is the user selecting a start and end date? By using the calendar? You might need to convert the calendar's date into an SQL friendly date. For instance, try this:
    somethingRowSet.setObject(1, (new java.sql.Timestamp(((java.util.Date)StartDate.getValue()).getTime()).toString()))You might also want to try turning on printStatements in the row set's properties. This will cause the row set to print out the parameters to the log file so you can then analyze what exactly the row set is doing.
    Hope this helps.
    -Jeff

  • New@SSIS - Excel Src: The value could not be converted because of a potential loss of data

    Good day,
    I am currently working on a SSIS package that had been built by a previous user. That Package allows me to import data from an excel source to a SQL table. The excel sheet holds multiple columns, However I am having difficulty with one
    column when running the package.
    The column rows hold a character and an integer (eg: N2). The data types are as follows:
    SQL – varchar(3),NULL
    SSIS - double-precision float [DT_R8]
    I then inserted a data conversion task to change the data type. The task holds the following properties:
    Input column – F6
    Output Alias – Copy of F6
    Data Type – string[DT_STR]
    Length – 50
    When I execute the package I receive the following error:”
    [Excel Source Data [76]] Error: There was an error with output column "F6" (91) on output "Excel Source Output" (85). The column status returned was: "The value could not be converted because
    of a potential loss of data.".
    I do know that usually the message "The value could not be converted because of a potential loss of data." refers to a data type or length problem.
    Further insight to this problem will be much appreciated.

    Hi Zahid01,
    From the error message you post, we can infer the issue is caused by the input column “F6” cannot convert to the output column in Excel Source.
    Based on my test, I can reproduce the issue in my environment. The exactly cause is the data type of input column “F6” cannot convert to the data type of corresponding output column. For example, the data type of input column “F6” is [DT_STR], the data type
    of corresponding output column is [DT_I4], and there are some nonnumeric values in the input column “F6”. When we execute the task, the error occurs. We can verify the issue in the Advanced Editor dialog box of Excel Source. The following screenshot is for
    your reference:
    To avoid this issue, please make sure the input column can convert to the output column in Excel Source, including all the values in the input column.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Value can not be assigned automatically  to Characteristics in Pro. Order

    Hi All,
        I am working on PP-PI scenario. I am getting one error during creation of Control recipe in Process order.
    Error is
    Value can not be assigned automatically to char XX in Process Instruction IN_AA phase BB
    I have checked the settings of Characteristics XX in T code O27C but it is OK.
    Thanks,
    Shailendra
    Edited by: Shailendra Hadkar on Feb 14, 2008 4:14 PM

    Dear,
    Can you tell me what is the chaerecteristics you are using?
    This message comes when it is  a variable and is assigned during CR creation.

  • After updating to firefox 8.0, can not send gifts or requests from farmville or cityville on facebook.

    after updating to firefox 8.0, can not send gifts or requests from farmville or cityville on facebook. (When I hit the send button I get an empty window titled "about:blank", which disappears and nothing gets sent. It works under internet explorer but not under firefox 8.0

    Old Toad wrote:
    I got that message with all of my libraries. Do see if the galleries are still on your iDisk mount your iDisk and go to the iDisk/Web/Sites folder and look for a folder titled "_gallery". Inside of it should be folders for each of your galleries. The folders are titled with 6 digit numbers which makes it difficult to know which folder is for which gallery.
    Thanks. "_gallery" is empty
    Have you tried re-syncing as Larry suggested?
    I'm sure it will work, but I'm perplexed as to how this could happen.
    Do you find that iPhoto now launches faster? Perhaps it's because my web galleries are gone?

  • After i update my ipad 2(wifi 3g/64g) to ios 5.0.1..everything works ok except 3g  can not connect to internet.. in the top of my ipad screen it show 3g sign..before update the 3g was working ok

    after i update my ipad 2(wifi+3g/64g) to ios 5.0.1..everything works ok except 3g  can not connect to internet.. in the top of my ipad screen it show 3g sign..before update the 3g was working ok

    i am at SAUDI ARABIA and the Service Provider is (STC) i found that the APN setting has to change from (jawalnet.com.sa ) to (afaqwireless.com).. NOW 3G OK

  • HT203167 what do i do when the purchased songs can not be converted, when i sync it says the (3) purchases can not be converted so i do not have them on my device and i payed for them?

    What do i do to get my purchased songs(3) to convert. When i sync my iphone4s it says there is three warnings/songs that can not be converted? I would like my music or money back>

    Welcome to the Apple Community.
    Are you sure that's what it said.

  • Can not open database "Master" requested by the login

    Hi everyone,
    I meet an issue when I set up bpc on my customer's production server. When the installing process arrives at "create sample database", there will be an error message "Error(A file activation error occured. The physical file name 'Can not open database "Master" requested by the login. The login failed. \Data\Apshell.mdf maybe incorrect. Diagnose and correct additional errors, and retry the operation." Then I check the database, the Apshell is not built. The sql server version is sql server 2008. Do you have some good suggestions about this issue? Thank you.

    Hi Robert,
    Please check the collation of your SQL Server.
    It must be SQL_Latin1_General_CP1_CI_AS (specified like requirement into installation guide).
    I think this is the issue in your case.
    Regards
    Sorin Radulescu

  • Error: ... can not be converted to a unique application ID.

    Full Error: Error     The application alias "<APPLICATION NAME>" can not be converted to a unique application ID. Contact your application administrator.
    <APPLICATION NAME> -> name of the application.
    Screenshot: Link
    Once the application is run from the Apex Development environment then the error does not occur.
    It may have started after moving to 4.1.1, but not sure.
    Does not seem to be browser specific. It has happened in chrome, IE, Firefox.
    Any ideas?

    When you are in Apex Builder you have already set your Workspace when you logged in. So the URL might be resolving to Alias in the Workspace where you logged in. By logical deduction ,the other application with the same Alias is in another Workspace.
    On the contrary, when you directly login to the application there is no Workspace selected and Apex tries to resolve references using the Alias alone, and that requires a Unique Alias.
    In any case, get rid of duplicate Alias, that is not a good thing.
    Regards,

  • Error "Value '' could not be converted."

    WPF - MVVM arch.  .Net ver 4.0, VS2010.
    I am trying to clear the selection in a comboBox get an error "Value '' could not be converted."
    The ComboBox's iItemSource is bound to a key-value pair list.  The SelectedValue is the Key and the DisplayMemberPath is bound to the Value.
    If the ItemSource is bound to an ordinary datatype, such as a string, and clear the selected value in ComboBox, this error doesnt occur.  But I needed it as a Key-Value pair since its a lookup. 
    Suspect that the error could be because the key-value pair has no corresponding null entry or could not take a null value.  Could this a bug in the framework.  How to resolve this.  Seen the blogs that says use Nullable
    value and do the conversion, but doesnt appear to be a good way to resolve this since an explicit conversion adapter have to be written.  Is there a better way to resolve this.

    I would have thought
    Bind SelectedValue to a nullable property.
    That's the key it's going to end up with.
    Your key might have to be a nullable type as well.
    Set that property to null.
    You might also have to do the synchronise thing
    IsSynchronizedWithCurrentItem="True"
    On the combo.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • " Can not interpret the data in file " error while uploading the data in DB

    Dear All ,
    After running the below report I am getting the " Can not interpret the data in file " error.
    Need to upload the data in DB through excel or .txt file.
    Kindly advise to resolve the issue.
    REPORT  ZTEST_4.
    data : it like ZPRINT_LOC occurs 0 with header line,
    FILETABLE type table of FILE_TABLE,
    wa_filetable like line of filetable,
    wa_filename type string,
    rc type i.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    CHANGING
    FILE_TABLE = filetable
    RC = rc.
    IF SY-SUBRC = 0.
    read table filetable into wa_filetable index 1.
    move wa_filetable-FILENAME to wa_filename.
    Else.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = wa_filename
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = it.
    IF SY-SUBRC = 0.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    insert ZPRINT_LOC from table it.
    if sy-subrc = 0.
    commit work.
    else.
    rollback work.
    endif.
    Regards
    Machindra Patade
    Edited by: Machindra Patade on Apr 9, 2010 1:34 PM

    Dear dedeepya reddy,
    Not able to upload the excel but have sucess to upload the .csv file to db through the below code. Thanks for your advise.
    REPORT  ZTEST_3.
             internal table declaration
    DATA: itab TYPE STANDARD TABLE OF ZPRINT_LOC,
          wa LIKE LINE OF itab,
          wa1 like line of itab.
                       variable  declaration
    DATA: v_excel_string(2000) TYPE c,
           v_file LIKE v_excel_string VALUE    'C:\Documents and Settings\devadm\Desktop\test.csv',  " name of the file
            delimiter TYPE c VALUE ' '.         " delimiter with default value space
         read the file from the application server
      OPEN DATASET v_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    write:/ 'error opening file'.
      ELSE.
        WHILE ( sy-subrc EQ 0 ).
          READ DATASET v_file INTO wa.
          IF NOT wa IS INITIAL.
            append wa TO itab.
          ENDIF.
          CLEAR wa.
        ENDWHILE.
      ENDIF.
    CLOSE DATASET v_file.
    EXEC SQL.
         TRUNCATE TABLE "ZPRINT_LOC"
    ENDEXEC.
    *------display the data from the internal table
    LOOP AT itab into wa1.
    WRITE:/ wa1-mandt,wa1-zloc_code,wa1-zloc_desc,wa1-zloc,wa1-zstate.
    ENDLOOP.
    insert ZPRINT_LOC from table itab.

  • How can I use iCloud-keychain if i can not find my country in the country code list?

    How can I use iCloud-keychain if i can not find my country in the country code list?

    Welcome to the Apple Community.
    If your country code does not appear in the list…
    Go to System Preferences > iCloud > Keychain and enter your Apple ID password (Settings > iCloud > Keychain, from a mobile device)
    Select the ‘Create Different Code’ option. (Mobile devices only)
    Select the advanced option and choose whether to create a random code or no code, selecting the later allows syncing across devices but not with Apple’s servers.

  • Can not update photoshop keep getting this error Adobe Bridge CS5 4.0.5 Update   There was an error downloading this update. Please quit and try again later.     Adobe Extension Manager CS5 5.0 Update   There was an error downloading this update. Please q

    can not update photoshop keep getting this error
    Adobe Bridge CS5 4.0.5 Update   There was an error downloading this update. Please quit and try again later.   
    Adobe Extension Manager CS5 5.0 Update   There was an error downloading this update. Please quit and try again later.   
    Photoshop 12.0.4 update for Photoshop CS5   There was an error downloading this update. Please quit and try again later.   
    Photoshop Camera Raw 6.7 Update   There was an error downloading this update. Please quit and try again later.
    contacted customer service they could not help me I have previously had Photoshop on two other computers I deactivated it from one computer to put on a new one put. Can not do the updates I need them for camera Raw.
    Please Help

    What operating system are you using?
    You can try searching for, downloading the updates yourself and running the installers:
    Product updates

Maybe you are looking for

  • New column header on Interactive Report

    We have an interactive report on a view and when we add a new column to the view, we would need the report to add the header automatically too (without previous deployment). Can this be done in simple manner? Thanks, Ricardo

  • Adf faces jar  for jdeveloper 10g

    Hi, i m using jdeveloper 10, i want to use adf (af componant) in my jsf page, so i need adf jar, but i m not able to download them from "How To Use ADF Faces With JDeveloper 10g" kindly help me how i can download these jar, so that i can use them in

  • I've forgotten my passcode for my iphone!

    I changed my passcode on my iphone 4S and the phone is now disabled. I have tried connecting the iphone to itunes on the computer but when I do a message comes up saying I need to access itunes throught my iphone but I cannot as I don't know the pass

  • "Certificate and Attachment uploading in SRM ROS at initial stage

    Hi.... Can any one suggest , 1. Exactly which service need to be publisted  in SICF for the link of Supplier Self Registration , which we place at home page of company and intrested Supplier come &enter important information about him and assign hims

  • Won't charge after ipod battery replacement

    Hi, I hope you can help me. Battery replacements for iPod generation 1 (5 GB) and iPod Photo generation 4(?) (60 GB) did not work: I bought replacement batteries from OWC (MacSales.com). Below is the invoice data from OWC for theses batteries. Since