Issue in running GTC having Customized & native query

Hi Experts,
We are creating "OIM 9.1 - OIM11g SYNC GTC". When Scheduled task is run, this GTC should be updating the records of OIM11g by taking the data from OIM 9.1 DB.
We have used the following connection parameters:
Specify Parameter Values Change
Database Driver oracle.jdbc.driver.OracleDriver
Database URL jdbc:oracle:thin:@***************:1521:oimusdb
Database User ID oimdev
Database Password ********
Customized Query (USRIMPORT.USR_EMP_TYPE='Employee' or USRIMPORT.USR_EMP_TYPE='Contractor') and USRIMPORT.USR_STATUS<>'Deleted'
Use Native Query Yes
Connection Properties
Parent Table/View Name USRIMPORT
Child Table/View Names
Unique Attribute USR_KEY
Timestamp Attribute USR_CREATED
Database Date format
Batch Size All
Stop Reconciliation Threshold None
Stop Threshold Minimum Records None
Source Date Format yyyy/MM/dd HH:mm:ss z
Reconcile Deletion of Multivalued Attribute Data No
Reconciliation Type Incremental
While running the GTC we are getting following error in logs:
[XELLERATE.GC.FRAMEWORKRECONCILIATION] [tid: OIMQuartzScheduler_Worker-4] [userId: oiminternal] [ecid: 0000JIbnbxk7u1ADrb4ioY1F10jR000002,0] [APP: oim#11.1.1.3.0] Reconciliation Encountered error: [[
com.thortech.xl.gc.exception.ProviderException: For non-native customized query, please use & for AND and | for OR.
at com.thortech.xl.gc.impl.recon.DBReconTransportProvider.getCustomizedQueryCondition(Unknown Source)
For resolving the above issue, we have tried following combinations: (WHICH ARE NOT WORKING TILL NOW)
1. Scenario 1:
query: (USRIMPORT.USR_EMP_TYPE='Employee' | USRIMPORT.USR_EMP_TYPE='Contractor') & (USRIMPORT.USR_STATUS='Disabled' | 'USRIMPORT.USR_STATUS='Active')
USE NATIVE QUERY = 'NO'
ERROR: [XELLERATE.GC.FRAMEWORKRECONCILIATION] [tid: OIMQuartzScheduler_Worker-4] [userId: oiminternal] [ecid: 0000JIbnbxk7u1ADrb4ioY1F10jR000002,0] [APP: oim#11.1.1.3.0] Reconciliation Encountered error: [[
com.thortech.xl.gc.exception.ProviderException: For non-native customized query, please use & for AND and | for OR.
at com.thortech.xl.gc.impl.recon.DBReconTransportProvider.getCustomizedQueryCondition(Unknown Source)
2. Scenario 2:
query- (USRIMPORT.USR_EMP_TYPE='Employee' OR USRIMPORT.USR_EMP_TYPE='Contractor') AND (USRIMPORT.USR_STATUS='Disabled' OR 'USRIMPORT.USR_STATUS='Active')
USE NATIVE QUERY ='yes'
ERROR:
class/Method: DBFacade/getRecord encounter some problems: ORA-00920: invalid relational operator[[
java.sql.SQLSyntaxErrorException: ORA-00920: invalid relational operator
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
3. Scenario 3:
query- (USRIMPORT.USR_EMP_TYPE='Employee' OR USRIMPORT.USR_EMP_TYPE='Contractor') AND (USRIMPORT.USR_STATUS='Disabled' OR 'USRIMPORT.USR_STATUS='Active')
USE NATIVE QUERY='NO'
ERROR:
ERROR] [] [XELLERATE.GC.FRAMEWORKRECONCILIATION] [tid: OIMQuartzScheduler_Worker-6] [userId: oiminternal] [ecid: 0000JIbnbxk7u1ADrb4ioY1F10jR000002,0] [APP: oim#11.1.1.3.0] Reconciliation Encountered error: [[
com.thortech.xl.gc.exception.ProviderException: For non-native customized query, please use & for AND and | for OR.
at com.thortech.xl.gc.impl.recon.DBReconTransportProvider.getCustomizedQueryCondition(Unknown Source)
at com.thortech.xl.gc.impl.recon.DBReconTransportProvider.getQueryCondition(Unknown Source)
at com.thortech.xl.gc.impl.recon.DBReconTransportProvider.getFirstPage(Unknown Source)
Please guide me on the same.

Hi,
Thanks for this but i have done as per this document. while running i came to know that there are 2 executable programs in the same name. so i need to remove the one executable program then i run this concurrent program to confirm it. that really we achieved it or not.
Awaiting for your reply
Thanks
M.K.Thamaraiselvan.

Similar Messages

  • How can I use the Rownum/Customized SQL query in a Mapping?

    Hi,
    * I need to use a Rownum for populating one of the target field? How to create a mapping with Rownum?
    * How can I use an Dual table in OWB mapping?
    * Can I write Customized SQL query in OWB? How can I achieve this in a Mapping?
    Thanks in Advance
    Kishan

    Hi Niels,
    As I'm sure you know, the conundrum is that Reports doesn't know how many total pages there will be in the report until it is all done formatting, which is too late for your needs. So, one classical solution to this problem is to run the report twice, storing the total number of pages in the database using a format trigger, and throwing away the output from the first run when you don't know the total number of pages.
    Alternatively, you could define a report layout so that the number of pages in the output is completely predictable based upon, say, the number of rows in the main query. E.g., set a limit of one, two, ... rows per page, and then you'll know how many pages there will be simply because you can count the rows in a separate query.
    Hope this helps...
    regards,
    Stewart

  • Issue on running a java application on tomcat 6.0.43 with error filter mappings

    Hi ,
    I am new to Java.
    I am facing an issue on running J2EE application in Tomcat Server 6.0.43, I am getting the below error for which 404 page is displayed.
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\CapgeminiScripts\Support Tools\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jre6\bin;;.
    Jan 27, 2015 4:21:57 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:gui' did not find a matching property.
    Jan 27, 2015 4:21:57 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 420 ms
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.43
    Jan 27, 2015 4:21:57 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(D:\Users\sparipoo\workspace_KTW\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\gui\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Jan 27, 2015 4:21:57 PM org.apache.tomcat.util.digester.Digester endElement
    SEVERE: End event threw exception
    java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:928)
      at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192)
      at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
      at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1158)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)
      at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4616)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> /exportHandler/*.jsp in filter mapping
      at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2531)
      ... 37 more
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Parse error in application web.xml file at jndi:/localhost/gui/WEB-INF/web.xml
    java.lang.IllegalArgumentException: Invalid <url-pattern> /exportHandler/*.jsp in filter mapping
      at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2839)
      at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2865)
      at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1161)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)
      at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4616)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> /exportHandler/*.jsp in filter mapping
      at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2531)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:928)
      at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192)
      at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
      at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1158)
      ... 29 more
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Occurred at line 27 column 20
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.ContextConfig start
    SEVERE: Marking this application unavailable due to previous error(s)
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/gui] startup failed due to previous errors
    Jan 27, 2015 4:21:57 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jan 27, 2015 4:21:57 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jan 27, 2015 4:21:57 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/10  config=null
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 607 ms
    Please find the web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>gui</display-name>
      <error-page>
        <error-code>500</error-code>
        <location>/errorpage.jsp</location>
      </error-page>
      <error-page>
        <error-code>404</error-code>
        <location>/errorpage.jsp</location>
      </error-page>
      <filter>
        <filter-name>exportHandler</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>exportHandler</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>exportHandler</filter-name>
        <url-pattern>/exportHandler/*.jsp</url-pattern>
      </filter-mapping>
       <filter>
        <filter-name>importHandler</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>importHandler</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>importHandler</filter-name>
        <url-pattern>/importHandler/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>importMonitor</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>importMonitor</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>importMonitor</filter-name>
        <url-pattern>/importMonitor/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>notificationHandler</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>notificationHandler</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>notificationHandler</filter-name>
        <url-pattern>/notificationHandler/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>npAgreement</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>npAgreement</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>npAgreement</filter-name>
        <url-pattern>/npAgreement/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>numberSearch</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>numberSearch</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>numberSearch</filter-name>
        <url-pattern>/numberSearch/*.jsp</url-pattern>
      </filter-mapping>
       <filter>
        <filter-name>shared</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>shared</param-value>
        </init-param>
        </filter>
      <filter-mapping>
        <filter-name>shared</filter-name>
        <url-pattern>/shared/*.jsp</url-pattern>
      </filter-mapping>
      <servlet>
        <servlet-name>Login</servlet-name>
        <servlet-class>security.SecurityServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>Login</servlet-name>
        <url-pattern>/login</url-pattern>
      </servlet-mapping>
    <resource-ref>
        <description>DB Connection</description>
        <res-ref-name>ds/NPAS</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>
      <session-config>
        <session-timeout>480</session-timeout>
      </session-config> 
      <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
      </mime-mapping>
      <welcome-file-list>
        <welcome-file>login.jsp</welcome-file>
        <welcome-file>sample.jsp</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
    </web-app>
    I don't understand as to why this error is appearing. For easy purpose marking the error part BOLD.
    Please help me out if there is any solution for the same.
    Regards,
    Sirisha

    nies out there right now that are offering all kinds of policies that are no doubt great and beneficial, it can also be confusing and overwhelming.
    https://plus.google.com/communities/103681647604159596708
    https://plus.google.com/communities/103681647604159596708
    https://plus.google.com/communities/103681647604159596708
    http://plus.google.com/communities/103681647604159596708
    http://plus.google.com/communities/103681647604159596708
    http://plus.google.com/communities/103681647604159596708
    https://plus.google.com/communities/103681647604159596708?hl=en
    https://plus.google.com/communities/103681647604159596708?hl=en
    https://plus.google.com/communities/103681647604159596708?hl=en

  • DME file issue: Payment run for Customers

    Hi Gurus,
    Please help me in the following problem.
    I have done the configurations for automatic collection/refund using F110 for customers in our ECC 6 system. Iu2019m having a requirement as below.
    1. Singular payments to be made for each customer transaction.  Have done that by checking u2018Singular paymentsu2019 check box in customer master data.
    2. All payments should be collected in DME file at customer level even though the payments are multiple.   have done that by customizing the RFFOGB_T program.
    3. Configurations are done for incoming (Receivables) and outgoing payments (refunds) in SAP and working fine.
    Now the problem is, there is a requirement to net-off the monetary value of a customer in DME file i.e. if a customer having debits and credits then we need to net off the amounts and check whether itu2019s an incoming or outgoing payment to that customer. I have done the code changes for this requirement as well and it is working perfectly fine, however DME file produces 2 CONTRA lines one as debit to bank account and another as Credit to bank account (provided I have 2 customers in a run where one customer ends up in net debit balance, and another customer ends up with net credit balance). Our Bank doesn't accept more than one CONTRA in a single DME file.
    Example scenario:
    Customer1
    Booking 1  -> 400 (Dr) & 200 (Cr)
    Booking 2  -> 300 (Dr) & 100 (Cr)
    Customer2
    Booking 3 -> 100 (Dr) & 300 (Cr)
    Currently If I run the payment run by having both incoming and outgoing payment methods, then my DME file will result as below
    Customer 1 -> Dr 400
    Customer 2 -> Cr 200
    Bank account -> Cr 200
    However our bank is not accepting the above DME since there are debits as well as credit data records in the same file.
    Currently we are going with 2 separate payment runs, one for incoming and another for outgoing by this I could able to produce 2 DME files as below for the above customer bookings.
    Payment run 1:
    DME 1:
    Customer 1 -> Dr 700
    Customer 2 -> Dr 100
    Bank account -> Cr 800
    Payment run 2:
    DME 2:
    Customer 1 -> Cr 300
    Customer 2 -> Cr 300
    Bank account -> Dr 600
    Both files are being accepted by Bank, however business is not agreeing this since for every customer transaction bank charges client. (There will be 2 transaction for same customer in the same day)
    Anybody encountered the same problem? I need some suggestion on how to produce 2 DME files in a single payment run, one having only net debit balance customers and another having only net credit balance customers, so that on a particular payment run a customer will have only one transaction going into bank either Credit or Debit. Basically I need to produce DME files as below for the above customer bookings
    Payment Run 1:
    DME 1:
    Customer 1 -> Dr 400
    Bank account -> Cr 400
    DME 2:
    Customer 2 -> Cr 200
    Bank account -> Dr 200
    Please help.

    Client has a difft scenario.
    They pay to the customers for warranty and incentives. 2 ways to pay to the customer: generating payment run F110 within AR and the other being F110 from AP where all the customer open items are closed and sent to AP for payment using a custom program.
    The problem with this is they have two interfaces each from AP and AR and aslo a custom program.
    Now, solution is to pay all customers thru AP by setting each customer as vendor so that all the open items are picked in the payment run.
    Next solution is to have single interface but paymentruns seperately from AR and AP. Both would send the files differently to Bank when paymnt run executed. Concern here is when both Ar and AP send files will the interface be able to handle it like 2 difft files or should there be any consolidation kind of thing.
    Another question is, do we have to set up all customers as vendors in order to pay to the customer thru AP. There is customer accounts field where range of customer accounts can be added. Just by adding customer accounts, does it pick up the items for payment.
    Please reply.
    Satya

  • Any known issue about running Swing application in WTS?

    *{color:#0000ff}Is there any known issue about running Swing Application in Windows Terminal Server?{color}*
    It is started using JWS from internet (I mean, it checks if there is an avaiable update and updates or just fun).
    _*{color:#800000}+The problem is that just one machine can open the application at the same time+*_
    _*{color}*_
    *{color:#666699}Is there any config in java or jws to run properly several instances of the application (terminal clients)?{color}*
    Edited by: Franzisk on Sep 24, 2007 6:16 PM

    876587 wrote:
    ... and that cause the other threads cannot access the JNI. The same application works fine on other Solaris 10 machines.
    Different environments mean just that. So something could be causing it outside java.
    Additionally if anything at all is different in the execution data, such as even a name having a different size, then it would change the execution path.
    Which would cause a problem in the JNI code to manifest itself on only one box. Probably isn't a pointer bug but all sorts of odd behavior can result from that.

  • Report running very slow compared to Query Analyzer - high TimeDataRetrieval

    Hi,
    I have a report in SQL Reporting Services 2005 which calls a stored proc and the report takes a very long time to run and sometimes returns zero records. But when i run the stored proc in query analyzer it takes about 4 seconds!!
    I have checked the execution log on the RS using the below sql:
    Code Snippet
    use ReportServer
    Select * from ExecutionLog with (nolock) order by TimeStart DESC
    It shows that i have a large amount of time for the dataretrieval (601309ms, about 10mins) and does not return any records most likely because of a query timeout:
    TimeDataRetrieval  TimeProcessing  TimeRendering Source Status         ByteCount RowCount
      601309                      2227                     3                         1            rsSuccess 4916           0
    The weird thing is that when i run it in query analyzer, i get about 400 records in 4 seconds !!
    I dont understand what RS is doing to take up so much time like this to retrieve data.
    The report is very simple - it basically returns the records straight out into a table.
    The only thing I somewhat suspected was a parameter data type conflict between RS and SQL, specifically dates. I have a start and end date parameter in the report - i tried specifying this as date and string to see if it made any difference but it didn't.
    Any help would be greatly appreciated.

    Hi Mark,
    I didn't say it was an issue of parameter sniffing, and I didn't point you towards the good article about that <s>. I asked you whether you had read the article, described to you earlier in the thread.
    What I said was that it might be an issue of appropriate and dynamic query optimization, versus a cached query plan.  Parameter sniffing is only one of many ways that SQL Server tries to figure out how to optimize a query.  I thought the article did a good job of discussing some of what goes on during this process, and that by absorbing that you could think of ways to handle the wider issue that would be appropriate to your code.  I also pointed you to a thread in which I discussed this in more detail.
    While there are truly many issues with the date controls in the default parameter interface and how they behave, I don't think that what you're experiencing with the date format is implicated in the performance issue.  I guess it *might* be if (say) there is a non-default param value in your proc but your report parameter allows nulls. 
    Let's say the report server database has a different date default than your production database in your system. I have never sat down and tested this scenario and I guess it might cause problems, So we'll look at that first. 
    Whether the date format is at fault is really easy to prove one way or the other, and once proven can be pretty easy to fix:
    Create a test parameter that is of string type.  SQL Server is really good about dynamic conversion of string dates to date types as you probably know.
    place values (formatted however you want) into this version of the parameter instead of your date control parameter.  Use valid dates, in both formats.
    Does your performance change?
    Do you get the right results but bad performance with US format date strings versus right results with good performance with AU date values?
    Do you get the WRONG results with US format date strings, or with AU date strings?
    Try additional permutations involving casting/converting in your proc.
    FWIW, go ahead in the Query Analyzer and put the SAME values you see in the log into your tests there (in US format, I mean).  Do you get the CORRECT results?  Does performance change?  Hold this thought and see below.
    Another thing you can do is look at the query plan as presented by the Query Analyzer when you present the arguments different ways.  See #7 above -- try presenting the date in different formats.  Does the plan show the same path and the same indexes in use each time, or are some not possible because of the way the date has to be converted?  When this happens, the issue is usually that the conversion must be done for each line compared in the filter.  You can fix this really easily in most cases by cast/convert in the procedure so that your SELECT line is only doing that work once. 
    If the plans are different, and perhaps the indexes used are different and you *can't* fix it by fixing the date before the SELECT, do you need to add an index, or perhaps rebuild one?
    Moving on from the date format, as I said before it may be really important NOT to go by your interactive Query Analyzer performance because what you do there may not be used by SQL Server in determining a query plan to cache and re-use.  In case you haven't read the other discussion that I pointed you to at (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1827775&SiteID=1), think about using RECOMPILE or other options that will force a more dynamic investigation of the query.
     >L<

  • To find last run date of custom concurrent program in oracle apps

    Hello Exports,
    Can you pls tell me how to find last run date of custom concurrent program in oracle apps.( thr Backend query )
    Thanks in advance,
    Edited by: 981527 on Mar 7, 2013 3:01 AM

    try the below:
    select fcp.user_concurrent_program_name
    ,fcr.request_date
    ,fu.user_name
    ,fcr.actual_start_date
    ,fcr.actual_completion_date
    ,fcr.phase_code
    ,fcr.status_code
    ,fcr.argument1
    ,fcr.argument2
    ,fcr.argument3
    from fnd_concurrent_programs_vl fcp
    ,fnd_concurrent_requests fcr
    ,fnd_user fu
    where fcp.user_concurrent_program_name like 'Payroll Run'
    and fcp.concurrent_program_id = fcr.concurrent_program_id
    and fcr.requested_by = fu.user_id
    order by fcr.actual_completion_date desc

  • Aggregate function in native query (EJB 3.0)

    How do you run a aggregate function in a native query? I have a particular use case, for reporting purposes, where the result set is too large to fetch the actual CMP collection, thus I need to execute a native count/avg select. I want some thing like,
    Integer totalRecords = (Integer)
           em.createNativeQuery("select count(*) from records").getSingleResult();

    Oracle is intelligent enough to use index only if query result filtering is based on it and result set is less than 5% of the total data set.Sorry to be blunt but that 5% stuff is nonsense.
    Here since the index column is not used in the WHERE clause, oracle performs full table scan.That's not true either. Under the right circumstances the optimizer can use the index, even without a WHERE clause in the query:
    SQL> create table t as select * from dba_objects where object_type is not null;
    Table created.
    SQL> alter table t modify object_type not null;
    Table altered.
    SQL> create index t_idx on t(object_type);
    Index created.
    SQL> explain plan for
      2  select object_type, count(*) from t group by object_type;
    Explained.
    | Id  | Operation             | Name  | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT      |       |    44 |   396 |    60   (7)| 00:00:01 |
    |   1 |  HASH GROUP BY        |       |    44 |   396 |    60   (7)| 00:00:01 |
    |   2 |   INDEX FAST FULL SCAN| T_IDX | 72474 |   636K|    57   (2)| 00:00:01 |
    -------------------------------------------------------------------------------With the OP's query, it (apparently) can not be satisfied by using only the index.
    WHERE TO_CHAR(COL) = TO_CHAR(COL)I don't even know what this means. Usually if you perform a function on an indexed column, the optimizer will not use the index (unless of course it's an fbi).

  • Parameter passing to custom SQL query using PL/SQL FUNCTION

    Hi
    In order to pass a parameter to the query in custom folder of a business area I created a function and mapped it to the Custome query using Discoverer Desktop. There is no error in mapping as the system does not throw any error. When I am inputting the Parameter for the input values everytime the query doesnot return any rows.
    Can anybody help in this regard

    Hi,
    I need to take the request Id as input from the user and then fetch only the data pertaining to that requet Id. As a lot of complex joins are involved I need to pass request id as parameter to the custome folder.
    The package i greated:
    CREATE OR REPLACE PACKAGE SETPARAM
    AS
    param1 varchar2(25);
    param2 varchar2(25);
    FUNCTION SET_PARAM1(p1 IN varchar2) RETURN NUMBER ;
    FUNCTION GET_PARAM1 RETURN varchar2;
    END SETPARAM;
    CREATE OR REPLACE PACKAGE BODY SETPARAM AS
    FUNCTION SET_PARAM1(p1 IN varchar2) RETURN NUMBER IS
    BEGIN
    fnd_client_info.set_org_context('138');
    param1 := p1;
    dbms_output.put_line(param1);
    RETURN 1;
    END;
    FUNCTION GET_PARAM1 RETURN varchar2 AS
    BEGIN
    RETURN param1;
    END;
    END SETPARAM;
    I registered the set_param1 function as a pl/sql function in discoverer admin.
    This function is called on the condition associated with the parameter in Discoverer Desktop when i run the report.
    In the custom folder query i have this piece in the where clause
    WHERE tnfo.request_id = NVL(APPS.SETPARAM.GET_PARAM1,7383588)
    And everytime i get the data pertaining to request id =7383588,
    Please suggest where i went wrong
    thanks
    Ashwini

  • Execute custom SQL query in OIM11g

    Hi,
    Can you please provide me some java code snippet to execute a custom sql query and also to get db connection to execute this query in OIM 11g. I am going to run this query in an adapter.
    Thanks a lot for ur help.
    Mike

    Hey Mike,
    Use the below sample code to get db connection and then to execute a query in OIM11g.
    String query = "SELECT UD_ADUSER_EMAIL FROM UD_ADUSER WHERE upper(UD_ADUSER_UID) like '%TESTU%'";
    Connection con = Platform.getOperationalDS().getConnection();
    PreparedStatement preparedStatement = con.prepareStatement(query);
    ResultSet resultSet = preparedStatement.executeQuery();
    while(resultSet.next())
    System.out.println("Output:"+resultSet.getString(1));
    }

  • Incorrectly read attributes with custom SQL query

    Hi folks,
    I'm trying to read in a random sampling of records from a table, so I tried:
    ReadAllQuery q = new ReadAllQuery();
    q.setReferenceClass(Foo.class);
    q.addPartialAttribute("bar");
    q.setSQLString("select * from Foo sample(10)");
    q.useCursoredStream(100,100, new ValueReadQuery("select count(*) from Foo sample(10)"));
    This all worked fine, the Foos were retrieved, but after the first dozen or so, all the "bar" attributes were null, which they should not be. This only occurs when using a custom SQL string. I tried bringing back all the objects (i.e., without using setSQLString) and examining them and all the "bar"s were present. But when I use setSQLString the attributes don't get read correctly.
    Can anyone tell me what I'm doing wrong? Is there a better way to do it?
    Thanks,
    Bryn

    Okay, here's the actual code:
    ReadAllQuery q = new ReadAllQuery();
    q.setReferenceClass(ActivityCenter.class);
    boolean useCustom = true;
    if (useCustom) {
    q.setSQLString("SELECT SetupDt, TerminationDt, ReinstateDt, IID, upDt, ID, " +
    "Stat, SubType, Acct FROM ACtr");
    q.useCursoredStream(100,100, new ValueReadQuery("select count(IID) from actr"));
    } else {
    q.useCursoredStream(100,100);
    session.logMessages();
    activityCenters = (CursoredStream) session.executeQuery(q);
    ActivityCenter ac = (ActivityCenter) activityCenters.read();
    if (ac.getAccount() == null) {
    System.err.println(ac.getID() + ": Oops!");
    } else {
    System.err.println(ac.getID() + ": Has account!");
    System.exit(0);
    So, everything about this program is the same - how the mapping is done, how things get initialized, everything. The only difference is whether I use a custom SQL query or not. Here's what it looks like when I run it both ways:
    First, custom:
    DatabaseSession(2433702)--Connection(393272)--SELECT SetupDt, TerminationDt, ReinstateDt, IID, upDt, ID, Stat, SubType, Acct FROM ACtr
    1.1: Oops!
    Now, without the custom SQL:
    DatabaseSession(393272)--Connection(7896086)--SELECT SetupDt, TerminationDt, ReinstateDt, IID, upDt, ID, Stat, SubType, Acct FROM ACtr
    DatabaseSession(393272)--Connection(7896086)--SELECT
    //bunch of fields from the Acct attribute...
    FROM Acct WHERE (IID= 'ffbe5c47f3ea762cfd50fbe9e6d6de6')
    1.1: Has account!
    Notice that the first query on Actr is identical in both cases. Also note there are no null Actr.acct fields in the database:
    SQL> select * from actr where actr.acct is null;
    no rows selected
    SQL>
    This is on Oracle 9i, with the thin jdbc driver.
    Also, I was curious that you asked if I was using partial attributes - when I try to add a partial attribute when using the custom SQL string, I get exceptions like this one:
    java.lang.ClassCastException: oracle.toplink.internal.queryframework.CallQueryMechanism
    at oracle.toplink.queryframework.ObjectLevelReadQuery.initializeDefaultBuilder(Unknown Source)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.getExpressionBuilder(Unknown Source)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.addPartialAttribute(Unknown Source)
    at jenkon.magellan.util.MLMulator.getActivityCenters(MLMulator.java:782)
    at jenkon.magellan.util.MLMulator.run(MLMulator.java:897)
    at jenkon.magellan.util.MLMulator.main(MLMulator.java:943)
    Thanks,
    Bryn

  • Issue when Run Report with  Hier selection   in the Portal

    Hi  Portal  BI Experts,
    we are finding a strange issue  when Running the Report.
    the following  Variables are in the  Report  Selection screen :
    Company code [optiona]
    Prod.Variance Type [ mandatory]
    Hierarchy Node Variable [optional]
    TheQuery  which I am Running  thro Bex Analyzer  with  the Hier  selection as below , is working  fine. But
    When I  run   thro portal with Hier selection value   with    00/50/G310/702258(0CUST_SALES
    It automatically  display as +00/50/G310/702258(0CUST_SALES    with + symbol. and  thro the error:
    Input "\+00/50/G310/702258(0CUST_SALES);\+00/51/G410/703096(0CUST_SALES)" for Ship-To Party (Sales has invalid format
    If I remove the plus symbol  report runnig fine.
    Your  immediate help highly appreciated.
    Thanks
    Hema
    Edited by: hemav on Mar 21, 2011 2:29 PM

    Hi Jaya,
    This is the Error message  I am facing when I Execute ithe query  report n the Web[Portal]
    Input "\+00/50/G310/702258(0CUST_SALES);\+00/51/G410/703096(0CUST_SALES)" for Ship-To Party (Sales has invalid format
    ie. In the variable screen the selected hier value  automaticvally display with plus symbol
    Actual   Hier  value :   00/50/G310/702258(0CUST_SALES)
    Once close the Hier  selection list window , the Hier value  turned to  +00/50/G310/702258(0CUST_SALES)
    If I give ok with this Plus symbol  it throwing the above error.  By  removing the Plus symbol manually  it is working fine.
    I unable locate the  settings.
    that too when I run the same report  in Bex Analyzer  woking fine , no issues in the Hier  value.
    Thanks ,
    Hema

  • JPA  using native query - distinct

    Hi All,
    Kindly suggest on the following,
    I am facing issues on using the distinct keyword in JPA, Ful details on the following OTN thread.
    JPA  using native query - distinct
    Any help is much appreciated
    VR

    Any ideas ?

  • SAP AFS SD AFS Allocation run based on Customer group

    Hi all, 
             Please help me in the issue . How to do Allocation run based on Customer Group .
    Thanks in advance

    solved

  • FR Studio moving Cells Issue when running the report in Workspace

    I've created a complex, multi-grid FR report. There are 8 grids and 2 database connections in the report. When I run the report in Workspace for a smaller entity/unit, the report looks fine in PDF. When I run the report for a larger entity/unit, one of the cells in the grid duplicates itself and is shifted down into a second page on its own. The cell is an account cell with a label of "Salaries and Wages." The Salaries and Wages cell shows up in the correct location, but without a number. Then, there is a second page with the "Salaries and Wages" cell and the number that is at that intersection. I believe this only happens when the report is run on larger entities/units and when I view it in PDF, which is the format the users will be viewing this report.
    Also, something to note is that there is a gride to the right of this grid with the Salaries and Wages account, and I tried moving that out of the way and changing the row height and column width but none of those changes fixed the issue.
    Has anyone ever encountered something like this? Any ideas or comments would be greatly appreciated!!!
    Thanks,
    Tiffany

    Yes - consolidating 8 grids into 4 grids fixed the issue. I think having too many grids with multiple DB connections in each grid is too much for FR to handle. My current report has 4 grids with 2 of the grids having 2 database connections in them. The report is now working correctly.
    Thanks for your efforts Celvin!
    Thanks Again,
    Tiffany

Maybe you are looking for

  • "Table of Contents" web part - How to have expand/collapse buttons? (I can use only CSS/JavaScript/JQuery)

    Hi there, I have a Table of Contents web part which is great. Is there a way so it shows only top level sites and then one can expand or collapse any top level site to see/hide the subsites? As of now it shows HR Parent site - HR sub site 1 - HR sub 

  • Adobe Reader 9.0 will not print on Macbook Pro with OS X 10.6

    I have the Intel Core 2 Duo processor, and when printing labels or other pdf's, Adobe Reader 9.0 just sits there, doesn't even acknowledge that I am trying to print.  When I open the print queue, it says trying to print, loading data but sits forever

  • Using Intel's MKL C++ Library in JNI causes JVM to Crash at GC

    We're using JDK 1.6.0_07 on RedHat 4 (32-bit) and RedHat 5 (32-bit JVM on 64-bit processor). Our app uses JNI to access Intel's Math Kernel Library (MKL) for optimized algorithms; however, it crashes in libjvm.so/libpthread.so in the GC thread once t

  • Legacy flat file to IDOC into SAP

    after been given the task of converting a flat file structure to SAP idocs my research as lead me into the daunting world of CAPS. Basically I would like to know if using CAPS is the best choice for me and if so what is actually involved to make this

  • Structure of BDCMSGCOLL

    Can any Please Explain me the structure of BGCMSGCOLL? Points will be awarded to the appropriate answer.. Thnks and rgds, GIri