Script Data Component - System.DateTime.TryParseExact Method not validation date value

Hello
I have Script data component in my data flow task and i am trying to validate whether the date fields has valid date values or not.
So i added below code to validate the date fields
in below code TestDate is datetime and ValidTestDate is datetime as well.
string[] formats = { "MM/dd/yyyy", "MM/d/yyyy", "M/dd/yyyy", "M/d/yyyy"};
DateTime pDateTime;
if (System.DateTime.TryParseExact(Row.TestDate.ToString(), formats, CultureInfo.InvariantCulture, DateTimeStyles.None, out pDateTime)==true)
                Row.ValidTestDate = Row.TestDate;
System.DateTime.TryParseExact is not validating to true even the TestDate is valid.
I have even tried converting the datetime field to DT_DATE but it did not work.
I appreciate any suggestion to accomplish the check whether it is valid date or not.
Regards
Harris

This is because the string value of TestDate does not conform to either of the formats.
Arthur
MyBlog
Twitter

Similar Messages

  • What I've to do if the App Store told me my payment method not valid

    What I've to do if the App Store told me my payment method not valid

    Then contact your bank and find out why the authorization is being refused. 
    Note that debit cards are not accepted in all markets. You need a valid credit card with a billing address in the country of the store in which you're trying to set up an account. You must also be physically present in that country.
    You can not, for example, set up an account in the US or UK store if you are in Russia.

  • BI analysis authorization- checking for not equal to values

    hello,
    the info provider (ZIC_COPA) is having auth. relevant char. are 0COMP_CODE, PLANT, 0SALESORG.
    When i am executing query which is built on ZIC_COPA info provider. It is checking all above charcteristics value. But in RSECADMIN i found that system is checking for not equal to values. For ex. please see below RSECADMIN trace. It is checking not equal to values for PLANT. does anybody know why it is checking NOT PLANT IN values??
    0COMP_CODE
    0PLANT
    0SALESORG
    SQL Format:
    COMP_CODE IN ('1000',,'3200')
    AND NOT PLANT IN ('1000','3200')
    AND SALES
    ORG IN ('1000',','3200',')
    AND TCAACTVT = '03' 
    Note: There is no hardocoding or exclusion values in the query.
    Regards
    Imran
    Edited by: Imran  Mulani on Jun 21, 2009 1:13 PM

    ok

  • To transfer the data Cross the systems why we are not using BAPI Method?

    Hello All,
    To transfer the data Cross the systems why we are not using BAPI Method? why we are using only ALE/IDoc's?

    Hi Naveen,
       Listing down those I know -
       1. Master data is expected to be changed/created less frequestly.
       2. Transactional data is expected to be chnaged/created more frequestly.
       3. Transactions to create/change/display master data do no have message control integration, since you are not supposed to print/fax/mail master data to your partners.
       4. Distribution of master data in generally supposed to happen within Enterprise boundry and typically you will have one central server maintaining master data which will be distributed to multiple downstream operation system (Some thing where MDM fits). So ideally when distributing master data using ALE you will be sending it to multiple systems.
       5. Distributing transactional data PO/SO etc is same as sending fax/print which fits with the requirement of message control.
    Hope this helps,
    Regards,
    Sanjeev

  • ICompanyService.GetGeneralService(System.String) Method Not found error

    Hi,
    When I am running my code in SAP 2007, I am getting following on calling of UDO.
    Method not found: 'SAPbobsCOM.GeneralService SAPbobsCOM.ICompanyService.GetGeneralService(System.String)'
    I could not understand why this error is occuring, although same code in running very well in SAP 8.8 and 8.81.
    Please suggest me a solutions.

    Hi
    sorry it is mistake from me. Check this SAP note regarding GeneralService it is available from SAP Business One 2007 A SP00 PL46 onwards . Please check you PL version
    How to use the GeneralService functionality to access UDOs via DI API.
    Solution
    The GeneralService allows access to User-Defined Objects (UDOs) via the DI API. Using the GeneralService, you can add, update and delete UDOs. This feature was added in SAP Business One 2007 A SP00 PL46.
    The following is an example of how to add data to a UDO. This example relates to a UDO with the following properties:
    Type = Document
    Unique ID = "Ex_1"
    Name = "EX_DOC"
    User-Defined Field = "Field1"
    Child Object Name = "EX_DOC_LINE"
    User-Defined Field (Child Object) = "Property1"
    Use this (VB.NET) code to add data to the UDO:
               Dim oGeneralService As SAPbobsCOM.GeneralService
               Dim oGeneralData As SAPbobsCOM.GeneralData
               Dim oGeneralDataChild As SAPbobsCOM.GeneralData
                 'Get the UDO by referencing the Unique ID (using the CompanyService Object)
               oGeneralService = oCompanyService. GetGeneralService("EX_1")
                         'Create data for new row in UDO - (Document Table)
               oGeneralData = oGeneralService.GetDataInterface(SAPbobsCOM. GeneralServiceDataInterfaces.gsGeneralData)
               oGeneralData.SetProperty("U_Field1", "A")
               'Create data for new row in the UDO Child - (Document Row Table)
          oGeneralDataChild = oGeneralData.Child("EX_DOC_LINE"). Add()
               oGeneralDataChild.SetProperty("U_Property1", "B")
               oGeneralService.Add(oGeneralData)
    See the following Blog for more information and another example:
               "UDO Access via DI API (in PL46)"
               http://www.sdn.sap. com/irj/scn/weblogs?blog=/pub/wlg/13008
    Regards
    Arun

  • ADF_FACES-60003:Component with ID: pt1:cil2 not registered for Active Data.

    When I generate a pdf Reporte using <af:fileDownloadActionListene> and Ireport this erros fires when i click active tab.
    I'm Using Studio Edition Version 11.1.2.3.0:
    pt1 is a <af:pageTemplate>
    cil2 us <af:commandImageLink disabled="#{!bindings.CreateInsertEnc.enabled}" id="cil2"
    <af:commandImageLink id="cil11"
    binding="#{backingBeanScope.BakingDocument.cil11}"
    icon="/Pictures/printer.png"
    shortDesc="Print">
    <af:fileDownloadActionListener method="#{backingBeanScope.BakingCotizar.PrintDoc}"/>
    </af:commandImageLink>
    Error Log:
    java.lang.IllegalStateException: ADF_FACES-60003:Component with ID: pt1:cil2 not registered for Active Data.
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager.unregisterComponent(PageDataUpdateManager.java:600)
         at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Don't work, all iterator have ChaangeEventPolicy: default none.
    And adfc-config.xml has ChaangeEventPolicy unchequed.
    Another suggestion please. I need a solution so fast.

  • Change Own Data - System error: query could not be found

    Hi Experts,
    Please help me on the above issue.
    Change Own data is not working in QA environment. Configuration changes related to Change own data does not prompt for a transport request. I have trasnsported T77WWW_WHO entries to QA.
    Here is the table entry.
    08     /SAPQUERY/HR_XX_PA_ESS     Y ESS_WHOS_WHO GB     SY000000000142     SY000000000143
    I dont have any clue about this issue. No ST22 dump is also generated.
    Thanks in advance.
    Cheers
    Jay

    Critical Error
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
    System error: query could not be found   
      System error: query could not be found:com.sap.pcuigp.xssfpm.java.FPMRuntimeException: System error: query could not be found
         at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:112)
         at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:122)
         at com.sap.xss.hr.cod.FcCodBusinessLogicComp.callRFCGetDetails(FcCodBusinessLogicComp.java:480)
         at com.sap.xss.hr.cod.FcCodBusinessLogicComp.onInit(FcCodBusinessLogicComp.java:228)
         at com.sap.xss.hr.cod.wdp.InternalFcCodBusinessLogicComp.onInit(InternalFcCodBusinessLogicComp.java:512)
         at com.sap.xss.hr.cod.FcCodBusinessLogicCompInterface.onInit(FcCodBusinessLogicCompInterface.java:115)
         at com.sap.xss.hr.cod.wdp.InternalFcCodBusinessLogicCompInterface.onInit(InternalFcCodBusinessLogicCompInterface.java:147)
         at com.sap.xss.hr.cod.wdp.InternalFcCodBusinessLogicCompInterface$External.onInit(InternalFcCodBusinessLogicCompInterface.java:227)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:922)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:891)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.attachComponentToUsage(FPMComponent.java:1084)
         at com.sap.xss.hr.cod.start.VcCodStartComp.onInit(VcCodStartComp.java:196)
         at com.sap.xss.hr.cod.start.wdp.InternalVcCodStartComp.onInit(InternalVcCodStartComp.java:156)
         at com.sap.xss.hr.cod.start.VcCodStartCompInterface.onInit(VcCodStartCompInterface.java:161)
         at com.sap.xss.hr.cod.start.wdp.InternalVcCodStartCompInterface.onInit(InternalVcCodStartCompInterface.java:144)
         at com.sap.xss.hr.cod.start.wdp.InternalVcCodStartCompInterface$External.onInit(InternalVcCodStartCompInterface.java:220)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:869)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:229)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1344)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:356)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:549)
         at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:593)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:865)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

  • L755-S5244 - W7 system repair disc could not be created... unable to parse... XML data. (0x800705B9)

    After creating a backup image of my W7 Toshiba laptop OK, the last step was the option to create a system repair disc. However that returned the following error:
    System repair disc could not be created
    Windows was unable to parse the requested XML data.
    (0x800705B9)
    Note this is *not* the same as "system recovery discs"! I already have a set of those discs which work OK.. What I need is a system repair disc which allows booting into special recovery mode to repair W7, to restore a backup image, etc.
    Note that my computer is working fine. I just need to be able to make a system repair disc in case there are future problems. There always are, eventually.
    In googling this problem, there are many reports of this error but no clear solution. Some of the reported fixes refer to microsoft help/support/social/technet links which no longer exist. I tried one of those suggestions, SFC /SCANNOW, which didn't find any system file errors on my computer. So that's not the cause.
    It may have something to do with the OEM W7 version which Toshiba puts on its laptops such as my L755-S5244(?). It's possible that Toshiba has intentionally or accidentally disabled the normal commands to make a system repair disc in W7. Does anybody know for sure?
    Thanks.

    I did a fair amount of goggling and reading, then... I tried 3 different downloadable boot disks from maximumpcguides.com, spirebyte, and mydigitallife.info. They all work exactly the same. When booting from one of those discs, there are 5 options offered. I had to make text notes (below) because there's no way to make screen images in repair mode.
    1) Startup Repair - apparently works OK, at least it went through the process and found no errors. That's as it should be, because this computer is working fine! My only objective here is to find out what can be done someday when it malfunctions, as all computers do eventually..
    2) System Restore - doesn't work
    big red X: "To use System Restore, you must specify which Windows installation to restore. Restart this computer, select an operating system, and then select System Restore." That makes no sense because I only have one Windows installation! This is an important option. Is there any way to access it when Windows 7 won't start normally?
    3) System Image Recovery - It found the image file I had created previously. But I didn't want to risk it on a properly functioning computer (no reason). So I don't know if it will actually work right... someday when I really need it.
    4) Windows Memory Diagnostic - doesn't work
    "Windows cannot check for memory problems. An error is preventing Windows from checking for memory problems during startup. To run the Windows Memory Diagnostic manually, boot the computer from  the Windows installation disc, and then select Windows Memory Diagnostic from the Windows Boot Manager menu." However there is no such thing as a Windows installation disc on Toshiba OEM W7. Or is there? Also, I can get to Windows Boot Manager by pressing f8 during startup then select Repair Your Computer, but it won't do anything. Again, it requests the Windows installation disc, which I don't have. Then at the end of all the verbiage... "... Status 0xc000000e; Info: The boot selection failed because a required device is inaccessible." It would be nice to run a good memory diagnostic because I just  upgraded from 4G to 8G RAM. Suggestions?
    5) Command Prompt - apparently works OK, at least it listed the directory when I entered "dir".
    I feel that chances would be better if I could somehow get this W7 Toshiba laptop to make its own system repair disc, which goes full circle back to my original query... Can it be fixed to avoid the parse XML data error?

  • Reading TimeStampTZ doesn't not assign System.DateTime.Kind

    I have an issue where I can assign a UTC DateTime value to a record, but ODP.Net doesn't assign the System.DateTime.Kind property as the value is read back from the database. While the tick value is accurate, the kind is marked as Unspecified whereas it should be UTC.
    I believe the bug is in the following location:
    Assembly: Oracle.DataAccess.dll
    Class: Oracle.DataAccess.Types.DateTimeConv
    Method: public static unsafe DateTime GetDateTime(OpoTSValCtx* pValCtx, OracleDbType oraType, bool bCheck)
    This method contains a test that (oraType == OracleDbType.TimeStampTZ) yet it doesn't use the System.DateTime constructor to specify the kind:
    The current implementation is:
    DateTime time = new DateTime(pValCtx.m_year, pValCtx.m_month, pValCtx.m_day, pValCtx.m_hour, pValCtx.m_minute, pValCtx.m_second);
    This line of code is from version 10.2.0.100, but I have also checked 10.2.0.2.21 which has the same problem.
    This would be fixed by using the following constructor (where the type is TimeStampTZ):
    DateTime time = new DateTime(pValCtx.m_year, pValCtx.m_month, pValCtx.m_day, pValCtx.m_hour, pValCtx.m_minute, pValCtx.m_second, System.DateTimeKind.Utc);

    I have an issue where I can assign a UTC DateTime value to a record, but ODP.Net doesn't assign the System.DateTime.Kind property as the value is read back from the database. While the tick value is accurate, the kind is marked as Unspecified whereas it should be UTC.
    I believe the bug is in the following location:
    Assembly: Oracle.DataAccess.dll
    Class: Oracle.DataAccess.Types.DateTimeConv
    Method: public static unsafe DateTime GetDateTime(OpoTSValCtx* pValCtx, OracleDbType oraType, bool bCheck)
    This method contains a test that (oraType == OracleDbType.TimeStampTZ) yet it doesn't use the System.DateTime constructor to specify the kind:
    The current implementation is:
    DateTime time = new DateTime(pValCtx.m_year, pValCtx.m_month, pValCtx.m_day, pValCtx.m_hour, pValCtx.m_minute, pValCtx.m_second);
    This line of code is from version 10.2.0.100, but I have also checked 10.2.0.2.21 which has the same problem.
    This would be fixed by using the following constructor (where the type is TimeStampTZ):
    DateTime time = new DateTime(pValCtx.m_year, pValCtx.m_month, pValCtx.m_day, pValCtx.m_hour, pValCtx.m_minute, pValCtx.m_second, System.DateTimeKind.Utc);

  • In the script date field value not printing in address window

    Hi Abaper's
    We are working for the upgradation project,my issue is:
    we are upgrading from 4.6 to ecc 6.0,the problem is *one from in 4.6 working fine but after upgradation to 6.o in that from in the address window date field value is not printing.in debugging mode i have checked value is coming properly but in the sppol..the date value is not displying.*can you please suggest on this.is required any changes or need to somting?
    Thanks and regards
    durga.K

    Hi,
    Kindly check if the window size is proper.
    Check if the tab settings are fine.
    Regards,
    Ankur Parab

  • Sysmon ActiveX "Relog()" method not working properly

    The "Relog()" method of the Sysmon ActiveX seems not to be working properly. Windows 7 + IE 11 + Sysmon.ocx v. 6.1.7601.17514
    I have a (local) HTML document with an embedded Sysmon (System Monitor Control) ActiveX that has 1 counter added + a log file in TSV format located in a local network SMB Share. When I try to use the "Relog()" method, nothing happens and it
    does not throw an error. However when you pass an invalid parameter to the "FileType" parameter of the method it throws an "unspecified" error. So, below is the code:
    --------------------------------sysmon.htm-------------------------------------------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//BR"><HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft System Monitor">
    </HEAD><BODY onload="myf()">
    <OBJECT ID="x" WIDTH="100%" HEIGHT="100%"
    CLASSID="CLSID:C4D2D8E0-D1DD-11CE-940F-008029004347">
    <PARAM NAME="_Version" VALUE="393219">
    <PARAM NAME="_ExtentX" VALUE="11430">
    <PARAM NAME="_ExtentY" VALUE="8996">
    <PARAM NAME="DisplayType" VALUE="1">
    <PARAM NAME="ReportValueType" VALUE="0">
    <PARAM NAME="MaximumScale" VALUE="100">
    <PARAM NAME="MinimumScale" VALUE="0">
    <PARAM NAME="ShowLegend" VALUE="-1">
    <PARAM NAME="ShowToolbar" VALUE="-1">
    <PARAM NAME="ShowScaleLabels" VALUE="-1">
    <PARAM NAME="ShowHorizontalGrid" VALUE="0">
    <PARAM NAME="ShowVerticalGrid" VALUE="0">
    <PARAM NAME="ShowValueBar" VALUE="-1">
    <PARAM NAME="ManualUpdate" VALUE="0">
    <PARAM NAME="Highlight" VALUE="0">
    <PARAM NAME="ReadOnly" VALUE="0">
    <PARAM NAME="MonitorDuplicateInstances" VALUE="-1">
    <PARAM NAME="UpdateInterval" VALUE="1">
    <PARAM NAME="DisplayFilter" VALUE="1">
    <PARAM NAME="BackColorCtl" VALUE="-2147483633">
    <PARAM NAME="ForeColor" VALUE="-1">
    <PARAM NAME="BackColor" VALUE="-2147483633">
    <PARAM NAME="GridColor" VALUE="8421504">
    <PARAM NAME="TimeBarColor" VALUE="255">
    <PARAM NAME="Appearance" VALUE="-1">
    <PARAM NAME="BorderStyle" VALUE="0">
    <PARAM NAME="NextCounterColor" VALUE="2">
    <PARAM NAME="NextCounterWidth" VALUE="0">
    <PARAM NAME="NextCounterLineStyle" VALUE="0">
    <PARAM NAME="GraphTitle" VALUE="">
    <PARAM NAME="YAxisLabel" VALUE="">
    <PARAM NAME="DataSourceType" VALUE="1">
    <PARAM NAME="SqlDsnName" VALUE="">
    <PARAM NAME="SqlLogSetName" VALUE="">
    <PARAM NAME="LogFileCount" VALUE="1">
    <param name="LogFileName001" Value="\\computer2\sharedf\test6_000010.tsv">
    <PARAM NAME="AmbientFont" VALUE="-1">
    <PARAM NAME="LegendColumnWidths" VALUE="0.110294117647059 0.110294117647059 0.355392156862745 0.149509803921569 0.127450980392157 0.127450980392157 0.186274509803922">
    <PARAM NAME="LegendSortDirection" VALUE="0">
    <PARAM NAME="LegendSortColumn" VALUE="2097272">
    <PARAM NAME="CounterCount" VALUE="1">
    <PARAM NAME="MaximumSamples" VALUE="100">
    <PARAM NAME="SampleCount" VALUE="100">
    <PARAM NAME="SampleIndex" VALUE="16">
    <PARAM NAME="StepNumber" VALUE="15">
    <PARAM NAME="Counter00001.Path" VALUE="\Thread(_Total/_Total)\Elapsed Time">
    <PARAM NAME="Counter00001.Color" VALUE="32768">
    <PARAM NAME="Counter00001.Width" VALUE="1">
    <PARAM NAME="Counter00001.LineStyle" VALUE="0">
    <PARAM NAME="Counter00001.ScaleFactor" VALUE="0">
    <PARAM NAME="Counter00001.Minimum" VALUE="0">
    <PARAM NAME="Counter00001.Maximum" VALUE="45.3125">
    <PARAM NAME="Counter00001.Average" VALUE="3.2354797979798">
    <PARAM NAME="Counter00001.StatisticStatus" VALUE="0">
    <PARAM NAME="Counter00001.Data" VALUE="4.6875 0 0 1.5625 6.25 29.6875 0 1.5625 0 0 31.25 0 0 0 0 0 0 3.125 4.6875 4.6875 0 0 0 0 0 0 0 3.125 45.3125 7.8125 0 1.5625 1.5625 0 0 0 1.5625 28.125 43.75 0 0 0 0 4.6875 0 3.125 3.125 37.5 3.125
    0 1.5625 0 0 0 3.125 3.125 3.125 4.6875 0 0 0 0 0 0 1.5625 3.125 4.6875 0 0 0 0 0 0 0 3.125 3.125 1.5625 0 0 0 0 0 0 3.125 6.25 3.125 0 0 1.5625 0 0 0 1.5625 0 0 0 0 0 0 -1">
    <PARAM NAME="Selected" VALUE="\Thread(_Total/_Total)\Elapsed Time">
    </OBJECT>
    <script>
    function myf()
    x.Relog("c:\\programdata\\test.tsv",5,1);
    </script>
    </BODY>
    </HTML>
    ---------------------------------------------------------end--------------------------------------------------------------
    * The valid values for the sysmon file type parameter are 3,4 and 5. I tried all of them and no error is thrown, but the new log file is also not created, not in the local disk nor in the SMB share which I have full access (including create files of course).
    The TSV log file:
    -----------------------------------6_000010.tsv----------------------------------------------
    "(PDH-TSV 4.0) (Hora oficial do Brasil)(180)" "\Thread(_Total/_Total)\Elapsed Time" "comment"
    "05/16/2014 07:47:57.375" "0" "comment"
    "05/16/2014 07:47:58.390" "0" "comment"
    "05/16/2014 07:47:59.390" "0" "comment"
    The TSV log file is loaded successfully. So, what am I doing incorrectly here?
    How should I use the "Relog()" method ? Sample needed, if possible, please.
    PS: I have also tried renaming the local HTML document to '.hta' just in case a security measure was blocking the method from being executed, but the exact same thing happens.
    PS2: I have already read the MSDN article on the Sysmon ActiveX and the "Relog()" method.
    Thanks.

    I know SysMonFileType for TSV is 4, I just tested the other ones because nothing was happening. When I mean nothing is that the new log file was not being created and no error was being thrown. I got the TSV log code and the HTML document code from Perfmon.
    The script code I created myself learning from MSDN. Sorry, but I didnt fail anywhere, I told I read the documentation :
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa379757(v=vs.85).aspx sorry for not posting the link.
    I just need to know what is wrong with the script portion code, because everything else is doing fine. The log file is read and loaded successfully, but when I try the "Relog()" method passing valid arguments, nothing happens. It is like there was no script
    code in there. Maybe a bug
    Thank you anyway jrv.

  • HTTP/1.1 405 Method Not Allowed error while deploying application in EPMA

    Hi All,
    I have recently installed EPM 11.1.2.1 on a windows 2008 server with SQL Server 2008 database. I created a new HFM application and tried to deploy it, but the deployment gets aborted with the error "HTTP/1.1 405 Method Not Allowed" seen in the deployment log.
    Any clue as to what might be the issue? Thanks in advance.

    "405 Method Not Allowed" is most likely an IIS configuration issue. Please try reboot and try to redeploy again.
    You need to check and ensure that both Roles and IIS components are installed correctly and that the HFM is functioning OK via IIS when browsing through it.
    Also, by default IIS does not install ASP server scripting roles. To correct this by adding the ASP role in IIS
    "If you are using Windows 2008, you must install ASP Role Services before installing EPM System products that require IIS. If you are using Windows 2008, you must install .NET 3.5 before installation of Data Relationship Management.
    If IIS is chosen as the Web server during configuration, you must allow all unknown ISAPI extensions through the Internet Information Services Manager."
    Please refer "Oracle Hyperion Enterprise Performance Management System Installation Start Here" guide page no: 64
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/epm_install_start_here_11121.pdfhttp://download.oracle.com/docs/cd/E17236_01/epm.1112/epm_install_start_here_11121.pdf

  • Getter & Setter Method not getting called for a field enhanced through AET

    Hello,
    I am new to SAP CRM 7.0 and working on a requirement.
    A Z-field was added by our functional guy in CRM 7.0 WebGui through AET in the 'Create Opportunity' transaction (Header data).
    Now the requirement is, as soon as the opportunity is created through the WebGui, I should post a document in R/3 and paste that document number back to the enhanced Z-field in opportunity.
    Work done by me:
    I pressed F2 on the enhanced Z-field in the WebGui screen and took the details of view, component name etc. After this I went to normal SAP CRM system and open tcode "BSP_WD_CMPWB", located the corresponding view "BT111H_OPPT/Details" and right clicked & enhanced the same.
    Then I opened the structure of this view, expanded context node, located context "BTOPPORTH" and inside this, located my Z-attribute. Now right clicked on the Z-attribute & selected the option "Generate SETTER & GETTER Methods" and these were generated successfully.
    Problem:
    The problem is even after putting external break points in these methods, these methods are not getting called while creating, modifying & displaying the Opportunity in WebGui.
    I hope that for the requirements that I have, I have to do the coding in "Getter & Setter" methods. But since these are not getting called, I am unable to proceed.
    Please help/suggest how to achieve this.
    Thanks in anticipation.
    Best Regards,
    Rahul Malani

    Hi,
    If you can see the field in UI and still get_ method is not being triggered then try to regenerate these methods. If it still doesn't work then please look for SAP notes or raise an OSS.
    There should be some note for the issue you faced.
    please refer:
    Help Needed immediately - AET getter setter methods not getting triggered
    Regards,
    BJ

  • Action method not called in Backing Bean

    I am using <x:inputFileUpload> tag inside my jsp page. I am trying to call action method when clicking button, but action method not called.
    My jsp page:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
    <html>
         <head>
              <title>File upload Test</title>
         </head>
         <body>
              <f:view>
                   <h:form id="form1" enctype="multipart/form-data">
                        <h:messages id="asdghsda"/>          
                        <h:outputText value="This is file upload page functionlaity POC" />                                   
                        <h:inputText value="#{fileUploadBean.textField}" />
                        <x:inputFileUpload id="myFileId" value="#{fileUploadBean.myFile}" storage="file" required="true"/>                    
                        <h:commandButton action="#{fileUploadBean.storeFile}" value="Enter here" />                    
                        <h:commandLink value="Clicl Here!!" action="#{fileUploadBean.storeFile}"></h:commandLink>
                   </h:form>               
              </f:view>
         </body>     
    </html>
    My backing bean:
    package com.beans;
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import org.apache.log4j.Logger;
    import org.apache.myfaces.custom.fileupload.UploadedFile;
    public class FileUploadBean {     
         private static Logger logger = Logger.getLogger(FileUploadBean.class.getName());
         private String textField;
         private UploadedFile myFile;
         public UploadedFile getMyFile() {
              logger.info("inside get method");
         return myFile;
         public void setMyFile(UploadedFile myFile) {
              logger.info("inside set method");
              this.myFile = myFile;
         public void storeFile(){          
              logger.info("Inside the storeFile method");
              logger.info("The text field value: " + getTextField());
              try {
                   InputStream in = new BufferedInputStream(myFile.getInputStream());
                   logger.info("The string is: " + in.read());
                   System.out.println(in.read());
                   File f = new File("D:\\share\\sample.txt");               
                   OutputStream out = new FileOutputStream(f);
                   out.write(in.read());
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              logger.info("Exit from the storeFile method");
         public String getTextField() {
              return textField;
         public void setTextField(String textField) {
              this.textField = textField;
    My web.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>MyJSFProject</display-name>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <filter>
    <filter-name>ExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>10m</param-value>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <servlet-name>FacesServlet</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    Can someone help me on this? I need urgently.

    One straight and simple answer which i can give you method associated to action attributes always returns a java.lang.String Object.
    REF :
    action:
    =====
    If specified as a string: Directly specifies an outcome used by the navigation handler to determine the JSF page to load next as a result of activating the button or link If specified as a method binding: The method has this signature: String methodName(); the string represents the outcome
    source : http://horstmann.com/corejsf/jsf-tags.html#Table4_15
    therefore
    change
    public void storeFile(){
    logger.info("Inside the storeFile method");
    logger.info("The text field value: " + getTextField());
    try {
    InputStream in = new BufferedInputStream(myFile.getInputStream());
    logger.info("The string is: " + in.read());
    System.out.println(in.read());
    File f = new File("D:\\share\\sample.txt");
    OutputStream out = new FileOutputStream(f);
    out.write(in.read());
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    logger.info("Exit from the storeFile method");
    }to
    public String storeFile(){
    logger.info("Inside the storeFile method");
    logger.info("The text field value: " + getTextField());
    try {
    InputStream in = new BufferedInputStream(myFile.getInputStream());
    logger.info("The string is: " + in.read());
    System.out.println(in.read());
    File f = new File("D:\\share\\sample.txt");
    OutputStream out = new FileOutputStream(f);
    out.write(in.read());
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    logger.info("Exit from the storeFile method");
    return "success";
    }else where you can make use of actionlistener property in the following senario.
    but the method signature has to be void storeFile(ActionEvent ae)
    and could be use like
    <h:commandButton actionlistener="#{fileUploadBean.storeFile}" action="success" value="SUBMIT" /> Hope that might help :)
    REGARDS,
    RaHuL

  • POST to SharePoint Online REST API - 405 Method Not Allowed

    Good afternoon,
    I am writing C# with the intention of uploading a file to a document library using the REST API.
    The code must run on an on-premise machine and the target SharePoint site is in SharePoint Online (Office 365 E-plan).  It has to handle large files, so CSOM is not an option.
    I have successfully tested a few different "get" messages, so I believe the authentication part is working.  However, so far I have no such luck with POST.
    In fiddler, my most recent attempt looks like this (I redacted the parts in <> because I'm not sure if they are sensitive somehow):
    POST http://org.sharepoint.com/sites/site/_api/web/GetFolderByServerRelativeUrl('Documents')/Files/add(url='test2.txt',overwrite=true) HTTP/1.1
    Accept: application/json;odata=verbose
    X-RequestDigest: <digest value>,15 Jan 2014 17:48:49 -0000
    BinaryStringRequestBody: true
    Host: org.sharepoint.com
    Content-Length: 6
    Expect: 100-continue
    stuff!
    Seems like it should work, but the result is "301 Moved Permanently."  This request is immediately followed by this one: 
    GET https://org.sharepoint.com/sites/site/_api/web/GetFolderByServerRelativeUrl('Documents')/Files/add(url='test2.txt',overwrite=true) HTTP/1.1
    Accept: application/json;odata=verbose
    X-RequestDigest: <formdigest>,15 Jan 2014 18:01:51 -0000
    BinaryStringRequestBody: true
    Host: org.sharepoint.com
    Cookie: FedAuth=<cookiestuff>; rtFA=<cookiestuff>
    Response:
    HTTP/1.1 405 Method Not Allowed
    Cache-Control: private, max-age=0
    Transfer-Encoding: chunked
    Content-Type: application/json;odata=verbose;charset=utf-8
    Expires: Tue, 31 Dec 2013 18:01:52 GMT
    Last-Modified: Wed, 15 Jan 2014 18:01:52 GMT
    Server: Microsoft-IIS/7.5
    X-SharePointHealthScore: 0
    X-SP-SERVERSTATE: ReadOnly=0
    SPClientServiceRequestDuration: 25
    X-AspNet-Version: 4.0.30319
    SPRequestGuid: dd936a9c-f4fc-a05d-27e1-2c948f0eb575
    request-id: dd936a9c-f4fc-a05d-27e1-2c948f0eb575
    X-FRAME-OPTIONS: SAMEORIGIN
    X-Powered-By: ASP.NET
    MicrosoftSharePointTeamServices: 16.0.0.2308
    X-Content-Type-Options: nosniff
    X-MS-InvokeApp: 1; RequireReadOnly
    P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
    Date: Wed, 15 Jan 2014 18:01:51 GMT
    128
    {"error":{"code":"-1, Microsoft.SharePoint.Client.ClientServiceException","message":{"lang":"en-US","value":"The HTTP method 'GET' cannot be used to access the resource 'Add'. The operation type of the resource is specified as 'Default'. Please use correct HTTP method to invoke the resource."}}}
    0
    So it looks to me as if my request is being redirected to the same address but with a "GET" method rather than "POST," resulting in the 405 Method Not Allowed error because "add" needs POST.
    I appreciate any insight you can offer.

    Mkay, perhaps I should rephrase:  
    I want to synchronize a SharePoint Online library with a local file share.  There are a large quantity of files, and many of them are large (actually it's all too large to fit in one SharePoint Online site collection due to the 100gb limit, but I'll
    deal with that separately).
    The approach I was working on here was to create a C# method basically like this:  UploadFile(File, Destination, username, password).  I would use this method in the script component of an SSIS package which would run on a server and push the files
    up to SPO, but right now I'm just testing it as a console application.
    I got the CSOM methods working, but obviously that won't work because the files are too large.  Above is what's happening with the REST version.
    Can anyone see what's wrong with my REST calls - why is it being redirected as a GET request?  Is this even possible?

Maybe you are looking for

  • Two persons with the same screen name?

    Am I seeing things, or here we have two persons with the same screen name? http://forums.adobe.com/people/Federico_Plat%C3%B3n http://forums.adobe.com/people/federico%20platon (Yes, I know it's really two identities belonging to the same person, but

  • Display Payment Terms in MIRO and FB60

    FI Gurus, How can I restrict A/P clerks to only view payment terms when entering an invoice thru FB60 or MIRO. Thank You for your help,

  • Cisco Desktop Agent\Supervisor & Windows 7 Compatibility

    We are on Customer Response Solutions V 5.0(2).  In order to install the Desktop Agent on Windows 7 we need to install DA v 7.5(8).  We have been told by our VAR that we need to upgrade not only our CRA but also our CallManager to verison 8.  This is

  • About Duplicate entries

    Hi experts, In internal table i have many account numbers. There are some duplicate entries. i have removed all the duplicates using the following code. but i cannot remove all the duplicate entries. certain scenarios i should have duplicate elements

  • FAQ: Common Lightroom workflows, or How do I get started with this program?

    Starting to use a new application can be intimidating, especially one as sophisticated as Lightroom. Here is a handy list of resources to help you with your Lightroom workflow: Getting Started Tutorials 10 Things Beginners Want to Know (Video, 36:28)