MATCHING Invoice Query
Hello All,
Can one give me MATCHING Invoice Query (AP) for both 2-way and 3-way matching.
I would like to have a report which gives whther a particluar invoice is matching or not.
Thanks,
Kumar
If any of the distribution is matched, the invoice should be taken as matched. Here is the modified query:
select ai.*
from ap_invoices_all ai
where not exists (select "matched"
from ap_invoice_distributions_all aid
where aid.invoice_id = ai.invoice_id
and aid.po_line_location_id is not null);
Similar Messages
-
Query of 3 Way match ( Invoice-Receipt)
Hi All,
Can Someone please give me Matching Invoice Query (AP) / Steps for 3-way matching. I have requirement wherein I have to match Invoice with Receipt but I don't know how should i do that through coding or required steps.
As I know I know below conditions are required for 3 way match but dont know how should I get all these individual data from AP tables.
Invoice price <= Purchase order price
Quantity billed <= Quantity Ordered
Quantity billed <= Quantity received
Can you please help me to get this information.
Thanks.I have prepared queries based on d 3-way match functionality .. Can some one please verify this, if I am missing anything here -
-- Invoice price <= Purchase order price
SELECT sum((NVL(poll.quantity, 0) - NVL(poll.quantity_cancelled, 0)) *
NVL(pol.unit_price, 0)) "PO PRICE",
sum(apd.quantity_invoiced * apd.unit_price) "INVOICE PRICE"
FROM po_headers_all poh,
po_lines_all pol,
po_line_locations_all poll,
po_distributions_all pd,
ap_invoice_distributions_all apd
WHERE poh.po_header_id = pol.po_header_id AND
pol.po_line_id = poll.po_line_id AND
poll.po_header_id = pol.po_header_id AND
poh.authorization_status = 'APPROVED' AND
poh.type_lookup_code = 'STANDARD' AND
NVL(poh.cancel_flag, 'N') = 'N' AND POL.ITEM_ID IS NOT NULL AND
apd.unit_price < pol.unit_price AND
-- AND NVL (poll.quantity, 0) > (NVL (poll.Quantity_received,0) + NVL (poll.Quantity_cancelled,0))
poll.inspection_required_flag = 'N' AND
poll.receipt_required_flag = 'Y' and
pd.po_header_id = poh.po_header_id(+) AND
poll.po_header_id = pd.po_header_id AND
pd.po_line_id = pol.po_line_id AND
pd.line_location_id = poll.line_location_id AND
apd.po_distribution_id = pd.po_distribution_id AND
POH.po_header_id = ? AND apd.po_distribution_id is not null
-- Quantity billed <= Quantity Ordered
SELECT sum(pd.quantity_ordered) "Quantity Ordered",
sum(pd.quantity_billed) "Quantity Billed"
--sum(apd.quantity_invoiced) "Quantity billed"
FROM po_headers_all poh,
po_lines_all pol,
po_line_locations_all poll,
po_distributions_all pd,
ap_invoice_distributions_all apd
WHERE poh.po_header_id = pol.po_header_id AND
pol.po_line_id = poll.po_line_id AND
poll.po_header_id = pol.po_header_id AND
poh.authorization_status = 'APPROVED' AND
poh.type_lookup_code = 'STANDARD' AND
NVL(poh.cancel_flag, 'N') = 'N' AND POL.ITEM_ID IS NOT NULL AND
apd.unit_price < pol.unit_price
-- AND NVL (poll.quantity, 0) > (NVL (poll.Quantity_received,0) + NVL (poll.Quantity_cancelled,0))
and POH.po_header_id = ? and poll.inspection_required_flag = 'N' AND
poll.receipt_required_flag = 'Y' and
pd.po_header_id = poh.po_header_id(+) AND
poll.po_header_id = pd.po_header_id AND
pd.po_line_id = pol.po_line_id AND
pd.line_location_id = poll.line_location_id and
apd.po_distribution_id = pd.po_distribution_id and
apd.po_distribution_id is not null
--Quantity billed <= Quantity received
SELECT sum(rsl.QUANTITY_RECEIVED) "Quantity received"
from rcv_transactions rct,
rcv_shipment_headers rsh,
rcv_shipment_lines rsl,
po_lines pol,
po_line_locations pll
where rct.po_line_location_id = pll.line_location_id and
rct.po_line_id = pol.po_line_id and
nvl(pol.order_type_lookup_code, 'QUANTITY') NOT IN
('RATE', 'FIXED PRICE') and
rct.shipment_line_id = rsl.shipment_line_id and
rsl.shipment_header_id = rsh.shipment_header_id and
transaction_type = 'RECEIVE' and pol.po_header_id = ?
order by rct.transaction_id -
Hello All,
Can one give me MATCHING Invoice Query (AP) for both 2-way and 3-way matching.
I would like to have a report which gives whther a particluar invoice is matching or not.
Reoprt should be as follows.
Invocie number Matching Status.
Thanks,
KumarDear Thomas,
In order to get this information you need a query that would work out the values in the ar down payment invoice.
This can be a beginning. However, some values must be calculated in the query because they are not in the table.
SELECT T0.DocNum, T0.CardCode, T1.VatSum, T1.LineTotal, (T1.LineTotal * T0.DpmPrcnt/100) as DPM, (t1.LineTotal - (T1.LineTotal * T0.DpmPrcnt/100) - T1.VatSum) as PAYM_LEFT FROM ODPI T0 INNER JOIN DPI1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocNum = '1'
Please, let me know if this is sufficient or you need some more information from the query.
Kind Regards,
Marcella Rivi
SAP Business One Forums Team -
SRKIM: 11.5.10: AP: RECEIPT MATCH 된 INVOICE 조회 시 ORA-01427 가 발생할때
PROBLEM
======
Release 11.5.10:
AP INVOICE 화면에서 RECEIPT MATCH 된 INVOICE 조회 시 아래와 같은 ERROR 가 발생한다.
ORA-01427: single-row subquery returns more than one row
SOLUTION
======
해당 ISSUE 는 Bug 4270082: Querying Receipt Matched Invoice In Invoice Workbench Returns Ora-01427 에 의한 것으로 financials Family Pack H (AP.O) and higher 에서 해결이 되나 그 이전 VERSION 에서는 아래와 같이 CODEFIX 로 해결 해야 한다.
AP_HOLDS_V view source 에서 QUERY 부분을 아래와 같이 수정 한다.
수정 전:
SELECT DECODE(PLT.MATCHING_BASIS, 'QUANTITY',RTXN1.QUANTITY,
'AMOUNT', NULL) FROM RCV_TRANSACTIONS RTXN1 WHERE
RTXN1.PO_LINE_LOCATION_ID = PLL.LINE_LOCATION_ID AND
RTXN1.PARENT_TRANSACTION_ID = RTXN.TRANSACTION_ID AND
RTXN1.TRANSACTION_TYPE = 'ACCEPT'
수정 후:
SELECT DECODE(PLT.MATCHING_BASIS, 'QUANTITY',SUM(RTXN1.QUANTITY),
'AMOUNT', NULL) FROM RCV_TRANSACTIONS RTXN1 WHERE
RTXN1.PO_LINE_LOCATION_ID = PLL.LINE_LOCATION_ID AND
RTXN1.PARENT_TRANSACTION_ID = RTXN.TRANSACTION_ID AND
RTXN1.TRANSACTION_TYPE = 'ACCEPT'
REFERENCE
=======
Note. 306702.1 - APXINWKB Querying A Receipt Matched Invoice Results In ORA-01427 Error -
INcoming Excises Invoice Query
SELECT DISTINCT (T0.[DocNum]) AS 'INVOICE NUMBER', T0.[DocDate] AS 'INVOICE DATE',T0.[CardName], T1.[ItemCode] AS 'PART NO', T1.[Dscription] AS 'PART DESCRIPTION', T1.[Quantity], T1.[Price], T1.[LineTotal] AS 'BASE AMOUNT',
(SELECT sum(TaxSum) FROM IEI4 where statype=-90 and DocEntry=T0.DocEntry and LineNum=t1.LineNum) as 'BED 10%',
(SELECT sum(TaxSum) FROM IEI4 where statype=-60 and DocEntry=T0.DocEntry and LineNum=t1.LineNum) as 'ECESS 2%',
(SELECT sum(TaxSum) FROM IEI4 where statype=-55 and DocEntry=T0.DocEntry and LineNum=t1.LineNum) as 'HSCESS 1%',
(SELECT sum(TaxSum) FROM IEI4 where statype=4 and DocEntry=T0.DocEntry and LineNum=t1.LineNum) as 'CST',
(SELECT sum(TaxSum) FROM IEI4 where statype=1 and DocEntry=T0.DocEntry and LineNum=t1.LineNum) as 'VAT',
T1.[LineTotal]+t1.[VatSum] as'TOTAL'
FROM OIEI T0 INNER JOIN IEI1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN IEI4 T2 ON T0.DocEntry = T2.DocEntry
INNER JOIN OITM T3 ON T1.ItemCode = T3.ItemCode
WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1]
above this queriry is incoming Excise invoice warhouse and Busniess Partner mingle, so now i want to need only BP wise Incoming Excises Invoice Query , How do i Negligble? pls help me and reply soon , How Do i change the Query?Hi Rakan.......
Sorry. Your way of telling requirement is bit Ambiguous.......
Please correct me what I understood from your requirement is.\
Generally incoming Excise Invoice is made from GRPO/ORDN/ORIN and base on Inventory Transfer.
So you want only those Incoming Excise Invoice which is based on GRPO that is BP wise.
Am I correct now?
If yes the try this......
SELECT DISTINCT (T0.DocNum) AS 'INVOICE NUMBER', T0.DocDate AS 'INVOICE DATE',T0.CardName, T1.ItemCode AS 'PART NO', T1.Dscription AS 'PART DESCRIPTION', T1.Quantity, T1.Price, T1.LineTotal AS 'BASE AMOUNT',
(SELECT sum(TaxSum) FROM IEI4 where statype=-90 and DocEntry=T0.DocEntry ) as 'BED 10%',
(SELECT sum(TaxSum) FROM IEI4 where statype=-60 and DocEntry=T0.DocEntry ) as 'ECESS 2%',
(SELECT sum(TaxSum) FROM IEI4 where statype=-55 and DocEntry=T0.DocEntry ) as 'HSCESS 1%',
(SELECT sum(TaxSum) FROM IEI4 where statype=4 and DocEntry=T0.DocEntry ) as 'CST',
(SELECT sum(TaxSum) FROM IEI4 where statype=1 and DocEntry=T0.DocEntry ) as 'VAT',
T1.LineTotal+t1.VatSum as'TOTAL'
FROM OIEI T0 INNER JOIN IEI1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN IEI4 T2 ON T0.DocEntry = T2.DocEntry
INNER JOIN OITM T3 ON T1.ItemCode = T3.ItemCode
WHERE T0.DocDate >= '%0' AND T0.DocDate <= '%1' AND T1.BaseType in (20,16,14)
Above will give you the details of Excise Invoice BP wise....
Regards,
Rahul -
Hi B1 Experts
Kindly help me....
I need A/R invoice query report which will give me the Daily, monthly and yearly total invoicing as on date in a single screen also without using XL reporter.
I am using SAP B1 version 2005B PL36.
Thx in advance.
Rozario.SELECT DISTINCT T0.CardCode [Customer],
(SELECT ISNULL(SUM(I1.LineTotal),0) FROM INV1 I1 INNER JOIN OINV I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode AND Day(I1.DocDate) = Day(GetDate())) [Daily],
(SELECT ISNULL(SUM(I1.LineTotal),0) FROM INV1 I1 INNER JOIN OINV I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode AND Month(I1.DocDate) = Month(GetDate())) [Monthly],
(SELECT ISNULL(SUM(I1.LineTotal),0) FROM INV1 I1 INNER JOIN OINV I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode AND Year(I1.DocDate) = Year(GetDate())) [Yearily]
FROM [dbo].[OINV] T0
GROUP By T0.CardCode -
Can i Match invoices with a currency different from the purchase order curr
Dear Valued Consultant,
Can i Match invoices with a currency different from the purchase order curr
ThanksHi,
As a functionality, Payables will not allow matching an invoice to a purchase order that is in a different currency.
Refer Oracle Public sector payables user guide for 11i (page 4-94).
I understand that there is an enhancement request (3286623) logged for this functionality.
Please refer Note:172291.1
- Thiagu -
ORA-12060: shape of prebuilt table does not match definition query
Oracle version: 11G Release 2
When Iam trying to create a Materialized view with on prebuilt table syntax I am facing the below issue.
Create table sample_table as select col1,col2,col3 from sample_view;
table created.
Create Materialized view sample_table on prebuilt table refresh complete on demand as
select col1,col2,col3 from sample_view;
I am getting the below exception
Error report:
SQL Error: ORA-12060: shape of prebuilt table does not match definition query
12060. 00000 - "shape of prebuilt table does not match definition query"
*Cause: The number of columns or the type or the length semantics of a
column in the prebuilt table did not match the materialized
view definition query.
*Action: Reissue the SQL command using BUILD IMMEDIATE, BUILD DEFERRED, or
ensure that the prebuilt table matches the materialized view
definition query.
How to resolve this issue?SQL> create table sample_table as
2 select owner, table_name, tablespace_name
3 from dba_tables
4 where rownum < 11;
Table created.
SQL> Create Materialized view sample_table on prebuilt table refresh complete on demand as
2 select owner, table_name, tablespace_name
3 from dba_tables;
Materialized view created.What issue?
Which leads me to ask what version of Oracle you have because we don't know.
SELECT *
FROM v$version; -
PO Matched Invoice - Want to add some Expense
Dear Experts,
I have a scenario where I have created one Invoice for 1000 USD with PO Matched and my requirement is I want to Include 50 USD in PO Matched Invoice now.. any one can help me regarding this Please..
Thanks
BharathHello Bis,
You can find PO in status 'Error in process' using status drop-down list with wording 'Transfer Failed': this is standard.
Regarding status 'Transaction completed', why do you want to make a difference with standard status 'Ordered' ?
Regards.
Laurent. -
Hello,
I am trying to run a MATCH RECOGNIZE query on the engine, but kept getting the following error:
<Mar 8, 2011 11:30:17 AM CET> <Error> <CQLProcessor> <BEA-000000> <CQLProcessor internal error for DDL [alter query ResultConst start] = null
java.sql.SQLException
at oracle.cep.jdbc.CEPStatement.evaluateAndSend(CEPStatement.java:322)
at oracle.cep.jdbc.CEPStatement.executeUpdate(CEPStatement.java:301)
at com.oracle.cep.processor.cql.impl.CEPServerInstance.executeDDL(CEPServerInstance.java:256)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.executeDDL(CQLProcessorImpl.java:3027)
at com.oracle.cep.processor.cql.impl.CQLQuery.start(CQLQuery.java:48)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activateRules(CQLProcessorImpl.java:810)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activate(CQLProcessorImpl.java:870)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.afterConfigurationActive(CQLProcessorImpl.java:2549)
at com.bea.wlevs.spring.ActivationBeanPostProcessor.postProcessAfterContextInitialization(ActivationBeanPostProcessor.java:20)
at com.bea.wlevs.spring.DeferredBeanPostProcessor.afterConfigurationActive(DeferredBeanPostProcessor.java:27)
at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:112)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:61)
at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:203)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused By: java.lang.NullPointerException
at oracle.cep.planmgr.codegen.StreamSourceFactory.setupExecOpt(StreamSourceFactory.java:201)
at oracle.cep.planmgr.codegen.ExecOptFactory.instantiate(ExecOptFactory.java:198)
at oracle.cep.planmgr.codegen.OptInst.instOp(OptInst.java:128)
at oracle.cep.planmgr.codegen.CodeGenHelper.instantiate(CodeGenHelper.java:91)
at oracle.cep.planmgr.PlanManager.instantiate(PlanManager.java:1062)
at oracle.cep.metadata.QueryManager.instantiate(QueryManager.java:840)
at oracle.cep.metadata.QueryManager.startQuery(QueryManager.java:476)
at oracle.cep.metadata.QueryManager.startNamedQuery(QueryManager.java:268)
at oracle.cep.server.CommandDriver.QueryRefNodeDriver.execute(QueryRefNodeDriver.java:55)
at oracle.cep.server.CommandInterpreter.execute(CommandInterpreter.java:264)
at oracle.cep.server.CEPServer.executeDDL(CEPServer.java:186)
at oracle.cep.jdbc.CEPStatement.evaluateAndSend(CEPStatement.java:319)
at oracle.cep.jdbc.CEPStatement.executeUpdate(CEPStatement.java:301)
at com.oracle.cep.processor.cql.impl.CEPServerInstance.executeDDL(CEPServerInstance.java:256)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.executeDDL(CQLProcessorImpl.java:3027)
at com.oracle.cep.processor.cql.impl.CQLQuery.start(CQLQuery.java:48)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activateRules(CQLProcessorImpl.java:810)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activate(CQLProcessorImpl.java:870)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.afterConfigurationActive(CQLProcessorImpl.java:2549)
at com.bea.wlevs.spring.ActivationBeanPostProcessor.postProcessAfterContextInitialization(ActivationBeanPostProcessor.java:20)
at com.bea.wlevs.spring.DeferredBeanPostProcessor.afterConfigurationActive(DeferredBeanPostProcessor.java:27)
at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:112)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:61)
at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:203)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
>
<Mar 8, 2011 11:30:17 AM CET> <Error> <Deployment> <BEA-2045016> <The application context "test_cep" could not be started. Could not initialize component "<unknown>": CQLProcessor internal error for DDL [alter query ResultConst start] = null>
Query and the configuration files are as follows:
Query:
<?xml version="1.0" encoding="UTF-8"?>
<n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
<processor>
<name>AggrOverWindow</name>
<rules>
<query id="ResultConst"><![CDATA[
SELECT itemId AS SumPrice
FROM StreamS MATCH_RECOGNIZE (
MEASURES A.lastPrice as itemId
PATTERN (A B)
DEFINE
A AS (A.lastPrice >= 25),
B AS (B.lastPrice >= 25)
) as its
]]></query>
</rules>
</processor>
</n1:config>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.bea.com/ns/wlevs/spring
http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">
<wlevs:event-type-repository>
<wlevs:event-type type-name="StockTick">
<wlevs:properties>
<wlevs:property name="myTime" type="long"/>
<wlevs:property name="lastPrice" type="double"/>
<wlevs:property name="symbol" type="char"/>
</wlevs:properties>
</wlevs:event-type>
<wlevs:event-type type-name="AggWindowEvent">
<wlevs:properties>
<wlevs:property name="SumPrice" type="double"/>
<wlevs:property name="maxTime" type="long"/>
<wlevs:property name="minTime" type="long"/>
</wlevs:properties>
</wlevs:event-type>
</wlevs:event-type-repository>
<!-- Assemble EPN (event processing network) -->
<wlevs:adapter id="csvReader" provider="csvgen">
<wlevs:instance-property name="port" value="9011"/>
<wlevs:instance-property name="eventTypeName" value="StockTick" />
<wlevs:instance-property name="eventPropertyNames" value="myTime,symbol,lastPrice" />
<wlevs:listener ref="StreamS"/>
</wlevs:adapter>
<wlevs:channel id="StreamS" event-type="StockTick">
<wlevs:listener ref="AggrOverWindow" />
<wlevs:application-timestamped>
<wlevs:expression>myTime*1000000000</wlevs:expression>
</wlevs:application-timestamped>
</wlevs:channel>
<wlevs:processor id="AggrOverWindow" provider="cql">
<wlevs:listener ref="AggrResult"/>
</wlevs:processor>
<wlevs:adapter id="PublishSummaryResults" provider="httppub"></wlevs:adapter>
<wlevs:channel id="AggrResult"
event-type="AggWindowEvent">
<wlevs:listener>
<bean class="com.oracle.cep.sample.fx.OutputBean" autowire="byName"/>
</wlevs:listener>
<wlevs:listener ref="PublishSummaryResults"/>
</wlevs:channel>
</beans>
What am I doing wrong?
ThanksHi,
I am experiencing same error while I am using MATCH_RECOGNIZE query with the application timestamp channel.
If I type a query like this, there wont be an error when I am using application timestamp channel.
select
telno,
count(telno) as sayi
from
helloworldInputChannel[RANGE 2 HOURS]
group by
telno
having count(telno) > 10000I changed the log level of cql processor from notice to debug and the piece of output log information is below, it seems a bug :
####<Mar 9, 2011 10:42:08 AM EET> <Info> <OSGiLogReaderAdapter> <> <myServer> <Log Event Dispatcher> <> <> <> <1299660128745> <BEA-000000> <Bundle[274] SOLPattern1, Message (BundleEvent UNINSTALLED), Exception (null), Time (1299660128749)>
[[email protected]]:/home/cep/cep_11.1.1.4/user_projects/domains/galata_cepdomain/galata_cepserver>
[[email protected]]:/home/cep/cep_11.1.1.4/user_projects/domains/galata_cepdomain/galata_cepserver>
[[email protected]]:/home/cep/cep_11.1.1.4/user_projects/domains/galata_cepdomain/galata_cepserver>
[[email protected]]:/home/cep/cep_11.1.1.4/user_projects/domains/galata_cepdomain/galata_cepserver>
[[email protected]]:/home/cep/cep_11.1.1.4/user_projects/domains/galata_cepdomain/galata_cepserver> tail -200f server.log
>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435644> <BEA-000000> <Checking if statement [CREATE QUERY helloworldRule AS
select
T.p1 as id, T.p2 as message, T.p3 as telno, T.p4 as producedDate
from
helloworldInputChannel MATCH_RECOGNIZE (
PARTITION BY id
MEASURES A.id as p1, A.message as p2, A.telno as p3, A.producedDate as p4
ALL MATCHES
include timer events
PATTERN(A)
duration multiples of 10 seconds
DEFINE A as A.id > 0 and A.id <10000000
) as T
] is allowed to be executed.>
####<Mar 9, 2011 10:47:15 AM EET> <Info> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435644> <BEA-000000> <execute DDL [CREATE QUERY helloworldRule AS
select
T.p1 as id, T.p2 as message, T.p3 as telno, T.p4 as producedDate
from
helloworldInputChannel MATCH_RECOGNIZE (
PARTITION BY id
MEASURES A.id as p1, A.message as p2, A.telno as p3, A.producedDate as p4
ALL MATCHES
include timer events
PATTERN(A)
duration multiples of 10 seconds
DEFINE A as A.id > 0 and A.id <10000000
) as T
]>
####<Mar 9, 2011 10:47:15 AM EET> <Info> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435644> <BEA-000000> <execute DDL [CREATE QUERY helloworldRule AS
select
T.p1 as id, T.p2 as message, T.p3 as telno, T.p4 as producedDate
from
helloworldInputChannel MATCH_RECOGNIZE (
PARTITION BY id
MEASURES A.id as p1, A.message as p2, A.telno as p3, A.producedDate as p4
ALL MATCHES
include timer events
PATTERN(A)
duration multiples of 10 seconds
DEFINE A as A.id > 0 and A.id <10000000
) as T
]>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Unique ID = SOLPattern1_helloworldProcessor_>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Channel configuration for query [helloworldRule] is: []>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Channel configuration for query [helloworldRule] is: []>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <COLUMN NAME = id>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Converted column name = id>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <COLUMN NAME = message>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Converted column name = message>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <COLUMN NAME = telno>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Converted column name = telno>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <COLUMN NAME = producedDate>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Converted column name = producedDate>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Query [helloworldRule] schema = [Lcom.bea.wlevs.ede.api.EventPropertyDescription;@24332648>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Verify query schema [helloworldRule] against channels = [Ljava.lang.Object;@24332a40>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Following are the valid channels = with batching false>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Setting Batch output channels for queryhelloworldRulehaving batch destination exist ?false with batching channels 0>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Verify query schema [helloworldRule] against channels = [Ljava.lang.Object;@2432ec28>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <Following are the valid channels = with batching true>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435646> <BEA-000000> <register query destination [SOLPattern1_helloworldProcessor_helloworldRule], output =com.oracle.cep.processor.cql.impl.CQLQueryDestination@2432dd98>
####<Mar 9, 2011 10:47:15 AM EET> <Info> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <execute DDL [alter query helloworldRule add destination "<EndPointReference><Address><Type>java</Type><Id>SOLPattern1_helloworldProcessor_helloworldRule</Id></Address></EndPointReference>"]>
####<Mar 9, 2011 10:47:15 AM EET> <Info> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <execute DDL [alter query helloworldRule add destination "<EndPointReference><Address><Type>java</Type><Id>SOLPattern1_helloworldProcessor_helloworldRule</Id></Address></EndPointReference>"]>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <End configure rules.>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <+activate(id = helloworldProcessor)>
####<Mar 9, 2011 10:47:15 AM EET> <Info> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <EPN is ready and being activated>
####<Mar 9, 2011 10:47:15 AM EET> <Info> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <execute DDL [alter query helloworldRule start]>
####<Mar 9, 2011 10:47:15 AM EET> <Info> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <execute DDL [alter query helloworldRule start]>
####<Mar 9, 2011 10:47:15 AM EET> <Emergency> <CQLServer> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <alter query helloworldRule start>
####<Mar 9, 2011 10:47:15 AM EET> <Emergency> <CQLServer> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <alter query helloworldRule start
java.lang.NullPointerException>
####<Mar 9, 2011 10:47:15 AM EET> <Emergency> <CQLServerTrace> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435647> <BEA-000000> <java.lang.NullPointerException>
####<Mar 9, 2011 10:47:15 AM EET> <Error> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435648> <BEA-000000> <CQLProcessor internal error for DDL [alter query helloworldRule start] = null
java.sql.SQLException
at oracle.cep.jdbc.CEPStatement.evaluateAndSend(CEPStatement.java:322)
at oracle.cep.jdbc.CEPStatement.executeUpdate(CEPStatement.java:301)
at com.oracle.cep.processor.cql.impl.CEPServerInstance.executeDDL(CEPServerInstance.java:256)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.executeDDL(CQLProcessorImpl.java:3027)
at com.oracle.cep.processor.cql.impl.CQLQuery.start(CQLQuery.java:48)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activateRules(CQLProcessorImpl.java:810)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activate(CQLProcessorImpl.java:870)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.afterConfigurationActive(CQLProcessorImpl.java:2549)
at com.bea.wlevs.spring.ActivationBeanPostProcessor.postProcessAfterContextInitialization(ActivationBeanPostProcessor.java:20)
at com.bea.wlevs.spring.DeferredBeanPostProcessor.afterConfigurationActive(DeferredBeanPostProcessor.java:27)
at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:112)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:61)
at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:203)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused By: java.lang.NullPointerException
at oracle.cep.planmgr.codegen.StreamSourceFactory.setupExecOpt(StreamSourceFactory.java:201)
at oracle.cep.planmgr.codegen.ExecOptFactory.instantiate(ExecOptFactory.java:198)
at oracle.cep.planmgr.codegen.OptInst.instOp(OptInst.java:128)
at oracle.cep.planmgr.codegen.CodeGenHelper.instantiate(CodeGenHelper.java:91)
at oracle.cep.planmgr.PlanManager.instantiate(PlanManager.java:1062)
at oracle.cep.metadata.QueryManager.instantiate(QueryManager.java:840)
at oracle.cep.metadata.QueryManager.startQuery(QueryManager.java:476)
at oracle.cep.metadata.QueryManager.startNamedQuery(QueryManager.java:268)
at oracle.cep.server.CommandDriver.QueryRefNodeDriver.execute(QueryRefNodeDriver.java:55)
at oracle.cep.server.CommandInterpreter.execute(CommandInterpreter.java:264)
at oracle.cep.server.CEPServer.executeDDL(CEPServer.java:186)
at oracle.cep.jdbc.CEPStatement.evaluateAndSend(CEPStatement.java:319)
at oracle.cep.jdbc.CEPStatement.executeUpdate(CEPStatement.java:301)
at com.oracle.cep.processor.cql.impl.CEPServerInstance.executeDDL(CEPServerInstance.java:256)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.executeDDL(CQLProcessorImpl.java:3027)
at com.oracle.cep.processor.cql.impl.CQLQuery.start(CQLQuery.java:48)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activateRules(CQLProcessorImpl.java:810)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activate(CQLProcessorImpl.java:870)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.afterConfigurationActive(CQLProcessorImpl.java:2549)
at com.bea.wlevs.spring.ActivationBeanPostProcessor.postProcessAfterContextInitialization(ActivationBeanPostProcessor.java:20)
at com.bea.wlevs.spring.DeferredBeanPostProcessor.afterConfigurationActive(DeferredBeanPostProcessor.java:27)
at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:112)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:61)
at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:203)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
>
####<Mar 9, 2011 10:47:15 AM EET> <Debug> <CQLProcessor> <> <myServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1299660435648> <BEA-000000> <Could not start rule [helloworldRule]
com.bea.wlevs.ede.api.StatementException: CQLProcessor internal error for DDL [alter query helloworldRule start] = null
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.executeDDL(CQLProcessorImpl.java:3042)
at com.oracle.cep.processor.cql.impl.CQLQuery.start(CQLQuery.java:48)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activateRules(CQLProcessorImpl.java:810)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.activate(CQLProcessorImpl.java:870)
at com.oracle.cep.processor.cql.impl.CQLProcessorImpl.afterConfigurationActive(CQLProcessorImpl.java:2550)
at com.bea.wlevs.spring.ActivationBeanPostProcessor.postProcessAfterContextInitialization(ActivationBeanPostProcessor.java:20)
at com.bea.wlevs.spring.DeferredBeanPostProcessor.afterConfigurationActive(DeferredBeanPostProcessor.java:27)
at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:112)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:79)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:139)
at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)
at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:203)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
> -
AP:When trying to match invoice with prepayment, prepayment is not display.
Hello,
Need some help please.
We have :
- One prepayment PREPAY1 (pay and available)
- One standard invoice.(validate, no hold)
We try to match Invoice with prepayment.
1° Search for our invoice.
2° Using action button, Apply/unapply prepayement.
3° Here is our issue. When displaying list of available prepayment, we don't see PREPAY1.
Maybe a request could help me to identify why our prepayment is not displayed or another idea ?
Thx
RegardsHi,
The cause of the issue should have been Data Corruption .... if you can replicate this issue at will, you would log an Service Request with oracle for performing an Root Cause Analysis.
However for fixing the issue at present, either you can uncheck the REVERSED checkbox in your Distribution form on the Invoice Workbench ... if that is not possible from the front end, then you have to resort to the data fix suggested by oracle. .
References
Cannot Apply A Prepayment To A Payables Invoice [ID 367502.1]
Prepayment Invoice Was Paid In Full And It's Not Available To Apply [ID 399949.1]
Regards,
Ivruksha -
Distribution account for po match invoice
Hi,
If we match invoice to po what will be the distribution account(gl account) in invoice .Please give detail information.
Thanks
Guru Prasad.Payables automatically creates invoices distributions based on the purchase order distributions. After you create the invoice, you can view the distributions created by the match in the Distributions window of the invoice workbench.
John Dickey -
Hi
Please send the sales order invoice query as basic columns.. Further I will modify the query according to the requirement.
Pleas send to my personal ID: [email protected]
Thanks
SreeThanks. There's a few problems though.
1) It seems that OINV DocTotal != Balance Due. I'm seeing a number of invoices where there was a balance due, but we applied additional money (either we took another incoming payment and applied it or applied money from the account balance, etc.) and yet it still shows a total.
2) It's pulling incoming payments from different customers. I think this is because the table was joined based on "RCT2 T4 on T4.[DocEntry] = T3.[DocNum] and T4.[InvoiceId] = T2.[LineNum]" In one example I have 2 incoming payments 446 and 614. Both have the DocEntry 542, but one relates to A/R Invoice 542 (for a different client) while the other relates to Down Payment Invoice 542. *I was able to fix this by adding WHERE T5.CardCode = [%0]*
3) I'm going to work with this a little bit and see if I can alter it to make it work for me. Basically this query falls a little short on the following:
- Doesn't include incoming payments that aren't linked to a down payment invoice.
- Does not give the Invoice Total (I'd like to know how much of the SO was invoiced. DocTotal seems to give me Amount Invoiced - Down Payments. I'm not sure the best way to get this number. Maybe I could do the sum of each line * tax + freight)
- Does not give the outstanding amount on an invoice. The ARtotal [DocTotal] column gives me how much was owed when the invoice was created, but it doesn't tell me what is currently owed.
- Lastly it may complicate the query too much and could be left off, but it would be nice to see if they have any money from credits or incoming payments that has not been applied. Perhaps this would be easily accomplished by simply pulling in their account balance. -
How to exclude the PO matched invoices from entering the Approval Heirarchy
Hi,
How do you exclude the PO matched invoices from entering the Approval heirarchy?
I refered to the note [ID 337714.1], wherein it states that the "In the workflow definition file - apfiawie.wft - the attribute EXCLUDE_PO_MATCHED is to be set to 'Y'".
When I open the file in the workflow builder, I am not able to modify the attribute as mentioned in the note.
Can anyone please give a solution to this problem as all the invoices are getting in the approval workflow.
Thanks & Regards,
AtulDear All,
If anybody face the same issue pls give us solution.
Thanks,
Atul -
I have an error message at the top left of my document saying "Could not find matching Media Query style sheet. Nothing happens when I alter the CSS so I'm guessing that is not linked somewhere. I also have made certain that all my .css and .js files are linked.
Subject line edited by moderator for clarityHI tkennedys,
I found a similar thread with a solution that could help you.
http://forums.adobe.com/thread/1014094
Thanks,
Preran
Maybe you are looking for
-
Ok, so I've tried about everything I could think of. I assembled the computer, intel core 2 duo E8500, not 100% sure of the stepping, but its s-spec=slapk. motherboard is an msi-7519 ver 1.0, P45 NEO, 2X2 gig PC2-6400 DDR2 ram modules, 500 gig WD hd,
-
I just updated my mbp with the icloud update and now my wifi signal bars in my menu bar stopped working and say that there is no airport card installed. I am connected to the internet through wifi just fine and the system preferences says that I am c
-
I've developed a fairly complex BPEL process, and when I try to instantiate it via BPELConsole nothing happens. The request times out. No instances are shown, just like nothing happened. I expected some errors and exceptions, since this is the first
-
JDK 1.3 Soft Links in CLASSPATH
Hi, I found that the JDK1.3 javac compiler doesn't follow soft-links in unix filesystem. Whereas in JDK1.1.6 I was able to specify classpath through soft links also. Can anyone give more insight into this? Can this behavior be tailored - either via J
-
Adobe Access Protection on iOS devices?
I am having an issue in terms of Adobe Access not supported in iOS. I have been developing a custom player along with a bunch of other back end Adobe Technologies only to find out now that protection is not available in iOS. DRMManager.isSupported re