ORA-01821: date format not recognized Error in PL/SQL report-4.0

Hi,
I am using Apex 4.0 and i have a Classic report(function returning query) which selects a date column.
The query runs at the backend and gives the output.
But when i run the report on the page, i get the error
report error:
ORA-20001: Error fetching column value: ORA-01821: date format not recognizedThe values for the date column are like this 14-MAR-13,01-FEB-13 etc... Everything seems to be right.
But I have no idea why this error occurs.
Thanks
Divya

Aren't these errors annoying! But there's a data / format mismatch for sure. What I need to see -- and what will tell you what is wrong -- is
1) exactly what the data is and
2) exactly what the format string is that is being used to convert it.
The values for the date column are like this 14-MAR-13,01-FEB-13 etc... Question: Is this the source data or the target data ( what it's supposed to look like after being converted)?
Let's start there:
What is the source? Is it a DB column? Is it type date or VARCHAR2 or what?
If VARCHAR2, then give us an example of the data that is failing.
What is the format -- I assume there is one -- being used to convert the data?
Are you doing a TO_CHAR or a TO_DATE?
Give us lots of detail, please. Then it should be easy to solve.
Regards,
Howard

Similar Messages

  • Date format not recognized -- urgent help needed

    Hi,
    I'm having a problem when start sqlplus in dos command window. If I start it from C:\oracle\ora81\bin, it won't started and error message showing like 'Date format not recognized' and then come back to DOS.
    I do have OWB installed which also has SQLPLUS installed so that there is no problem if I start it from C:\ORACLE\owb92\bin.
    For some reason, the path is setting as C:\oracle\ora81\bin before C:\ORACLE\owb92\bin so the default always goes to 81 folder.
    If restart the DB instance, and this problem is gone. But it comes back after some application running (our own application and Oracle provided OMBPlus ). We double check our own application, and there is no where to "alter session ...".
    Any help will be very appreciatged,
    Thanks,
    Daming

    I'm having a problem when start sqlplus in dos command window. If I start it from C:\oracle\ora81\bin, it won't started and error message showing like 'Date format not recognized' and then come back to DOS.
    Do you have a file called 'login.sql' in the folder 'C:\oracle\ora81\bin'? If there is one, is there an 'alter session' command in this file?

  • Why do I keep getting "format not recognized" error?

    Hello,
    I was trying to play any of the video podcasts from Nick Jr (e.g iCarly, Drake and Josh) for my kids and I kept getting a "format not recognized" error on my APple TV and when trying to play on my PC with iTunes, the video doesn;t play at all. This seems strange to me as these podcasts are rated in the Top 10 under "kids and family" genre so they must be working for others. I was able to play other podcasts in this genre such as the Sesame Street podcast. Any ideas why these Nick Jr. ones aren't working for me?
    Thanks!

    I have been having the same problem - with podcasts AND with Movies and TV Shows bought through iTunes. I was hoping the recent 3.0 upgrade would fix it, but no such luck. While this was an occasional problem with iTunes 8, it seems to have turned chronic with iTunes 9.
    The annoying "solution" that seems to work is to unplug and replug the Apple TV and quit and restart iTunes. Even then, while watching TV Shows or Movies continuously it seems to work, but after any interruption, either due to shutting off the Apple TV or letting it go to screen saver for an hour or so between shows or movies, iTunes loses it from the device list, and the "format not recognized" message returns.

  • "date format not recognised" in DBMS_SESSION, on page over db_link

    Hi,
    I have an Apex 4.0 page which has a region that gets data constituted from a connection across a database link.
    The host database is 11.1.0.6 and the remote database is 9.0.1. (Both Standard Edition)
    I am using EPG.
    Intermittently, I receive the following error (having turned debugging on):
    Wed, 25 Aug 2010 10:21:53 GMT
    ORA-20867: ORA-01821: date format not recognized
    ORA-02063: preceding line from CLIFF
    ORA-06512: at "SYS.DBMS_SESSION", line 157
    ORA-06512: at "APEX_040000.WWV_FLOW_LANG", line 387
    ORA-06512: at "APEX_040000.WWV_FLOW", line 9284
    ORA-06512: at "APEX_040000.F", line 267
    ORA-06512: at "APEX_040000.F", line 294
    ORA-06512: at line 30
    I'm somewhat confused as to what is causing the generation of this error.
    After receiving this error, anything I else that I do that involves building 'pages' works perfectly fine. I can login/out, no problems.
    However, if I try and RUN any page within my application thereafter (all of these access local DB information apart the 1 that generates the error), I continue to receive exactly the same error - no matter which page I am trying to access.
    Help?
    - Tony.

    Hi Patrick,
    No. I haven't yet applied the patchset. May do that this afternoon now.
    I don't believe I've manually set any date formats anywhere. Just entered the Builder with default options (apart from choosing a theme) and away I went!!
    What surprises me is that the application has no problems viewing all the data. The functionality all seems fine. I had this working on a previous setup for months,. without any problems, using version 3.2. (This wasn't migrated though, this was a rebuild from scratch.)
    From further "tests", the error seems to occur when I edit the page that involves the remote data.
    Normally, a user would land on the page from having used a hyperlink column on a previous page's classic report region.
    The point at which it all starts to go wrong is if I connect to the page as normal, but then EDIT the page, and then try and re-run it.
    The problem with the date format then re-occurs repetitively, no matter which page I try and view. Sometimes pages will load some components, but then generate odd errors with others. e.g. I have a small series of 3 dial charts, all with slightly varying SQL series (same SQL, slightly different where clause). Now I am seeing that 1 may load and 2 may give odd flash errors...
    Right now, I just tried to Export my application - and I still got given the date format error!! Sub-sequent retries allowed the operation to complete successfully.
    The only way I seem to be able to eradicate the recurring errors is to kill all the currently connected ANONYMOUS users in the DB, and then relog to the application.
    - Tony.

  • I have iphoto 6 and my pictures are no longer showing.  I have tried importing them but it just give me an error msg. (file format not recognized) I have tried rebuilding the iphoto library but that doesn't work either. Any suggestions?

    I have iphoto 6 and my pictures are no longer showing.  I have tried importing them but it just give me an error msg. (file format not recognized) I have tried rebuilding the iphoto library but that doesn't work either. Any suggestions?

    How did you rebuild?
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 6* library:
    Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • XML SELECT error ORA-01830: date format picture ends before converting enti

    Apologies, If I have to open a new thread. I have a similar problem and would be grateful if you can help:
    Created a view based on an xsd. View works fine. However when selecting data from the view, the xml output is scrambled. On search found there is a pretty print function which can be added when creating the view: .extract('/*') as:
    ).extract('/*')
    as RBid
    from Balit_Submissions bs
    Again the view gets created successfully. But when doing the same select from it get the error:
    ERROR:
    ORA-01830: date format picture ends before converting entire input string
    I have narrowed it down to the .xsd definition of the tag: <xsd:element name="CreationDateTime" type="ecc:MessageDateTimeType">
    In the view, CreationDateTime is selected as follows:
    ,XMLelement("CreationDateTime",xmlattributes(to_char(bs.creation_datetime,'yyyy-mm-dd"T"hh:mi:ss"Z"') as "v"))
    where the column bs.creation_datetime is Oracle data type DATE.
    The MessageDateTimeType is defined in Oracle as a timestamp.
    Any hints to overcome this.
    Using: Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Production
    I will paste the full .xsd and view if required.
    Thanks
    James Sathiaraj

    Indeed a small test case would be great. Not sure if I could reproduce - have touched 10.1.0.5 in 4, 5 years...

  • SQL Loader Error : ORA-01830: date format picture ends before converting en

    I am inserting following data
    BES101706     M.E. Deals     7     10/17/2006
    through control file :
    LOAD DATA
    APPEND
    INTO TABLE abc_temp
    FIELDS TERMINATED BY ' '
    TRAILING NULLCOLS
    (BATCH_NAME               ,
    SUPPLIER_NAME          ,
    SUPPLIER_NBR          ,
    INV_DATE "to_date(substr(:INV_DATE,1,10),'MM/DD/YYYY' )"
    But I am getting this error:
    ORA-01830: date format picture ends before converting entire input string
    inv_data is a date field in the database.

    I think it has to do with data format.Exactly.
    You have
    BES101706*M.E.*Deals*7*10/17/2006
    I replace each space with an asterisk. You have 5 columns according to your spec (terminated by '<space>')
    SQL Loader doesn't know that M.E. Deals is the supplier name.
    It's trying to convert 7 as the date.

  • Intermittent : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.

    I have developed a batch harness whereby all scheduled tasks (W2012) invoke a common powershell script that acts as a wrapper to all our housekeeping jobs.
    The first step in the wrapper is to create a Transcript file using following code
    if ($Host.name -ne "Windows PowerShell ISE Host") # Transcript does not work within ISE
    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    $path = "c:\corp\$timestamp" + "_$pid.txt"
    Start-Transcript -path $path -append
    As expected the folder contains files with timestamp & pid in name
    08/08/2013  11:00 AM            14,388 2013-08-08-11-00-01.158_1620.txt
    08/08/2013  11:00 AM            12,506 2013-08-08-11-00-01.485_936.txt
    08/08/2013  11:00 AM            12,994 2013-08-08-11-00-01.735_9328.txt
    08/08/2013  11:00 AM            12,024 2013-08-08-11-00-01.766_8624.txt
    08/08/2013  11:00 AM            13,902 2013-08-08-11-00-01.860_1756.txt
    08/08/2013  11:01 AM            15,142 2013-08-08-11-01-31.392_10120.txt
    08/08/2013  05:00 AM            14,982 _1692.txt
    However note the last file, it has a zero length date time value in the name
    The error recorded by PowerShell is
    get-date : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At C:\Corp\Powershell\DMPRun-ScheduledTask.ps1:171 char:18
    +    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    +                  ~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-date:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    IE get-date has failed and returned a zero length field as the timestamp
    Can anyone think of a good reason why get-date would fail intermittently?
    Do I have to code defensively for base Powershell functions?

    I implemented David's suggestion and now I intermittently get
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_08_55_02.ps1:15 char:1
    + import-module Microsoft.Powershell.Utility
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand
    I added a trap chain (My Powershell skills do not yet include recursive trap coding, any suggestions welcome)
    trap {
        trap {
            "Trap1"
            "Exception: " + $_
            "Error: " + $Error[0]
            "Message: " + $_.Exception.Message
            "InnerException: " + $_.Exception.InnerException
            "StackTrace: " + $_.Exception.StackTrace
            "FailedItem: " + $_.Exception.ItemName
            import-module Microsoft.Powershell.Management
            import-module Microsoft.Powershell.Security
            import-module Microsoft.Powershell.Utility
        "Trap2"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        import-module Microsoft.Powershell.Management
        import-module Microsoft.Powershell.Security
        import-module Microsoft.Powershell.Utility
    import-module Microsoft.Powershell.Management
    import-module Microsoft.Powershell.Security
    import-module Microsoft.Powershell.Utility
    trap {
        "Trap3"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        exit 1
    get-date
    Now I intermittently get ..
    Trap2
    Exception: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Error: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Message: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    InnerException:
    StackTrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew, MutexSecurity mutexSecurity)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew)
       at System.Management.Automation.AnalysisCache.CacheExportedCommands(PSModuleInfo module, Boolean force, ExecutionContext context)
       at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(PSModuleInfo parentModule, Boolean found, IEnumerable`1 modulePath, String name, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags,
    PSModuleInfo& module)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions importModuleOptions, String name)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord()
       at System.Management.Automation.CommandProcessor.ProcessRecord()
    FailedItem:
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_09_19_52.ps1:26 char:1
    + import-module Microsoft.Powershell.Security
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand

  • Java.sql.SQLException:ORA-01801:date format is too long for internal buffer

    Hi,
    I am getting the following exception when i trying to insert data in to a table through a stored procedure.
    oracle.apps.fnd.framework.OAException: java.sql.SQLException: ORA-01801: date format is too long for internal buffer
    when execute this stored procedure from ana anonymous block , it gets executed successfully, but i use a OracleCallableStatement to execute the procedure i am getting this error.
    Please let me know how to resolve this error.
    Is this error something to do with the Database Configuration ?
    Thanks & Regards
    Meenal

    I don't know if this will help, but we were getting this error in several of the standard OA framework pages and after much pain and aggravation it was determined that visiting the Sourcing Home Page was changing the timezone. For most pages this just changed the timezone that dates were displayed in, but some had this ORA-01801 error and some others had an ORA-01830 error (date format picture ends before converting entire input string). Unfortunately, if you are not using Sourcing at your site, this probably won't help, but if you are, have a look at patch # 4519817.
    Note that to get the same error, try the following query (I got this error in 9.2.0.5 and 10.1.0.3):
    select to_date('10-Mar-2006', 'DD-Mon-YYYY________________________________________________HH24:MI:SS') from dual;
    It appears that you can't have a date format that is longer than 68 characters.

  • ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtFetch

    Hi all,
    We are trying to create a BIP Data Model based on an Answer, but after selecting report, it hangs when I try to Apply to create a query based on Oracle BI. When I try to open the query in aswers, going to results tab I'm getting this error (OBIEE 11.1.1.6.2):
    ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtFetch
    I suppose that BIP data model is not able to create it because of this error. But this answer is working fine inside dashboards, etc. It only does not work when editing it. Query is doing something like this: "USING "- Collection Attributes"."Due Date" >= TIMESTAMPADD(SQL_TSI_DAY, -30, CAST ('01/04/2009' AS DATE))"
    Any ideas?

    Solved watching date format in generated SQL and changing default date format in presentation variables default values inside criteria according to SQL format.

  • APEX_ITEM.DATE_POPUP  and ORA-01830: date format picture ends before conver

    Hi,
    I am using apex_item.date_popup for a custom tabular form.
    When I load the form with the default sysdate it works ok. However when the user submits an invalid date I get: ORA-01830: date format picture ends before converting entire input string.
    Ex: apex_item.date_popup (2, NULL, ac.my_date, :f_date_format, LENGTH (:f_date_format), LENGTH (:f_date_format),NULL)
    Where f_date_format is 'DD-MON-YYYY'...
    If I enter 'abc' in this field and click submit, my validations find that it is an invalid date, so I reload the page with ac.my_date is the value that the user entered (ex: 'abc'). This will cause the error...
    I understand why the error occurs, but is it correct that it does happen? Any ways around this?
    Thank you.

    Hi Scott,
    I found the work around. I'll try to make this code more readable later on.
    1: Create a HTML region with the following code:
    Note: F02 is the "Column" for my date field:
    <script type="text/javascript">
    function genCalF02(pRowNum,pYyyy,pMm,pSecurityGroupId)
    elemArrLen = 0;
    if (document.forms[0].f02.length) {
    elemArrLen = document.forms[0].f02.length;
    elemArrLen = '&F_DATE_FORMAT.'.length;
    pMm = '' + pMm;
    if (pMm.length == 1)
    pMm = '0' + pMm;
    w = open("wwv_flow_utilities.show_as_popup_calendar" +
    "?p_element_index=" + escape('f02' + '['.substr(0,elemArrLen) + pRowNum + ']'.substr(0,elemArrLen)) +
    "&p_form_index=" + escape('0') +
    "&p_date_format=" + escape('&F_DATE_FORMAT.') +
    "&p_application_format=" + escape('Y') +
    "&p_bgcolor=" + escape('#666666') +
    "&p_dd=" + escape('') +
    "&p_hh=" + escape('') +
    "&p_mi=" + escape('') +
    "&p_pm=" + escape('') +
    "&p_yyyy=" + escape(pYyyy) +
    "&p_lang=" + escape('') +
    "&p_application_id=" + escape('&APP_ID.') +
    "&p_security_group_id=" + escape(pSecurityGroupId) +
    "&p_mm=" + escape(pMm),
    "winLov",
    "Scrollbars=no,resizable=no,width=258,height=210");
    // TODO "?p_element_index=" + escape('f02' + '['.substr(0,elemArrLen) + pRowNum.substr(0,elemArrLen) + ']'.substr(0,elemArrLen)) +
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    In you're query (or how ever else you are calling apex_item.date_popup)... use something like this instead:
    WHEN is_valid_date(my_date) = 'Y' THEN
    apex_item.text (2,
    my_date,
    LENGTH (:f_date_format),
    LENGTH (:f_date_format),
    NULL,
    NULL,
    NULL
    ) || '<a href="javascript:genCalF02(' || (ROWNUM - 1) || ',' || TO_CHAR (TO_DATE (my_date, :f_date_format), 'YYYY') || ','
    || TO_CHAR (TO_DATE (my_date, :f_date_format), 'MM') || ',' || apex_custom_auth.get_security_group_id
    || ')"><img src="/i/asfdcldr.gif" align="middle" alt="Calendar"/></a>'
    ELSE
    apex_item.text (2,
    my_date,
    LENGTH (:f_date_format),
    LENGTH (:f_date_format),
    NULL,
    NULL,
    NULL
    ) || '<a href="javascript:genCalF02(' || (ROWNUM - 1) || ',' || TO_CHAR (SYSDATE, 'YYYY') || ','
    || TO_CHAR (SYSDATE, 'MM') || ',' || apex_custom_auth.get_security_group_id
    || ')"><img src="/i/asfdcldr.gif" align="middle" alt="Calendar"/></a>'
    END as xxx
    This creates the text box with a date popup window beside it.
    Again, this is not pretty code which can probably be done in a function etc.
    Hope this helps anyone else who has the same issue.
    Martin

  • PIM.fromSerialFormat "Format not recognized"

    Hi, I'm trying to use PIM.fromSerialFormat in order to read back a contact that was written out using PIM.toSerialFormat. The problem is that fromSerialFormat has a PIMException with the message "Format not recognized".
    The original contact details from the sample.vcf file are as follows:
    BEGIN:VCARD
    VERSION:2.1
    N:Mahmoud;Qusay;H.
    FN:Qusay H. Mahmoud
    ORG:JavaCourses
    TITLE:Developer
    NOTE:Helping You With Java!
    TEL;WORK;VOICE:(416) 999-1111 ext 1000
    TEL;WORK;FAX:(416) 333-9999
    ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;1500 Java Ave.=0D=0ASuite 101;Toronto;ON;M9V1L1;Canada
    LABEL;WORK;ENCODING=QUOTED-PRINTABLE:1500 Java Ave.=0D=0ASuite 101=0D=0AToronto, ON M9V1L1=0D=0ACanada
    URL;WORK:http://www.javacourses.com
    EMAIL;PREF;INTERNET:[email protected]
    REV:20043335T124220Z
    END:VCARD
    When I call fromSerialFormat the buffer contains:
    BEGIN:VCARD
    VERSION:2.1
    ADR;WORK:;;1500 Java Ave.
    Suite 101;Toronto;ON;M9V1L1;Canada
    EMAIL;PREF:[email protected]
    LABEL;WORK:1500 Java Ave.
    Suite 101
    Toronto, ON M9V1L1
    Canada
    FN:Qusay H. Mahmoud
    N:Mahmoud;Qusay;H.;;
    NOTE:Helping You With Java!
    ORG:JavaCourses
    REV:2006-10-05
    TEL;WORK:(416) 999-1111 ext 1000
    TEL;FAX;WORK:(416) 333-9999
    TITLE:Developer
    UID:sample.vcf
    URL:http://www.javacourses.com
    END:VCARD
    This is not recognized! The test code is as follows (removed error checking for clarity).
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    // Get the PIM data.
    ContactList contactList = contactList = (ContactList) mPim.openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE,"Contacts");
    // Get an Enumeration of the contacts and loop until they are all backed up.
    Enumeration enumContacts = null;
    enumContacts = contactList.items();
    while(enumContacts.hasMoreElements()) {
    // Get the contact
    Contact contact = (Contact)enumContacts.nextElement();
    String[] data_formats = PIM.getInstance().supportedSerialFormats(PIM.CONTACT_LIST);
    // Use 2.1 format for time being.
    mPim.getInstance().toSerialFormat(contact, baos, "UTF-8", data_formats[1]);
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
    // This is where we get the "Format not recognized" message.
    PIMItem[] items = PIM.getInstance().fromSerialFormat(bais, "UTF-8");
    This is as basic as it gets and is driving me nuts. Why am I getting this error?
    Any help is very much appreciated.

    have u tried using data_formats[0] instead of data_formats[1] in toSerialFormat method? and if that doesn't work try using "VCARD/2.1" directly as the format

  • Libc.so: file not recognized: File format not recognized

    Hi,
    While running the "cd $ORACLE_HOME/procbuilder60/lib; make -f ins_procbuilder.mk install"
    i am getting the error.
    [appldev@datadev lib]$ cd $ORACLE_HOME/procbuilder60/lib; make -f ins_procbuilder.mk install
    rm -f de60desm /appldev/devora/iAS/6iserver/bin/de60desm
    - Linking de60desm executable...
    gcc -o de60desm -L/appldev/devora/iAS/6iserver/lib/ -L/appldev/devora/iAS/6iserver/lib/ -L/appldev/devora/iAS/6iserver/lib//stubs/ \
    /appldev/devora/iAS/6iserver/procbuilder60/lib/detk2.o /appldev/devora/iAS/6iserver/procbuilder60/lib/demsr.o /appldev/devora/iAS/6iserver/procbuilder60/lib/demcl.o \
    /appldev/devora/iAS/6iserver/procbuilder60/lib/ui10.o /appldev/devora/iAS/6iserver/procbuilder60/lib/uiicxd.o \
    /appldev/devora/iAS/6iserver/rdbms/lib/defopt.o -lde60 \
    -lca60 -lucol60 \
    -lnvu60 -lnvc60 -lnvs60 -luicc60 -lmmiw60 -lmmov60 -lmma60 -lmmos60 -lmmoi60 -lmmia60 -lmmft60 -lmmcm60 -luihx60 -luihx60 -luc60 -luipr60 -luimotif60 -lot60 -lrem60 -lree60 -lrec60 -luiimg60 -luimotif60 -luipr60 -luiimg60 -luc60 -lrem60 -luimotif60 -luia60 -ltknqap60 -luipr60 -luimotif60 -lutt60 -lix60 -lixd60 -lrod60 -lror60 -lros60 -lrod60 -lror60 -lros60 -lrod60 \
    -luat60 -lutc60 -lutl60 -lutsl60 -lplsf -lplsb -lextp /appldev/devora/iAS/6iserver/lib/libpsd.a -lplsf -lplsb -lextp \
    -lslax /appldev/devora/iAS/6iserver/lib/nautab.o /appldev/devora/iAS/6iserver/lib/naeet.o /appldev/devora/iAS/6iserver/lib/naect.o /appldev/devora/iAS/6iserver/lib/naedhs.o `cat /appldev/devora/iAS/6iserver/lib/naldflgs` -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 `cat /appldev/devora/iAS/6iserver/lib/sysliblist` -ldl -lpthread -lm -L/usr/lib -lm -L/usr/X11R6/lib -lXm -L/usr/X11R6/lib/ -L/usr/X11R6/lib/ -lXt -lX11 -lm -lix60 -lixd60 -lX11 -lnlsrtl3 -lXp -lXext
    /appldev/devora/iAS/6iserver/lib//stubs//libc.so: file not recognized: File format not recognized
    collect2: ld returned 1 exit status
    make: *** [de60desm] Error 1
    My OS version is RHEL 5.
    Please suggest.
    Thanks in advance.

    But We are facing another issue while running "cd $ORACLE_HOME/reports60/lib; make -f ins_reports60w.mk install"
    [appldev@datadev lib]$ export LD_LIBRARY_PATH=/appldev/devora/8.0.6/network/jre11/lib/i686/native_threads/
    [appldev@datadev lib]$ cd $ORACLE_HOME/reports60/lib; make -f ins_reports60w.mk install
    Last few lines Error:
    ld -shared -o rwows60.so -z text -G -export-dynamic -L/appldev/devora/8.0.6/lib/ -L/appldev/devora/8.0.6/network/jre11/lib/linux/native_threads -L/appldev/devora/8.0.6/network/jre11/lib/i686/native_threads /appldev/devora/8.0.6/reports60/lib/rxmawt.o /appldev/devora/8.0.6/reports60/lib/rwsows3.o /appldev/devora/8.0.6/reports60/lib/rwswif.o /appldev/devora/8.0.6/reports60/lib/rwswcj.o /appldev/devora/8.0.6/reports60/lib/rwswcs.o /appldev/devora/8.0.6/reports60/lib/rwswm.o /appldev/devora/8.0.6/reports60/lib/rwsws.o /appldev/devora/8.0.6/reports60/lib/rwswcm.o /appldev/devora/8.0.6/reports60/lib/rwswk.o /appldev/devora/8.0.6/reports60/lib/rwswu.o /appldev/devora/8.0.6/reports60/lib/rwswur.o /appldev/devora/8.0.6/reports60/lib/rwswx.o -lzrc60 -lca60 /appldev/devora/8.0.6/lib/nautab.o /appldev/devora/8.0.6/lib/naeet.o /appldev/devora/8.0.6/lib/naect.o /appldev/devora/8.0.6/lib/naedhs.o -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -ldl -lm -lpthread -ldl -lpthread -lm -L/usr/lib -lm -lc
    /usr/lib/libc.so: file not recognized: File format not recognized
    make: *** [rwows60.so] Error 1
    Kindly suggest..What is the document/step you are following?
    Thanks,
    Hussein

  • "/usr/bin/strip: File format not recognized" while packing

    Hi.
    I would build a package for wingide but after the build process came a strange error:
    $ makepkg
    ==> Erstelle Paket: wingide 3.0.4-1 (Do 13. Mär 17:10:33 CET 2008)
    ==> Prüfe Laufzeit-Abhängigkeiten...
    ==> Prüfe Buildtime-Abhängigkeiten...
    ==> Empfange Quellen...
    -> wingide-3.0.4-1-i386-linux.tar.gz im Build-Verzeichnis gefunden
    ==> Überprüfe Gültigkeit der Quell-Dateien mit md5sums...
    wingide-3.0.4-1-i386-linux.tar.gz ... Durchgelaufen
    ==> Entpacke Quellen...
    -> bsdtar -x -f wingide-3.0.4-1-i386-linux.tar.gz
    ==> Entferne existierendes pkg/ Verzeichnis ...
    ==> Betrete fakeroot-Umgebung ...
    ==> Beginne build()...
    ==> Säubere Installation...
    -> Entferne info/doc-Dateien...
    -> Komprimiere Man-Pages...
    -> Entferne Debugging-Symbole aus Binär-Dateien und Bibliotheken...
    /usr/bin/strip: opt/wingide/bin/2.4/src/debug/tserver/64bit/tdbgtracer24.so: File format not recognized
    the PKGBUILD file:
    # Contributor: Andreas Schönfelder <[email protected]>
    pkgname=wingide
    pkgver=3.0.4
    pkgrel=1
    pkgdesc="The intelligent development environment for python programmers"
    url="http://www.wingware.com"
    license=
    arch=('i686')
    source=(http://wingware.com/pub/$pkgname/$pkgver/$pkgname-$pkgver-$pkgrel-i386-linux.tar.gz)
    md5sums=('0fd31ac2e7851d1b777f8c100f480e40')
    build()
    cd $startdir/src/$pkgname-$pkgver-$pkgrel-i386-linux
    mkdir -p $startdir/pkg/{opt/wingide,usr/bin}
    tar -xC $startdir/pkg/opt/wingide -f binary-package-$pkgver-$pkgrel.tar
    sed -e "s/^DIR=.*$/DIR=\/opt\/wingide/" -i $startdir/pkg/opt/wingide/wing
    mv $startdir/pkg/opt/wingide/wing $startdir/pkg/usr/bin
    # vim:syntax=sh
    Greets, Andreas
    Last edited by echasslau (2008-03-13 16:14:05)

    Adding options=(!strip) to the PKGBUILD will skip that step, but make other binaries significantly larger. If you just get the output but that package is built successfully, I would ignore it.

  • Is there a way to restore photos from Drop box to my desktop iPhoto in a large batch instead of one at a time? I tried and a zip file was downloaded but won't open. Says file format not recognized.

    Is there a way to restore photos from Drop box to my desktop iPhoto in a large batch instead of one at a time? I tried and a zip file was downloaded but won't open. Says file format not recognized. I see how to do it one at a time with the "download" button in Dropbox but that's so cumbersome for lots of photos.

    Have you tried these avenues?
    Contact us - Dropbox
    Dropbox Help Center
    Dropbox Forums
    Submit a help request - Dropbox
    OT

Maybe you are looking for

  • Deskjet 3050 wireless connection trauma

    Hi, my Deskjet 3050 has stopped working over the wireless network and I'm stumped. It was working fine, but has now stopped. My laptop is connected to the home router (BT) and the printer is also connected to the same router (according to the router

  • Why no feature to organize my many mail accounts in the sidebar?

    I have many email accounts in my sidebar of Thunderbird. They are listed from top to bottom according to when I added them on the account settings. But, once they are added, there is no way to organize them from top to bottom. The only way is to dele

  • Table name for Bill of Exchange no

    Hi, We are using Payment Wizard for generating Bill of Exchange and sent customer for acceptence. We would like to create Query base report for printing Bill of Exchange sent for acceptence using payment wizard name. Can any one provide table name of

  • Firmware Zen v plus 2

    Gi've me please American firmwire v.. New one doesn't suit me. Thank you.

  • Contact sheet templates

    Just making my first contact sheet with lightroom and I have no preloaded templates like all the tutorials show. If someone could tell me where to find them that would be great.