Date Formats - Strange behaviour

Has anyone come across this one?
I have a date picker item (DD-MON-YYYY) on a page with an item validation to ensure that the date is in a valid format if typed in. If I type a date with a month format of ‘MM’ instead of ‘MON’ then I get a validation error. I’ve tried removing the item validation but I just end up with an ‘ORA-01843: not a valid month’ error.
However if I change the date picker to a DD-MM-YYYY then the validation and database both accept dates of any format ie MM or MON.
I am sure there is a cunning reason for this and the easy answer is to only use date pickers with an MM month format. That said my industry has a writing policy that states that dates should be DD-MON-YYYY and I try to write applications that comply to that policy.
Any suggestions gratefully received.
Si

Si,
I learn something new every day. This is behavior in the underlying database. Here are some results from SQL*Plus:
joel@MRVDEV22> select to_date('02/11/2006','DD-MON-YYYY') from dual;
select to_date('02/11/2006','DD-MON-YYYY') from dual
ERROR at line 1:
ORA-01843: not a valid month
joel@MRVDEV22> select to_date('02-NOV-2006','DD-MM-YYYY') from dual;
TO_DATE('
02-NOV-06So why is the one date conversion failing as expected, yet the other one is succeeding? I don't know. Might be a database bug, might be a database feature. The SQL Reference does not appear to shed any light on this subject.
I thought maybe this was somehow related to the NLS_TERRITORY or NLS_DATE_FORMAT settings, but that does not appear to change this implicit behavior.
Joel

Similar Messages

  • Ajax4JSF and Tomahawk data table, strange behaviour

    Hi,
    I use the tomahawk data table to display a list of objects in my page with the following code snippet
    <t:dataList value="#{userGallery.images}" var="image" layout="simple">
      <a4j:region>
        <t:htmlTag value="div" styleClass="imageEntry">
          <!-- This is the interesting part -->
          <h:outputLink value="gallery.faces">
            <f:param name="imageId" value="#{image.id}" />
            <t:div styleClass="imageWrapper image_#{image.id} #{image.inCart ? 'inCart' : ''}">
              <h:graphicImage value="#{ftp.apacheThumbnails}#{image.imageName}" alt="#{image.imageName}"/>
            </t:div>
          </h:outputLink>
          <!-- End of the interesting part -->
          <t:htmlTag value="div" styleClass="textWrapper">
            <t:htmlTag value="div" styleClass="actions">
              <a4j:commandLink reRender="imageList,shoppingChart" styleClass="addToCart" value="+#{msg.detailCart}" action="#{shoppingCart.addImageToCart}" rendered="#{!image.inCart}">
                <f:setPropertyActionListener target="#{shoppingCart.chosenImageId}" value="#{image.id}" />                                     
              </a4j:commandLink>
              <a4j:commandLink reRender="imageList,shoppingChart" styleClass="removeFromCart" value="-#{msg.detailCart}" action="#{shoppingCart.removeImageFromCart}" rendered="#{image.inCart}">
                <f:setPropertyActionListener target="#{shoppingCart.chosenImageId}" value="#{image.id}" />                                     
              </a4j:commandLink>     
            </t:htmlTag>
         </t:htmlTag>
       </t:htmlTag>
      </a4j:region>
    </t:dataList>I have marked the interesting part of the text.
    When i first access the page then everything is rendered as it should be.
    When i now klick on the a4j:commandLink then i got the following result: (only the interesting snippet)
    <div class="imageEntry">
      <a href="gallery.faces?imageId=2"/>
      <div class="imageWrapper image_2 inCart">
         ..... (output as it should be)
      </div>
      <div  class="textWrapper">
         .... (output as it should be)
      </div>
    </div>So you see the link tag is closed to early, it should wrapp the complete <div class="imageWrapper> object.
    Anybody know how to solve this?
    Edited by: heissm on 19.05.2008 16:26 - shifting of the html tags

    Hi,
    I use the tomahawk data table to display a list of objects in my page with the following code snippet
    <t:dataList value="#{userGallery.images}" var="image" layout="simple">
      <a4j:region>
        <t:htmlTag value="div" styleClass="imageEntry">
          <!-- This is the interesting part -->
          <h:outputLink value="gallery.faces">
            <f:param name="imageId" value="#{image.id}" />
            <t:div styleClass="imageWrapper image_#{image.id} #{image.inCart ? 'inCart' : ''}">
              <h:graphicImage value="#{ftp.apacheThumbnails}#{image.imageName}" alt="#{image.imageName}"/>
            </t:div>
          </h:outputLink>
          <!-- End of the interesting part -->
          <t:htmlTag value="div" styleClass="textWrapper">
            <t:htmlTag value="div" styleClass="actions">
              <a4j:commandLink reRender="imageList,shoppingChart" styleClass="addToCart" value="+#{msg.detailCart}" action="#{shoppingCart.addImageToCart}" rendered="#{!image.inCart}">
                <f:setPropertyActionListener target="#{shoppingCart.chosenImageId}" value="#{image.id}" />                                     
              </a4j:commandLink>
              <a4j:commandLink reRender="imageList,shoppingChart" styleClass="removeFromCart" value="-#{msg.detailCart}" action="#{shoppingCart.removeImageFromCart}" rendered="#{image.inCart}">
                <f:setPropertyActionListener target="#{shoppingCart.chosenImageId}" value="#{image.id}" />                                     
              </a4j:commandLink>     
            </t:htmlTag>
         </t:htmlTag>
       </t:htmlTag>
      </a4j:region>
    </t:dataList>I have marked the interesting part of the text.
    When i first access the page then everything is rendered as it should be.
    When i now klick on the a4j:commandLink then i got the following result: (only the interesting snippet)
    <div class="imageEntry">
      <a href="gallery.faces?imageId=2"/>
      <div class="imageWrapper image_2 inCart">
         ..... (output as it should be)
      </div>
      <div  class="textWrapper">
         .... (output as it should be)
      </div>
    </div>So you see the link tag is closed to early, it should wrapp the complete <div class="imageWrapper> object.
    Anybody know how to solve this?
    Edited by: heissm on 19.05.2008 16:26 - shifting of the html tags

  • Strange behaviour of data element  object

    Dear Gurus,
    I have incremented the field length of a z table's field from 5 (type DEC)  to 8 by increasing the corresponding domain length . But the internal tables that refer to this field still refer to the old value 5, though the table is accepting values for this field with 8 length through 'Create Entries' in SE11.
    The problem seems to be in the runtime object of the corresponding data element which shows
    database length = 5 
    abap length = 5
    BUT dictionary length = 8.
    Could anyone pls help diagnose this strange behaviour as even if I create new domains with new data elements for this table field ,it gives the SAME RUNTIME OBJECT STATUS as mentioned above.
    Rewards are awaiting the right answer.
    Thanks in advance.
    Shweta.

    Hi,
    For these kind of problems, you can use the Database utility tool (SE14), give the table name press enter, click Adjust and Activate Database table also select save data radiobutton. After this Re-Run the Program, it works fine, also cross-check in the Debugging screen.
    Cheers...
    Santosh.
    Mark Usefull Answers.

  • Strange Date Format

    My iMac is running 10.5.8, and the date formats are very strange for documents. For example,
    Wed FriJan 625,320102005, 8:28AM
    I have 2 emails address

    run the following terminal command and log out/in
    rm ~/library/preferences/.Global*

  • Strange date format in iPhoto

    When I migrated to Maverick, the date format for all my pictures went batty. For example, the date will show as 43-6-569 or 85-65-741. I tried adjusting the date manually but it doesn't solve the problem. I thought migrating to Yosemite would fix this but the issue has actually spread to itunes. Now the "Date added" column for all the songs also shows this strange format.
    Has anybody seen this issue? Is there a fix?
    Thanks.

    I have it on automatic date setting, using a 24-hour clock. The date format in the Language and Region tab is the typical dd/mm/yy. I double checked every other settings. But I don't think it's a problem with the System Preferences as the date in the manu bar is correct, as is for every other application. The issue is only with iphote and now iTunes.

  • Strange Date format in SM21 log in ERP 2005 system

    Hi,
    We have upgraded to ERP 2005 from 4.6C. In the system log (SM21), when I look, the date format (yyyy/mm/dd) the year is showing as some strange number 0112 . Not sure if it is a bug or has some fix.
    I had installed a new ERP 2005 system in which I have the same problem.
    Has anyone encountered the same problem?
    Both are in HP-UX and MSSQL.
    Thanks & Regards,
    P. Kumaravel.

    HI Daniel,
    Further more I get the below message in SAP market place:
    Error Message - Access denied (R/3)
    What happened?
    You do not have permission to access this Object
    What can you do?
    Please contact a consulting adminstrative
    Error code: WEBSMP109-20070115061813-0015
    Error details: CE1D7E-702/1A00C/3162-7324CFB9-3CB9265-29AB5B
    Service Name: SAPIDB
    Service Server: PWDF1737
    Process-ID: 5224
    Thread-ID: 5792
    Sorry for any inconvenience.
    Your SAP Service Marketplace Team
    Thanks & Regards,
    P. Kumaravel.

  • Strange Date Format: April 16, R.O.C. 98 23:11:44 MESZ

    Hello,
    my Snow Leopard Mail.app suddenly shows me a strange date format:
    April 16, R.O.C. 98 23:11:44 MESZ
    (also see http://de.tinypic.com/r/153pjpz/3)
    My question would be, what does R.O.C. 98 mean and how can I get rid of it?
    Thank you very much!
    Till

    Reboot solved it. In these times, you don't even think about something this trivial.

  • Strange date format in german locale

    According to /usr/share/i18n/locales/de_DE the date format for german locale is defined as follows "2000-06-24", which is not very common in German-speaking countries.Usually date is written as "24.06.2000". Some programs use this "wrong" format.
    Is it save to edit the file mentioned above to achieve this format?
    Last edited by tyr0 (2010-08-05 18:04:05)

    tyr0 wrote:Thank you, karol, formating the file didn´t force programs to use the new format. Maybe my editing isn´t correct.
    Actually it isn´t a real problem, because in scripts you can use "date +%d.%m.%g", so I´ll mark this topic as solved.
    I see that you decided against marking it as solved - or you forgot about it :-)
    Which programs are showing the wrong date? They may be using their own date format and your locales are / were fine.

  • Date Format for the input Variable

    Hi all,
    I got an issue with Date format we enter in the input variable screen for the BEx Analyzer.
    We have given a format of MM/DD/YYYY. But when the users accessed the report, it is not taking the format of the variable i.e MM/DD/YYYY but it is taking the format of the users system.
    If the user's system format is DD/MM/YYYY, it is accepting the input inthe same format only.
    Why this strange behaviour?
    My questions are
    Is the input for BEx system specific? or variable specific?
    Rgrds
    Kumar

    Hi,
    I think it is user specific... you can maintain the date format for user ....
    Go to SU01 transaction or.. Go to SYSTEM -> User Profile -> Own data
    Here in defaults tab you can see the date formet for user...
    Hope this helps...
    Thanks,
    Vikrant Mahajan

  • Date format is changing in presentation variable

    Hello,
    I have a problem with date stored in presentation variable.
    I have simple prompt with calendar field (default date value is setted from repository or session variable to current date). Selected date is stored in PP_DATE presentation variable.
    I have simple report with title to show the content of variable PP_DATE.
    And now the problem.
    When I navigate to dashboard page with this report I will get date from PP_DATE variable in some format (there is difference when I use repository or session variable). After I will push the start button I will get another date format from PP_DATE variable.
    Screenshots are stored and described in this PDF: [PDF with screenshots|https://docs.google.com/uc?export=download&id=0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]
    There is difference between session and repository variable. When I use repository variable I will get 'TIMESTAMP .......' from PP_DATE variable, which is the default initializer in repository variable manager. I tried to delete default initializer, but I is automatically added after saving changes.
    When is the default value of prompt setted from session variable I will get another format of date from PP_DATE variable which refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I have changed DATE_TIME_DISPLAY_FORMAT from standard value "yyyy/mm/dd hh:mi:ss" to "yyyy-mm-dd hh:mi:ss.mss" because I am reading some data from excel, where are dates stored in MSSQL format. But this is not the reason of my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.
    The result of this strange behaviour is that I am getting errors when I am doing some calculations (for example TimeStampDiff) with PP_DATE variable. I am getting error when I am navigating to dashboard page. Everything is ok after I will push the start button.
    Do you have some tips?
    Thank you

    Kishore Guggilla wrote:
    Hey,
    you are talking about so many pieces here seems..
    first letz break down your issues list..
    1. error, this is because of default date(using repository variable) used in prompt..
    2. using presentation variables in timetampdiff functions..
    3. showing variable in title list..
    we'll go through each issue..
    because, its' messed up..I think that everywhere is the same problem. So solving issue number 1 will solve my other problems.
    "1. error, this is because of default date(using repository variable) used in prompt.. "
    I want to use date prompt with default date value (from repository or session variable) and then use pp_date presentation variable from this prompt to filter my results.
    I would like to use repos. or session variables, I dont want to write some select to fill default date value in each prompt.
    I tried to change one date in initialization block from "trunc(sysdate, 'DD')" to "to_char(sysdate, 'YYYY-MM-DD')" because it is the same format as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini
    And now it seems to be working now.
    I can use repository var. as default date value in my prompt and use date variable pp_date to filter my results. Report return result after navigation on it and after pushing Go button.
    Can you confirm me that date format in initialization block must be the same as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini?

  • Strange behaviour BOXI R2

    Post Author: Ermakov Alexey
    CA Forum: .NET
    using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using CrystalDecisions.Enterprise;using BusinessObjects.ReportEngine;using BusinessObjects.Enterprise.Desktop;using System.IO;using System.Runtime.InteropServices;using System.Collections;namespace BusinessObjectsInteroperation{     public class BusinessObjectsInterop     {          public void GetBinaryReportByName(string NameOfTheReport, Stream StreamForDataBeWritten, BOConfigs BOCfg, OutputFormatType OutputFormat, Hashtable PromptValues)          {               EnterpriseSession enterpriseSession = null;               ReportEngines reportEngines = null;               SessionMgr sessionMgr = new SessionMgr();               try               {                    enterpriseSession = sessionMgr.Logon(BOCfg.BO_LoginName, BOCfg.BO_Password, BOCfg.BO_MachineToConnect, BOCfg.BO_LoginType);               }               catch (COMException exc)               {                    int HRESULT = exc.ErrorCode;                    switch (HRESULT)                    {                         case -2147210751:                              throw new ArgumentException(" BO_MachineToConnect");                         case -2147211005:                              throw new ArgumentException(" BO_LoginName");                         case -2147211006:                              throw new ArgumentException(" BO_Password");                         case -2147210653:                              throw new ArgumentException(" BO_LoginType");                         default:                              throw new ArgumentException("");                    }               }               InfoStore iStore = (InfoStore)enterpriseSession.GetService("InfoStore");               UserInfo userInfo = enterpriseSession.UserInfo;               if (enterpriseSession != null)               {                    if (reportEngines == null)                    {                         int iMinuteNumber = 1;                         int iLogonNumber = 1;                          string strToken = enterpriseSession.LogonTokenMgr.CreateWCAToken("", iMinuteNumber, iLogonNumber);                         reportEngines =  new ReportEngines(strToken);                    }               }                              IReportEngine reportEngine = reportEngines.getService(ReportEngineType.FC_ReportEngine);               FullClient ReportToPrint = (FullClient)getReport(iStore, NameOfTheReport, CrystalDecisions.Enterprise.InfoStore.CeKind.FullClient);               IDocumentInstance doc = null;               try               {                    doc = reportEngine.OpenDocument(ReportToPrint.ID); //ERROR Happens here               }               catch(Exception e)               {                    Console.Write(e.StackTrace);               }                              doc.Refresh();               IPrompts prompts = doc.GetPrompts();               foreach (IPrompt ip in prompts)               {                    string OnlyOneValue="";                    try                    {                         OnlyOneValue = (string)PromptValues&#91;ip.Name&#93;;                    }                    catch(IndexOutOfRangeException exc)                    {                         throw new ArgumentException(String.Format("Отчет {0} имеет необходимый параметр , который не был предоставлен.", NameOfTheReport, ip.Name), exc);                    }                    string&#91;&#93; vlArr = ; //Почему одному IPrompt надо передавать массив значений остается загадкой.                    ip.EnterValues(vlArr);               }               doc.SetPrompts();               IBinaryView docBinaryView = (IBinaryView)doc.GetView(OutputFormat);               docBinaryView.WriteContent(StreamForDataBeWritten);               doc.CloseDocument();                              reportEngine.Close();               reportEngines.Close();               iStore.Dispose();               enterpriseSession.Logoff();               enterpriseSession.Dispose();                                        }                    private InfoObject getReport(InfoStore iStore, string Name, string Kind)          {               InfoObjects list = null;               string query = String.Format(@"                SELECT                     SI_ID,                     SI_NAME,                          SI_PARENTID,                         SI_KIND,                          SI_INSTANCE,                          SI_DESCRIPTION                     FROM                         CI_INFOOBJECTS                     WHERE                          SI_KIND='{0}' AND                         SI_NAME=''", Kind, Name);                list = iStore.Query(query);               if (list.Count == 0)               {                    throw new Exception(String.Format("На сервере не существует отчета с именем {0}, его необходимо создать. Либо у вас нет на него прав.", Name));               }               if (list.Count > 1)               {                    throw new Exception(String.Format("На сервере существует более одного отчета с именем {0}, удалите неверный.", Name));               }               foreach (InfoObject obj in list)               {                    return obj;               }               return null;          }          public void ReportInPdfToHTTPResponse(string NameOfTheReport, params Par&#91;&#93; Prompts)          {               Hashtable PromptValues = new Hashtable();               foreach (Par p in Prompts)               {                    PromptValues.Add(p.Key, p.Value);               }               HttpResponse Response = HttpContext.Current.Response;               Response.Clear();               Response.ContentType = "application/pdf";               Response.AddHeader("Content-Type", "application/pdf");               Response.Expires = 0;               GetBinaryReportByName(NameOfTheReport, Response.OutputStream, new BOConfigs(), OutputFormatType.Pdf, PromptValues);               Response.Flush();               Response.End();          }          public void ReportInXlsToHTTPResponse(string NameOfTheReport, params Par&#91;&#93; Prompts)          {               Hashtable PromptValues = new Hashtable();               foreach (Par p in Prompts)               {                    PromptValues.Add(p.Key, p.Value);               }               HttpResponse Response = HttpContext.Current.Response;               Response.Clear();               Response.ContentType = "application/vnd.ms-excel";               Response.AddHeader( "Content-Type", "application/vnd.ms-excel");               Response.Expires = 0;               GetBinaryReportByName(NameOfTheReport, Response.OutputStream, new BOConfigs(), OutputFormatType.Xls, PromptValues);               Response.Flush();               Response.End();          }               }     } I have this code, but it has strange behaviour.When I restart IIS and run this function first time, I get an ArgumentOutOfRangeException in reportEngine.OpenDocument(ReportToPrint.ID);But the most strange thing is that Visual Studia shows me exception dialog and if I press Continue, then it works good.On more strange thing I get about this Code. From time to time server shows me such error:An unhandled exception of type 'BusinessObjects.ThirdParty.OOC.OB.AssertionFailed' occurred in businessobjects.enterprise.sdk.netmodule Additional information: ORBacus encountered an internal error

    Post Author: Ermakov Alexey
    CA Forum: .NET
         mscorlib.dll!System.String.LastIndexOf(char value, int startIndex) + 0x13 bytes           log4net.dll!log4net.Repository.Hierarchy.Hierarchy.UpdateParents(log4net.Repository.Hierarchy.Logger log = {log4net.Repository.Hierarchy.DefaultLoggerFactory.LoggerImpl}) + 0x1cf bytes           log4net.dll!log4net.Repository.Hierarchy.Hierarchy.GetLogger(string name = ".cctor", log4net.Repository.Hierarchy.ILoggerFactory factory = {log4net.Repository.Hierarchy.DefaultLoggerFactory}) + 0x12b bytes           log4net.dll!log4net.Repository.Hierarchy.Hierarchy.GetLogger(string name = ".cctor") + 0x46 bytes           log4net.dll!log4net.Core.LoggerManager.GetLogger(System.Reflection.Assembly repositoryAssembly = {System.Reflection.Assembly}, string name = ".cctor") + 0x94 bytes           log4net.dll!log4net.LogManager.GetLogger(System.Reflection.Assembly repositoryAssembly = {System.Reflection.Assembly}, string name = ".cctor") + 0x1b bytes           log4net.dll!log4net.LogManager.GetLogger(string name = ".cctor") + 0x1e bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Lib.Tracing.CELogger.CELogger(string name = ".cctor") + 0x20 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Lib.Tracing.TraceManager.LoggerFactoryHelper.makeLogger(string name = ".cctor") + 0x35 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Lib.Tracing.TraceManager.getLogger(string name = ".cctor") + 0x4a bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.AbstractSchedulableObject..cctor() + 0x23 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.SchedulableInfoObject.SchedulableInfoObject() + 0xf bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoObjects.newInfoObject(System.Object plgKey = ) + 0xbb bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoObjects.continueUnpack(BusinessObjects.Enterprise.OcaFramework.Oca.InfoStore.info_wire_ob3&#91;&#93; wireObjs = {Length=0x1}) + 0x40a bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoObjects.startUnpack(BusinessObjects.Enterprise.Security.Internal.ISecuritySession session = {BusinessObjects.Enterprise.Security.Internal.SecuritySession}, BusinessObjects.Enterprise.Infostore.IInfoStore infoStore = {BusinessObjects.Enterprise.Infostore.Internal.InfoStore}, BusinessObjects.Enterprise.OcaFramework.Oca.InfoStore.info_wire_ob3&#91;&#93; wireObjs = {Length=0x1}) + 0x9b bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoStore.queryHelper(string query = "SELECT SI_MACHINE, SI_MACHINECHOICE from CI_INFOOBJECTS WHERE SI_ID=2762", BusinessObjects.Enterprise.Infostore.Internal.InfoObjects objs = {BusinessObjects.Enterprise.Infostore.Internal.InfoObjects}) + 0x149 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoStore.Query(string query = "SELECT SI_MACHINE, SI_MACHINECHOICE from CI_INFOOBJECTS WHERE SI_ID=2762") + 0x2f bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnection.initServerSpec(BusinessObjects.Enterprise.OcaFramework.ServerSpec serverSpec = {BusinessObjects.Enterprise.OcaFramework.ServerSpec}) + 0x30d bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnection.init(BusinessObjects.Enterprise.Ras21.IRASConnectionInitService i_initService = <undefined value>) + 0x422 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnection.RASConnection(string i_sServerKind = "dpscacheFullClient", BusinessObjects.Enterprise.Ras21.Messages.GetConnection i_getConnection = {BusinessObjects.Enterprise.Ras21.Messages.GetConnection}, System.IO.Stream i_documentStream = <undefined value>, BusinessObjects.Enterprise.Ras21.IRASConnectionInitService i_initService = <undefined value>, BusinessObjects.Enterprise.Ras21.Serialization.IServerDeserializerFactory i_deserializerFactory = {BusinessObjects.Enterprise.Ras21.RASConnectionFactory.RASConnectionServerSerializationFactory}, BusinessObjects.Enterprise.Ras21.Serialization.IServerSerializerFactory i_serializerFactory = {BusinessObjects.Enterprise.Ras21.RASConnectionFactory.RASConnectionServerSerializationFactory}) + 0x18a bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnectionFactory.getRASConnection(string i_sServerKind = "CrystalEnterprise.FullClient", System.Globalization.CultureInfo i_locale = {System.Globalization.CultureInfo}, BusinessObjects.Enterprise.Security.Internal.ISecuritySession i_secSession = {BusinessObjects.Enterprise.Security.Internal.SecuritySession}, BusinessObjects.Enterprise.Ras21.Messages.GetConnection.DocumentId i_documentId = {BusinessObjects.Enterprise.Ras21.Messages.GetConnection.DocumentId}, System.IO.Stream i_documentStream = <undefined value>, BusinessObjects.Enterprise.Ras21.IRASConnectionInitService i_initService = <undefined value>) + 0x156 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnectionFactory.getRASConnectionObjectId(string i_sServerKind = "CrystalEnterprise.FullClient", System.Globalization.CultureInfo i_locale = {System.Globalization.CultureInfo}, BusinessObjects.Enterprise.Security.Internal.ISecuritySession i_secSession = {BusinessObjects.Enterprise.Security.Internal.SecuritySession}, int i_nObjectId = 0xaca) + 0x108 bytes           businessobjects.reportengine.fc.dll!BusinessObjects.ReportEngine.FC.ras21.XMLviaRAS21Encode.newSession(BusinessObjects.ReportEngine.FC.ras21.RAS21SessionID i_occaSession = {BusinessObjects.ReportEngine.FC.ras21.RAS21SessionID}, string i_sLocale = "en-US", int i_nDocId = 0xaca, string s_iConnID = "1") + 0x107 bytes           businessobjects.reportengine.fc.dll!BusinessObjects.ReportEngine.FC.ras21.RAS21ReportEngineComAdapter.InitRAS21Connection(BusinessObjects.ReportEngine.FC.ras21.RAS21SessionID i_occaSession = {BusinessObjects.ReportEngine.FC.ras21.RAS21SessionID}, string i_sLocale = "", bool i_bNewDoc = false, int i_nDocId = 0xaca, string i_sConnID = "1") + 0x1d bytes           businessobjects.reportengine.fc.dll!BusinessObjects.ReportEngine.FC.ras21.RAS21ReportEngineComAdapter.openDocument(BusinessObjects.ReportEngine.Internal.Utilities.Storage.IStorageManager storageManager = {BusinessObjects.ReportEngine.Internal.Utilities.Storage.ClusterStorageManager}, string sLocale = "", int docID = 0xaca) + 0xde bytes           businessobjects.reportengine.fc.dll!BusinessObjects.ReportEngine.FC.ReportEngineImpl.OpenDocument(int docID = 0xaca) + 0x107 bytes     >     businessobjectinteroperation.dll!BusinessObjectsInteroperation.BusinessObjectsInterop.GetBinaryReportByName(string NameOfTheReport = "DO_Raport", System.IO.Stream StreamForDataBeWritten = {System.Web.HttpResponseStream}, BusinessObjectsInteroperation.BOConfigs BOCfg = {BusinessObjectsInteroperation.BOConfigs}, BusinessObjects.ReportEngine.OutputFormatType OutputFormat = Pdf, System.Collections.Hashtable PromptValues = {Count=0x3}) Line 80 + 0x22 bytes     C#

  • Problem date format

    Hi Guru's
    I have a problem with a field coming from a file upload in my internal table wich should be insert in a system table in date format.
    When i do my test to check if the field has a correct date format I always receive the error: "Valid_to_date is invalid".
    the field in my csv file has this format 02.03.2009.
    I've written this code :
    TYPES: BEGIN OF t_segm2,
       kokrs    TYPE kokrs,
        prctr   TYPE prctr,
        datbi   TYPE datbi,
        datab   TYPE datab,
    END OF t_segm2.
    DATA:
              wa_cepc_segm TYPE t_segm2,
               i_cepc_segm TYPE STANDARD TABLE OF t_segm2,
              it_datatab TYPE STANDARD TABLE OF string,
              wa_datatab TYPE string,
    LOOP AT it_datatab INTO wa_datatab.
        SPLIT wa_datatab at ';' into
                              wa_cepc_segm-kokrs
                              wa_cepc_segm-prctr
                              wa_cepc_segm-datbi
                              wa_cepc_segm-datab.
        CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
          EXPORTING
            date                      = wa_cepc_segm-datbi
          EXCEPTIONS
            plausibility_check_failed = 1
            OTHERS                    = 2.
        IF sy-subrc <> 0.
          WRITE:/ 'Valid To Date invalid'.
        ENDIF.
        append wa_cepc_segm to i_cepc_segm.
        CLEAR wa_cepc_segm.
      endloop.
    Anyone can help me please?
    Regards,
    Mohamed.

    Everything seems fine with the code. I tried it myself and I got strange behaviour.
    I used this code:
    data: datbi TYPE datbi.
    fdate1 = '02.03.2009'.
    concatenate fdate1+6(4) fdate1+3(2) fdate1(2) into datbi.
    CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
          EXPORTING
            date                      = datbi
          EXCEPTIONS
            plausibility_check_failed = 1
            OTHERS                    = 2.
        if sy-subrc ne 0.
          write 'Wrong date'.
    "    else.
    "      write 'Date ok'.
        endif.
    When I leave ELSE block commented, the FM returns sy-subrc = 0 and doesn't display 'Wrong date' message. So this works as we want. But when I debug it, I can clearly see that processing goes inside IF block and tries to write the message out (even thought the condition is not fullfilled). But anyhow the message doens't appear on the screen. Strange.
    Now when I uncomment the ELSE block, the processing seems to work fine. Don't know why it is happening but if we leave entire IF,ELSE it works fine. So try this solution. Everything else works fine.
    Regards
    Marcin
    Right now I tried to see if this IF block really changes some data object using:
    data var type i.
    call fm....
    if sy-subrc ne 0.
       var = 1.
    endif.
    write var.
    And I could see that, thought processing is passed inside the block it doesn't change VAR contents. So it stays 0. But just right after it I run the program again to show it to my collegue and the processsing didn't go inside anymore. It must be something with debugger then. My collegue says once he spent some time investigating the same problem and finally he gave up. What the debugger was showing was different from what it was in fact calculating. Fortunatelly the calculation here doesn't change, just debugger is trying to cheat us showing what he is really NOT doing;)
    Edited by: Marcin Pciak on May 8, 2009 9:31 AM

  • Problem with SQL*Loader and different date formats in the same file

    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    System: AIX 5.3.0.0
    Hello,
    I'm using SQL*Loader to import semi-colon separated values into a table. The files are delivered to us by a data provider who concatenates data from different sources and this results in us having different date formats within the same file. For example:
    ...;2010-12-31;22/11/1932;...
    I load this data using the following lines in the control file:
    EXECUTIONDATE1     TIMESTAMP     NULLIF EXECUTIONDATE1=BLANKS     "TO_DATE(:EXECUTIONDATE1, 'YYYY-MM-DD')",
    DELDOB          TIMESTAMP     NULLIF DELDOB=BLANKS          "TO_DATE(:DELDOB, 'DD/MM/YYYY')",
    The relevant NLS parameters:
    NLS_LANGUAGE=FRENCH
    NLS_DATE_FORMAT=DD/MM/RR
    NLS_DATE_LANGUAGE=FRENCH
    If I load this file as is the values loaded into the table are 31 dec 2010 and 22 nov *2032*, aven though the years are on 4 digits. If I change the NLS_DATE_FORMAT to DD/MM/YYYY then the second date value will be loaded correctly, but the first value will be loaded as 31 dec *2020* !!
    How can I get both date values to load correctly?
    Thanks!
    Sylvain

    This is very strange, after running a few tests I realized that if the year is 19XX then it will get loaded as 2019, and if it is 20XX then it will be 2020. I'm guessing it may have something to do with certain env variables that aren't set up properly because I'm fairly sure my SQL*Loader control file is correct... I'll run more tests :-(

  • 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.!

  • Strange behaviour: two servers on the same port

    Hi!
    I hope this is the right section for this post. I need help about a strange behaviour involving a ServerSocket.
    For my thesis I need to write a program that receives data from a pre-existing DSMS client, filters them and then sends them to a pre-existing DSMS server. And here is my problem: if I try to create a ServerSocket on the same port of the DSMS server, my program throws no exception, and the servers seem running on the same port. This is a behaviour that I'd like to avoid, but I cannot understand what the problem is. Can you help me?
    The source code of the DSMS server can be found here (it's written in C++): http://infolab.stanford.edu/stream/code/stream-0.6.0.tar.gz
    The source code of my server class, instead, is this one:
    import java.io.*;
    import java.net.*;
    public class ThreadGenerator {
         private ServerSocket server;
         public void connect(String servPort, String cHost, String cPort) {
              try {
                   server = new ServerSocket(servPort);
                   System.out.println("SERVER running on port "+servPort);
              } catch (BindException e) {
                   System.out.println("Address already in use!");
              } catch (Exception e) {
                   System.err.println(e);
              try {
                   while(true){
                        Socket client = server.accept();
                        StreamThread T = new StreamThread(client, cHost, cPort);
                        T.start();
              } catch (EOFException e) {
                   System.out.println("Server closed connection!");
              } catch (Exception e) {
                   System.err.println(e);
    }I'm programming on Mac OSX Tiger, with Java 1.5.0.
    Thanks in advance for your help.

    The problem is still happening to me, I tried in this very moment. The code I'm using is the one I posted, and the second server is the one that I linked. I don't think there's anything else to add.
    If you're sure that the problem is not in my code, then it means that it is in the linked server, which partially solves the problem. But I'd like to know, if it's possibile, if there is any other way to check if the port is already in use.

Maybe you are looking for

  • How to randomly show slides in Keynote

    In May Cuztheyrefast posted this question (now archived). "Is there a way to shuffle the order of the slides? I am using Keynote for flashcards but I'm afraid I'll start to memorize the answers by order rather than actually knowing the answer. " This

  • Trouble with Lumia 900 navigation button not worki...

    Hei guys, This afternoon, all of a sudden, without nothing happened, my 3 navigation buttons (back, start and search) on my nokia lumia 900 stopped working. I really can't understand what happened since 2 minutes before the buttons were working perfe

  • Infotype 0045 issue

    Hi all, I am modifying infotype 0045 (loans). In this infotype there is a tab - basic data. In this tab, there is a field end of loan(P0045-DLEND). This field is greyed out by default and the value gets calculated automatically depending on some cond

  • Ajax4Jsf error on h:outputLink

    Hi, I have a jsp page with a datatable and when I click on a row it should take me to a different page. I am hardcoding the page using h:outputLink. Any help is appreciated. <h:outputLink value = "/Myapp/pages/page2.faces" > <h:outputText value="Link

  • Can a iPhone 4 have Siri on it without being jailbroke

    I'm wondering if iphone4 works with Siri in iOS 7.1 or if it just works with the iphone4s?