Date Formatting error in JDBC adapter

Hi,
While inserting date using a Receiver JDBC Adapter i am getting a "Month not valid" error can anyone please tell me how do i pass date in the required format. Database is Oracle.

Hi Vinay,
Oracle's default format for DATE is "DD-MON-YY"
With the functions to_char and to_date, a date format can be used. Example:
select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
will return something like: 24/03/2006 14:36:43
Regards,
Prateek

Similar Messages

  • Bex Analyser : Date Format error.

    Hi All,
    We are facing date format error, while running the query in Bex analyzer.
    We have one column in report i.e Net Payment Date, so when we run the query in analyzer the single date like "5-6-2010 is getting swapped like 6-5-10 & year also showing two digits i.e instead of 2010 it shows 10" & date like "12-09-2010 is coming perfectly."
    Means the date which is in single digit we are facing this problem like 1 to 9 & the dates which are 10 & above showing perfectly.
    In RSRT the query showing proper result, so i don't think it's BI problem.
    The regional setting is DD-MM-YYYY & Date separator is '-' & we don't want to change this format.
    Is there any SAP note or any solution for this..??
    All the replays are gr8ly appreciated.
    Thanks,
    Santosh

    Hi Santosh,
    how about web display? is it ok? for me it seems more an Excel problem, so maybe you should check if there is special formatingin this.
    Regards,
    Anass

  • Home Page Date Format ERROR ...

    I installed language support on my Portal 3.0.9.8 with 3 different languages: us, i=italian, f
    but when i use the "i" language there are many problems with format date ...
    in the Portal Home Page i have a message like "date format not valid"
    and i have problems in the creation of the content area's items with the publish date.
    Any one have an idea ???

    HI All,
    I have check my own data date format.
    But when i tried to activate the cycle count under
    Menu path: 
    Materials Management > Inventory Management and Physical Inventory>Physical Inventory> Cycle Counting
    I will not put any date on it, that's why its weird that i get an date format error.
    Where this error came from?
    Thanks..

  • Date format error in LOV with dates. Jdeveloper 11.1.1.0.1

    We're facing a silly problem, which no one else seems to have... ?
    When creating a LOV on a date column (eg hr.employees.hiredate) populated from another DataSource (eg. hr.job_history.startDate), the Application Module is working fine when tested.
    Building a jspx on top of the Datacontrol picks up the LOV defined and creates a SelectOneChoice for hiredate. But for what ever value you select, it will complain about wrong date format "Error: The date is not in the correct format".
    I can see, that the "real" value selected from the SelectOneChoice is an index-value, and the "format checking code" builtin to Jdeveloper can't figure out how to get the datevalue for the selected index.
    Surely it must be me, who can't see the forest for the trees?
    Thanks in advance :)

    Its a bit tricky - but its doable... We have to abandon the "Oracle LOV model" to make it work.
    Surely its must be some kind of bug in the Oracle LOV model? ?
    The way to do it is like:
    In Model project:
    M1: Remove List Of Value binding from Model layer (Business components). Both entity and view if declared both.
    M2: Create a view for the "date list" - ie the datasource for possible values in list.
    M3: Secure that format mask (hint) for all dates involved are the same.
    In View project:
    V1: Drop datacontrol on jspx as normal input dates.
    V2:Go to bindings for the page, and add (+) a new TABLE binding (And from here an iterator) to the view containing the list.
    Modify the input dates you want to be list:
    V3: Select the input date and rightclick and choose "convert"
    V4: Select a SelectOneChoice component
    V5: Pick the right column (tree) value to show in the SelectOneChoice componet.
    Switch to source view:
    V6: Drop a ForEach item from the component Palette (ADF Faces -> operations) on the SelectOneChoice (easiest to drop in structure windows)
    V7: Drop a Select Item from the component Palette (ADF Faces -> common components) on the SelectOneChoice (easiest to drop in structure window).
    Modify the source:
    V8: Insert "items" and "var" attributes in ForEach like this: +"items="#{bindings.[[Here goes the name of the New TableBinding component you made in Step V2]].rangeSet}" var="li"+
    V9: Insert "value" attribute and change "label" attribute to reference your new list variable "li" like this: +label="#{li.[[here goes the name of the new TableBinding Component attribute (columnname) you made in Step V2]]}" value="#{li.Firstofmonth}"+
    V10: Insert/edit any converters/validators needed for input validation.
    Done....
    You should end up with a SelectOnChoice definition (in your jspx file) something like this one:
    +<af:selectOneChoice value="#{row.bindings.ActiveFrom.inputValue}"+
    +label="#{row.bindings.ActiveFrom.label}"+
    +required="#{bindings.McAccountsView1.hints.ActiveFrom.mandatory}"+
    +shortDesc="#{bindings.McAccountsView1.hints.ActiveFrom.tooltip}">+
    +<af:forEach items="#{bindings.FirstOfMonth1.rangeSet}" var="li">+
    +<af:selectItem label="#{li.Firstofmonth}" value="#{li.Firstofmonth}" />+
    +</af:forEach>+
    +<af:convertDateTime pattern="dd-MM-yyyy"+
    +messageDetailConvertDate="Its not possible to convert the date in {0} since its value {1} dont conform to the pattern {2}"+
    +secondaryPattern="yyyy-MM-dd"/>+
    +</af:selectOneChoice>+
    And a binding definition (in your pagedef file) something like this one:
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"+
    +version="11.1.1.52.5" id="McAccounts01PageDef"+
    +Package="solution">+
    +<parameters/>+
    +<executables>+
    +<iterator Binds="McAccountsView1" RangeSize="25"+
    +DataControl="dateLovEmailDataControl"+
    +id="McAccountsView1Iterator" ChangeEventPolicy="ppr"/>+
    +<searchRegion Binds="McAccountsView1Iterator" Criteria=""+
    +Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"+
    +id="McAccountsView1Query"/>+
    +<iterator id="FirstOfMonth1Iterator" RangeSize="10" Binds="FirstOfMonth1"+
    +DataControl="dateLovEmailDataControl"/>+
    +</executables>+
    +<bindings>+
    +<tree IterBinding="McAccountsView1Iterator" id="McAccountsView1">+
    +<nodeDefinition DefName="dk.hammerJakobsen.Jdev.sample.model.McAccountsView">+
    +<AttrNames>+
    +<Item Value="EmployeeName"/>+
    +<Item Value="Id"/>+
    +<Item Value="BankAccount"/>+
    +<Item Value="StellarAccount"/>+
    +<Item Value="ActiveFrom"/>+
    +<Item Value="ActiveTo"/>+
    +</AttrNames>+
    +</nodeDefinition>+
    +</tree>+
    +<action IterBinding="McAccountsView1Iterator" id="CreateInsert"+
    +RequiresUpdateModel="true" Action="createInsertRow"/>+
    +<action IterBinding="McAccountsView1Iterator" id="Delete"+
    +RequiresUpdateModel="false" Action="removeCurrentRow"/>+
    +<action IterBinding="McAccountsView1Iterator" id="First"+
    +RequiresUpdateModel="true" Action="first"/>+
    +<action IterBinding="McAccountsView1Iterator" id="Last"+
    +RequiresUpdateModel="true" Action="last"/>+
    +<action IterBinding="McAccountsView1Iterator" id="Find"+
    +RequiresUpdateModel="true" Action="iteratorFind"/>+
    +<action IterBinding="McAccountsView1Iterator" id="Execute"+
    +RequiresUpdateModel="true" Action="iteratorExecute"/>+
    +<action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"+
    +DataControl="dateLovEmailDataControl"/>+
    +<action id="Rollback" RequiresUpdateModel="false"+
    +Action="rollbackTransaction" DataControl="dateLovEmailDataControl"/>+
    +<table IterBinding="FirstOfMonth1Iterator" id="FirstOfMonth1">+
    +<AttrNames>+
    +<Item Value="Firstofmonth"/>+
    +</AttrNames>+
    +</table>+
    +</bindings>+
    +</pageDefinition>+
    this approach works... But... Its important to remember that the "two" values are different now. The value in the row, and the possible value from the list. When you select a new value for the row from the list, you'll have to commit the value before its in the row - even seen from Faces. You can't reference the value in the base table in a validator before the row is committed.
    For the same reason I'll advise, that you only use the model in Single row view, since its can behave a bit funny in table views, where there's a lot of PPR.

  • Date Format Error During Cycle Count Activation

    Hi MM Guru's,
    Could you kindly help me with regards to my problem?
    I was trying to activate the cycle count for the newly plant i created under new company code.
    But im getting a date format error?
    Anyone who could help me regarding this?
    Thank you in advance.

    HI All,
    I have check my own data date format.
    But when i tried to activate the cycle count under
    Menu path: 
    Materials Management > Inventory Management and Physical Inventory>Physical Inventory> Cycle Counting
    I will not put any date on it, that's why its weird that i get an date format error.
    Where this error came from?
    Thanks..

  • Mailman - bounced "data format error" - Mailbox does not exist

    Hi gurus,
    All my mailing lists works great, except one of then...
    Its said: a lot of messages like this, several times:
    Mar 6 07:08:33 rossellimac postfix/pipe[2931]: 3F55D15F892: to=<[email protected]>, orig_to=<[email protected]>, relay=cyrus, delay=0.11, delays=0.04/0/0/0.07, dsn=5.6.0, status=bounced (data format error. Command output: alejandro: Mailbox does not exist )
    Also this error:
    3/6/09 8:18:20 AM lmtpunix[4844] AOD: user opts: get attributes for user: alejandro failed with error: -14479
    3/6/09 8:18:20 AM lmtpunix[4844] warning: unable to post message for user: alejandro, mail is not enabled for this user
    The computers halt for a minute... when I send an email to this list (general@) where "alejandro is a user"
    Please, some advice... I surf the web... and not always produce error...
    Thanks in advance.
    Message was edited by: alopezruiz

    ok

  • Error while retrieving data from sql using jdbc adapter

    hi all,
    i m working on one scenario where i m sending data using HTTP and receiver is jdbc adapter which is retrieving me data from sql server.
    i have checked the structure both for req and res.
    i m getting this error
    <SAP:Error>
    <SAP:Category>Application</SAP:Category>
    <SAP:Code>MAPPING.EXCEPTION_DURING_EXECUTE</SAP:Code>
    <SAP:P1>com/sap/xi/tf/_INF57285_DB_HR_RES_</SAP:P1>
    <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
    <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
    <SAP:Stack>During the application mapping com/sap/xi/tf/_INF57285_DB_HR_RES_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
    </SAP:Error>
    can somebody help me with this.
    Thanks & Regards
    Aruna

    thnks bhavesh i think i made it that way
    JDBC REQ  
      <ns:INF57285_DB_Request xmlns:ns="http://www.infosys.com/xi/training/hyd/57285">
      <Employee>
        <EmpDetails action="SELECT">
          <table>EmpDetails</table>
          <access>
            <Name />
            <EmpId />
            <Band />
            <Salary />
          </access>
          <Key>
            <EmpId>57285</EmpId>
          </Key>
        </EmpDetails>
      </Employee>
    </ns:INF57285_DB_Request>                        
      JDBC RES
    <ns:INF57285_DB_Request_response xmlns:ns="http://www.infosys.com/xi/training/hyd/57285">
      <Employee_response>
        <row>
          <Name>aruna</Name>
          <EmpId>57285</EmpId>
          <Band>A</Band>
          <Salary>4675776</Salary>
        </row>
      </Employee_response>
    </ns:INF57285_DB_Request_response>
    my hr req is which i mapped with DB req
    <ns:INF57285_HR_Req xmlns:ns="http://www.infosys.com/xi/training/hyd/57285">
      <REQUEST>
        <EmpNo>57285</EmpNo>
      </REQUEST>
    </ns:INF57285_HR_Req>
    my hr res is which i mapped with DB res
    <ns:INF57285_HR_Res xmlns:ns="http://www.infosys.com/xi/training/hyd/57285">
      <response>
        <row>
          <Name>aruna</Name>
          <Empld>57285</Empld>
          <Salary>4675776</Salary>
        </row>
      </response>
    </ns:INF57285_HR_Res>
    and interestingly i am not getting any error in sxmb_moni
    it's not showing any error
    plz suggest me something wht to do ....
    thnks & regards
    Aruna

  • SAX Parser Error in JDBC Adapter

    I am using a JDBC adapter to execute SQL statements during mapping runtime. However, it issues me an error regarding the SAX Parser when I have a '&' character in the SQL statement. I am not able to remove the & since it is in the database that I access and it will result to data inconsistency. I think that when the JDBC adapter of XI converts the SQL string to the XML format, it does not include the amp; string to the &, thus causing the SAX Parser to throw the error.
    Is there someway I can configure the JDBC adapter in such a way that it will replace the & with &amp;. Or is there a way to display how the JDBC adapter converts the SQL statement to its the XML representation of it?
    Thanks a lot.

    Hi,
    For this kind of situation use some unique character combination  like "#@!" for replacing "&" then parse the document and the restore the "&" later .
    For this convert the input stream into Strring and then replace the occurences of "&".
    regards.

  • Error in JDBC Adapter-"Error establishing socket"

    Hi,
    I am getting an error in the seander JDBC adapter. PFB the error:
    Error during database connection to the database URL 'jdbc:microsoft:sqlserver://Server Name;DatabaseName=DB Name;SelectMethod=cursor' using the JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://Server Name;DatabaseName=DB Name;SelectMethod=cursor': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.'
    Can any one hlep me to resolve the error.
    Thanks,
    RK

    Hi,
    Also check whether you have given database connection parameters in the following format:
    JDBC Driver:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection:   jdbc:microsoft:sqlserver://<HOSTNAME>:1433;DatabaseName=<xxxx>;SelectMethod=cursor
    I think the deployment is done, because you have not got "SAPClassNotFoundException" error.(If the deployment is not done, the driver file cant be located so this will be thrown...)
    Thanks & Regards,
    Senthil.

  • Invalid column name error in JDBC adapter

    Hi all,
    My scenario is Proxy->XI->JDBC.
    I get the following error in receiver JDBC  adapter.
    Unable to execute statement for table or stored procedure. 'Account_Master' (Structure 'STATEMENT') due to com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'A7'.
    There is no column by name A7 in the table nor there is a field by that name in the data type.
    Can anyone provide any help

    Hi Swatantra,
    compare your message-type with the database table!
    There must be difference!
    Regards Mario

  • Specify Keys in Data Type for receiver JDBC adapter

    Hi guys,
    I have the following issue:
    In a proxy to JDBC scenario, I want to specify somehow the key values for the SQL statement in the data type that I define for the receiver JDBC adapter. Thus, I am using the following structure in data type:
    root
        Statement
               dbTable
               action
               table
               access
                      CustomerID
                      Name
                      HouseNo
               Key
                      CustomerID
    But in the SQL statement that is produced (I can see that in RWB, CC Monitoring, Audit Log), the "Key" segment is translated into "OR". E.g. UPDATE_INSERT ("A100" "Evaggelos Gkatzios" "El Alamein 19") OR ("A100")
    Do you have any ideas ?

    Hi,
    Its clear from the statement in RWB (in CC monitoring's auditlog) you are using UPDATE_INSERT as the action.
    Please correct me if this is OK. Now the interpretation of input xml file will be like this,
    If the input XML is in the following format
    <root>
    <Statement>
    <dbTable action=UPDATE_INSERT>
    <table>EXAMPLE</table>
    <access>
      <CustomerID>ABC</CustomerID>
      <Name>xyz</Name>
      <HouseNo>123</HouseNo>
    </access>
    <key>
      <CustomerID>DEF</CustomerID>
    </key>
    </dbTable>
    </Statement>
    </root>
    Resultant SQL after parsing the XML file will be,
    1. It will first check with the condition WHERE CustomerID = DEF. If it finds the record with this condition then it will update the record with CustomerID=ABC, Name =xyz & HouseNo=123.
    2. If it doesn't find any record with that CustomerID then, it will insert a new record with the same details.
    In auditlog, you will find two SQL statements like,
    1.UPDATE EXAMPLE SET CustomerID=ABC, Name =xyz & HouseNo=123 WHERE CustomerId=DEF
    2.INSERT INTO EXAMPLE VALUES(ABC,xyz,123)
    hope this has given clear information about your query,
    Regards,
    Soorya

  • DA0005 date format error after install CHF17

    Post Author: Akvile
    CA Forum: Deployment
    After installing chf17 I get the following error when trying to refresh reports, which require user to enter date in the condition prompt: DA0005 Connection or SQL sentence error Exception: DBD, &#91;Sybase&#93;&#91;ODBC Driver&#93;&#91;Adaptive Server IQ&#93;Cannot convert 1900-01-00 to a timestampState: 07006 our date format was yyyy.mm.dd now refreshing works only when entering date in yy.mm.dd format I have tried the following: - to reinstall Sybase IQ ODBC driver - to change date format in universe - to add InputDateFormat and InitDateFormat parameters to odbc.sbo files - to add registry entry to HKEY_LOCAL_MACHINE>SOFTWARE>Oracle NLS_DATE_FORMAT value YYYY.MM.DD (because it was such a reccomendation in BO 5.1 error guide for similar problem) Nothing helped. Any ideas? I have XI release 2, SP1, MHF1, Oracle 9 on clients, oracle 10 on server, sybaseIQ 12.7 middleware.

    SP3 should include FP 2.5

  • Date Format  error while loading *.dat  file to Sataging .

    Hi All ,
    Loading data from *.dat file in to Staging , the dat file contains data for date in 'MM-DD-YYYY' format which is String , when it loading by control file it produce the error date format is not supported .I think ti required DD-MM-YYYY format . Is their any properties to change the date format or else need to write the function for converting date format .
    I am using OWb 10g Release 1 , with same DB .
    Please guide me
    Thanx in advance
    Regards ,

    Hi,
    Before loading into staging, you can use Expression operator to convert the CHAR into DATE with something like this:
    TO_DATE('01-02-2005','MM-DD-YYYY')
    Hope this helps.

  • DATE Format Error in ODI-11g(11.1.1.3)

    I am using ETL transformations in ODI-11g. There's a dominant issue regarding date formattings when I map an ODI variable (storing date) with a TGT column(datatype=date) mappings.
    In all the src-tgt mappings I am formatting the date by using TO_DATE() functions. But still getting the error:
    "ORA-01830: date format picture ends before converting entire input string".
    A point to Note: The same ETL in other env are ruuning fine but in my new dev env it's giving this date error.
    I had checked with the DBA folks and they confirmed they set equal DATE settings in all the env.
    The ODI Variable is defined as an "Alphanumeric".
    Tx Used: #BUSINESS_CURRENT_DT=TO_DATE('Date','YYYY-MM-DD')
    Require some urgent advice...Please let me know

    Hi,
    W store name-value pair in the Control table from where we exctract our data. Both (param name and param value) are varchars.
    Well this looks pretty strange in 11g! Here's what we found out...
    If you are trying to retrieve a date variable by using TO_DATE() in the refresh query the ODI Java driver (JDK 1.6) would call java.sql.timestamp and gracefully attach HH:MI:SS.NS along with the date (YYYY-MM-DD HH:MI:SS.NS). My target ia a date always..!
    So, when I do: TO_DATE('20101010','YYYY-MM-DD) in the refresh query ODI stores it as '2010-10-10 00:00:00.0'
    For this the Load always fails as Oracle would not be able to interpret a timestamp by suing TO_DATE()
    The Java driver does this damage. However, it may be wise to store as a timestamp rather as a date if in case u do a Data capture and want the exact time credentials.
    Unfortunately not a req, as of now for us so I had to chop-off the timestamp..!
    Let me know if you find any other details...
    Thanks.!

  • Date format error while accessing date from SQLSERVER

    Hi all, in me webdynpro application I have taken Date type for the Input Field.
    At date select it is displaying in the format
      *2/14/2009 i.e. mm/dd/yyyy*
    And when I am saving date in the sql database then the date format changes to..
    2009-02-14 i.e..yyyy/mm/dd.
    But using the Date format method I have changed the format as per the need to push date in the SQL database table...
    In the table SQL the date attribute is in form i.e.    02/14/2009 as like from the date select from the date Input Fieldu2026But the problem is that database is not being able to display in that Input field again.
    I have use the coding both at Insertion and selection of the database i.e..
    Date Sdate, Edate;
    Sdate     =   Date.valueOf (rs.getString ("Sdate"));
    Edate     =   Date.valueOf (rs.getString ("Edate"));
    SimpleDateFormat date Formatter = new SimpleDateFormat ("MM/dd/yyyy");
    Sdate = wdContext.currentProjectElement ().getEdate ();
    Edate = wdContext.currentProjectElement ().getEdate ();
      String Sd = dateFormatter.format (Sdate);
      String Ed = dateFormatter.format (Edate);
      Date Sdd =Date.valueOf (Sd);
      Date Edd =Date.valueOf (Ed);
    But at selection of the database the error for the date format isu2026.
    java.lang.IllegalArgumentException
    If somebody knows how to resolve this ,plz let me know
    Regards:
    SK

    for displaying the value only, I think, you are converting to string.
    sol1:
    1. Create a simple type in dictionary: under Dictionary -> Local Dictionary -> Simple Types
    2. go to Definition tab: Change Built-in Type as Date
    3. go to Representation tab: specify format e.g.: MM/dd/yyyy
    4. go to Context and change the date context attribute to the created type.
    sol2:
    please try to minimize the casting between Date and String.
    I believe in database date is stored as Date type itself. My suggestion will be for displaying keep a separate attribute and set it on each db call.
    below code is converting from Date to String.
    Date Sdate, Edate;
    Sdate = rs.getDate ("Sdate");
    Edate = rs.getDate ("Edate");
    SimpleDateFormat date Formatter = new SimpleDateFormat ("MM/dd/yyyy");
    String Sd = dateFormatter.format (Sdate);
    String Ed = dateFormatter.format (Edate);

Maybe you are looking for

  • Error while running Hello World Page

    Hi I am getting the following error when I run the Hello World page from the Tutorial. oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SECURITY_APPL_LOGIN_FAILED. ## Detail 0 ## oracle.apps.fnd.framework.OAException: Applicatio

  • Issue in Ship To Address.. URGENT

    Hi All, We added Ship to Address Form in Ship To Page in iStore . 115.10.2 If I click on 'Continue Checkout' button , then it redirects to same page wiht the following errors Address Line 1 is required Field and Province is Required Field Please any

  • Domain not showing up right.

    So keep in mind that I'm new to iWeb so this might be something stupid that I just overlooked. I currently have a domain that I bought and hosted through godaddy. The domain is danjbailey.com but when I made a quick site in iWeb and published it didn

  • Create Substitution Profit Center when billing

    Dear all How to create substitution profit center and this the requiredment: When i create billing VF01 there is tax account 21117106 and i want to substitute profit center in that account, since i maintain 3KEH. i have create substitution like this,

  • 4404 WLC AP's will not connect

    I have a network with 75 Ap's on it I am registering 65 of them on the WLC and the other ten I have 6 that when I search for them in the WCS I find them and they say that they are connected to the correct controller but the WLC doesnt show them conne