Query Parameter Data Type error betwee IE6 and IE7

Hello all.
This is a strange one. Using MII v12. When setting parameters for a SQL query from Javascript, the query executes properly on IE7 but generates errors on IE6. The errors are JDBC errors having to do with "Conversion failed when converting datetime from character string." and "Error converting data type varchar to numeric." I don't get any browser errors, only Java errors and NetWeaver log entries.
What is the source of this data typing error?

Hi, Sparks.
Actually, IE was always an anomaly when it came to proper typing of objects in Javascript, so it let you get away with things that really shouldn't work.
In general, you should use the Number Javascript type for number properties (e.g. setRowCount(), setXAxisMinRange(), etc) and strings for just about everything else.  If I recall, Javascript will handle most of the type conversions to a String property, but not necessarily to a Number property.
You can use the parseInt() and parseFloat() methods to convert from strings to numbers in Javascript.
In general, it's a good practice to be "type aware" in your Javascript code anyway, and this will ensure that it runs in other browsers and future browsers.
Rick

Similar Messages

  • "Schema validation found non-data type errors" error when passing a string value to date field in infopath

    Hi,
    I have an infopath web brower enabled form. In the form i have a date field.
    I am passing the data from the database to that field using the C# code.
    But, as the field from database is coming as string, i am getting an error, and i am not able to assign the value.
    I get the date value from database as "3/25/2011 12:00:00 AM"
    I used the below code:
    [CODE]
    if (objInfopathFormcData.myRecievedDate != null)
      myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager).SetValue(objInfopathFormcData.myRecievedDate);
    [/CODE]
    I am getting the error as "Schema validation found non-data type errors".
    How to set the value for a date field in Infopath.
    Thank you

    HI,
    I fixed it:
    Below code is used to fix:
    [CODE]
    XPathNavigator xfield = null;
    DateTime dtmyRecievedDate;
    dtmyRecievedDate = Convert.ToDateTime(objInfopathFormcData.myRecievedDate);
    if (objFormcData.FcCompletionDate != null)
    xfield = myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager);
    DeleteNil(xfield);
    xfield.SetValue(dtmyRecievedDate.GetDateTimeFormats().GetValue(5).ToString());
    // method to delete xsi:nil
    private void DeleteNil(XPathNavigator nav1)
    if (nav1.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance"))
       nav1.DeleteSelf();
    [/CODE]
    Thank you

  • How could Ecatt support a FM which has export parameter data type as any

    Hi,
    I have created a FM which has export parameter data type as 'Type ref to data'.
    The actual paremeter value for this export parameter is a dynamically generated internal table, which does not have a abap dictionary data type.
    Could I use the 'FUN' ecatt command to test this FM?  How could I get this reference export parameter?
    Thanks a lot in advance!

    Hi,
    Wouldn't it be enough if you define parameter in test data container as reference to table type with structure of type c(1000)  (or more/less characters depending on how much data you need to pass)?
    I'm not 100% sure if filling this table with data will work (this is reference after all) but if this is an issue than create 2 parameters: 1 of table type and second of reference type. Then inside your script before FUN use ABAP...ENDABAP to assign your table parameter to reference parameter and use second one as input for FUN command.
    I think that either first or second solution should work.
    Best regards
    Marcin Cholewczuk

  • The return of the "Unexpected Data Type" error

    I've searched the forum and only found discussions of this from over a year ago, so either I'm a loner or this is rearing its ugly head again.
    I've got a project that I've been working on between two machines, both running AE 11.0.2.11 with the same plug-ins. One is a macbook pro, one is a macpro. Both are running 10.6.8 (I believe that's snow leopard). I've been saving the project files and assets to the dropbox folder on my machines so that everything is always in sync between them. ***It's been working flawlessly for months.*** I haven't updated anything recently, other than installing Adobe Acrobat on the desktop machine a few days ago.
    This morning on my desktop machine, I couldn't get the project to open without getting the "unexpected data type" error. Holding down shift did nothing. I instinctively started a new project and imported the .aep I was trying to open. No errors! Then I tried to change work spaces and the error came up again. I hit caps lock and tried again. No go. At one point the workspace drop-down had bullets next to *two* of the workspaces, as if they were both active simultaneously.
    My workaround for the moment was to go to my dropbox on the website and revert to a previously saved version of the same project (thank *YOU* dropbox) from a few days ago. That opened fine, though it's missing a few hours' work.
    My fear is that this will recur and I will have to keep going back in time to keep working (two steps forward, one step back) and I've got a deadline to meet. I will try to stay away from custom workspaces, as one poster to this forum says they are generating that error in CS6 (no helpful replies to that thread).
    Anyone else experiencing this in 2013? Any ideas? All help is much appreciated.
    AE CS6 11.0.2.11
    Mac Pro OS v 10.6.8
    Processor:  2x 2.66ghz dual core intel xeon
    12Gb 667mhz DDR2 RAM

    I just started getting the same error today. Never would've imagined workspaces would have ANYTHING to do with this. But I just went to workspaces and clicked 'reset workspace' for whatever I was on, reloaded the project and no error. WTF Adobe??

  • Error in Primavera Analytics 3.1 (staretl issuing long data type error)

    Hi,
    While running ETL for Primavera Analytics 3.1 I am facing long data type error.
    Detailed session log can be found on below URL.
    http://pastebin.com/Ez0VihGN
    I have following environment.
    Primavera Analytics on Win2k8 64bit with 11g R2 DB.
    Primavera EPPM DB on Sql Server
    Connectivity through Oracle Gateway. (tested)
    Please help.
    Naeem Akhtar
    Edited by: Naeem Akhtar Khan on Apr 9, 2013 3:58 AM

    Based on your post there is an error in you initdg4msl.ora file............ make sure you the database connection is correct and you add the two statement to the file
    for example
    Should be: HS_FDS_CONNECT_INFO=YOURSQLSERVER//YOUR DATABASE
    Make sure you to add the following to the same file (see page 92):
    HS_NLS_LENGTH_SEMANTICS=CHAR
    HS_FDS_CHARACTER_SEMANTICS = TRUE
    HS_KEEP_REMOTE_COLUMN_SIZE=ALL
    Rerun the ETL process

  • InfoPath - "Schema validation found non-data type errors." at XmlWriter.Close()

    Greetings, 
    I'm creating a form that allows for emailing attachments however I am having an issue. When I try to attach a file, I get an "Schema validation found non-data type errors." error message. It seems like it's something with the XML structure and
    I cannot find anything wrong. 
    Here is the code:
    string myNamespace = NamespaceManager.LookupNamespace("my");
    using (XmlWriter writer = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:Email/my:AttachmentGroup", NamespaceManager).AppendChild())
    //Write to XML
    InfoPathAttachmentEncoder myEncoder = new InfoPathAttachmentEncoder(currentFile);
    writer.WriteStartElement("Attachments", myNamespace);
    writer.WriteElementString("attachment", myNamespace, myEncoder.ToBase64String());
    writer.WriteElementString("attachmentCheckbox", myNamespace, "false");
    writer.WriteEndElement();
    writer.Close();
    Here is the structure of the XML (root node is myFields):
    <my:Email>
    <my:AttachmentGroup>
    <my:Attachments>
    <my:attachment xsi:nil="true"></my:attachment>
    <my:attachmentCheckBox>false</my:attachmentCheckBox>
    </my:Attachments>
    </my:AttachmentGroup>
    <my:emailAddress>[email protected]</my:emailAddress>
    <my:subject>Paychex ESR Services Paperwork</my:subject>
    <my:body/>
    <my:selectAll>false</my:selectAll>
    </my:Email>
    Attachments is the repeating group in this case.
    Can anyone spot where the error is coming from?
    Thanks!

    HI,
    I fixed it:
    Below code is used to fix:
    [CODE]
    XPathNavigator xfield = null;
    DateTime dtmyRecievedDate;
    dtmyRecievedDate = Convert.ToDateTime(objInfopathFormcData.myRecievedDate);
    if (objFormcData.FcCompletionDate != null)
    xfield = myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager);
    DeleteNil(xfield);
    xfield.SetValue(dtmyRecievedDate.GetDateTimeFormats().GetValue(5).ToString());
    // method to delete xsi:nil
    private void DeleteNil(XPathNavigator nav1)
    if (nav1.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance"))
       nav1.DeleteSelf();
    [/CODE]
    Thank you

  • ORA-01403- No data found error on Pricing and availabiltiy form

    ORA-01403- No data found error on Pricing and availabiltiy form
    whenever user click on item availability in Pricing and Availability form ,this issue appears. Can any one let me know the cause.
    Thanks
    Payal

    941250 wrote:
    Thanks Mahendra,
    I have already read this article and accorind to it our instance is already ATP enabled. But still we are facing the error.
    Thanks
    PayalPlease see if (OEXPRAVA ORA-01403 Item Availability Not Displaying In Price and Availability Form [ID 290251.1]) helps.
    Thanks,
    Hussein

  • Most common BW data load errors in production and how to solve them ..

    Hi All,
    Most common BW data load errors in production and how to solve them ..
    Any doc on it ,if so plz send it across to this id [email protected]
    Thanks in advance.
    Rgrds
    shoba

    hi
    1) RFC connection lost.
    2) Invalid characters while loading.
    3) ALEREMOTE user is locked.
    4) Lower case letters not allowed.
    5) While loading the data i am getting messeage that 'Record
    the field mentioned in the errror message is not mapped to any infoboject in the transfer rule.
    6) object locked.
    7) "Non-updated Idocs found in Source System".
    8) While loading master data, one of the datapackage has a red light error message:
    Master data/text of characteristic 'so and so' already deleted .
    9) extraction job aborted in r3
    10) request couldnt be activated because theres another request in the psa with a smaller sid
    11) repeat of last delta not possible
    12) datasource not replicated
    13) datasource/transfer structure not active ´
    14) Idoc Or Trfc Error
    15. ODS Activation Error

  • How to read XI Data type in Java code and populate as array list, using UDF

    Hi,
    How to read XI Data type in Java code and populate as array list, using UDF?
    Is there any API using which  the XI data types can be read?
    Kindly reply.
    Richa

    Input Structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:CustomerCreateResp xmlns:ns0="urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100">
       <CUSTOMER>
          <item>
             <CUSTOMERNO/>
             <MDMCUSTOMER/>
             <CREATE_DATE/>
             <RETURN>
                <TYPE/>
                <MESSAGE/>
             </RETURN>
             <PT_CONTPART_RETURN>
                <item>
                   <MDM_CONTACT/>
                   <CONTACT/>
                </item>
             </PT_CONTPART_RETURN>
             <PARTNERS>
                <item>
                   <CUSTOMERNO/>
                   <PARTNER_FUNCTION/>
                   <PARTNER_NUMBER/>
                   <DEFAULT_PARTNER/>
                </item>
             </PARTNERS>
          </item>
       </CUSTOMER>
    </ns0:CustomerCreateResp>
    Output structure
    (Sample output structure.This actually needs to be mapped and generated using UDF)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:updateCustomer xmlns:ns1="urn:xiSericeVi"><ns1:customer><ns2:ArrayList xmlns:ns2="java:sap/standard">[]</ns2:ArrayList></ns1:customer><ns1:name>2344566</ns1:name></ns1:updateCustomer>

  • Flash in IE6 and IE7

    Hallo,
    lately I got some error messages from our customers about two
    websites containing flash movies:
    http://express.motionet.de/
    and
    http://demo.aziza.biz/expresstv/
    Both are the same pages on different servers (using
    progressive download).
    But while the second is working fine, the first doesn't
    display the movie or the movie preview for some IE 6 or IE 7
    browsers. I can view both movies without problems in Firefox AND in
    IE 7. But my customers normally use IE and reported this error.
    (The movies are normal FLVs, so there should not be a problem
    with the movies.)
    I already searched this forum for similar problems without
    results.

    Remove the following from above the <DOCTYPE>
    <!--begin HTML tag-->
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "bparizek" <[email protected]> wrote in
    message
    news:ft8deh$i67$[email protected]..
    >I just upgraded to version 1.6.1 of the Spry Accordion on
    a site I work on.
    > Works great in Firefox, Safari and Opera, but I'm
    getting a weird page
    > flash in
    > IE6 and IE7 whenever I change between panels. The page
    flashes and seems
    > to
    > reset with the focus somewhere in the middle of the page
    (if the browser
    > is
    > sized smaller than the content). Here is the page:
    >
    http://www.laurabarringer.com/gallery
    >
    > Would be glad if anyone could point me in the direction
    of what I might
    > have
    > done that is causing this. CSS? HTML?
    >
    > Thanks.
    >

  • Spry Tabbed Panels overwritting popup menu in IE6 and IE7 but display fine in Firefox

    I am new to Spry and Dreamweaver CS3 and would appreciate any
    help anyone can give. I am having an issue with Spry Tabbed Panels
    appearing above a navigation bar pop up menu only in IE6 and IE7.
    Everyhting works like expected in FF. I have several product pages
    that are exhibiting the same issue. I am not having this issue when
    using Spry Accordian. Would someone be able to educate me on what I
    can do to fix this problem. One of the product pages that is
    exhibiting this problem is
    Page
    with display issue

    The IE browsers implement z-indexing differently than most
    browsers ... specifically, IE browsers establish a new z-index
    context if you set the position CSS property of an element to
    anything other than static.
    What this means is that if you set something to
    position:relative ... any z-index values of children inside that
    element will be relative to that element.
    In your case, you seem to have a position relative on your
    div FWTableContainer1966866324. If you set the z-index value to
    something like 10, you'll notice that it fixes the problem.
    --== Kin ==--

  • Xmldataset is not working  with ie6 and ie7

    xmldataset is working with all browsers (ie8, opera, safari
    firefox) however it doesn't work with ie6 and ie7
    according to me all things are correct,my works doesn't
    appear ..
    http://www.turkedergi.com

    Hello
    I am pretty sure they know about this issue and software companies must not hear what the people say. For me it is logic that they watch what happen on the software market and try to adapt own products as soon as possible.
    This issue with IE8 is known and soon or later the updated version will be offered on download page but the question is: when?
    I cannot understand why they wait so long time. OK, to fix some issue and testing procedure can take a days but IE8 is not on the market from yesterday.
    Lets see how long it will be necessary for AuthenTec to fix this issue.

  • Inconsistent data types error

    I have a query in the VO. No matter what i write, i get the below error.
    java.sql.SQLException: ORA-00932: inconsistent datatypes: expected DATE got NUMBER
    No matter what i do, i get this error.
    The query in the VO is as below
    select * from hr_all_positions_f
    where trunc(sysdate) between trunc(effective_start_Date) and trunc(effective_end_date)
    Please advice.
    Thanks

    your query works perfectly in sql developer...
    as suggested by kumar expand your columns instead of using *
    Also check the data types dynamic where clause if any.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                           

  • Business Intelligence - SDO_GEOMETRY data type error

    Hi, I´m working with an MapViewer example in an Oracle DB 11g. Thus, I create a table having a column with data type SDO_GEOMETRY, which was populated correctly.
    However, when I try to create the table (physical layer) in BI Administration tool, the SDO_GEOMETRY data type does not appear, also when I try to export the metadata the column type appears as unknown.  Then, when I try to actualize the data the following error appear [nQSError: 17003] Oracle gateway error: Unsupported data type 108. (HY000). Also, when in the BI client,  when I try to directly query on the aforementioned table the same error occurs.
    I read other threads with related problems, with other data types, however, there are no answers.
    Anybody have an idea of a possible solution of the problem?
    Thanks, Christian

    Huh? Seems like another (complex and useless) form of denormalization to me. Why oh why people are so afraid of joins? Because they involve actual proper design of the data model rather than messy mock up from various ORM and persistence frameworks that is allowed to "evolve in real time"?

  • DI Access to AS400 data type error

    Running DI 11.7.3.  We are pulling data from an AS400 and are erroring out on the table read.  The field we are erroring out on is a numeric (7,0), yet the data is '?0?0?0?'.  If I remove the field in the data flow, it runs fine.  Is DI capable of pulling in the field to process if the value '?0?0?0?' does not match the type, numberic (7.0)?  I have seen no related links to this issue.  The following is the error received:
    |Dataflow CIS_PINCREL_AS400|Reader Query
    Cannot convert data <?0?0?0?> into type <DECIMAL>. Context: Column <Column CTOKEN>.
    |Dataflow CIS_PINCREL_AS400|Reader Query
    INFO: The above error occurs in the context <|Dataflow CIS_PINCREL_AS400|Reader Query|Column CTOKEN|>.

    let me try to check how the conversion errors are handled while reading ? as far as I know for DB table source the convert problem with set the column value to NULL
    try following, change the datatype of the column to VARCHAR in Data Service datastore, double click on table in Datstore, open column properties and change the datatype to varchar, and use is_valid_decimal and to_decimal to convert the valid values to Decimal and non-valid values to NULL in a Query Mapping

Maybe you are looking for