Query executed within a plug-in script returns 0 rows, although data exists
I created a plug-in script for algorithm entity: Service Quantity Rule.
The script calls a business service that I created using query zones. The query returns the values of the bill segment (ci.bseg.bseg_id and ci_bseg.closing_bseg_sw) that is created while running a bill manually. The zone receives the bseg_id as a parameter.
The problem is that when I execute the business service within the plug-in script the business services returns 0 rows even though the data is actually being stored in the database.
The script calculates some SQI values and saves it to the bill segment based on a response that is received from MDM (I'm using the usage request object).
Steps:
1.- Create Bill. The bill segment is created in error as it is waiting for the bill determinants to be sent from the MDM. If I test the zone with the bseg_id (as a parameter) of the newly created bill segment it works fine.
2.- We send a message from the MDM to CC&B. The message is received and processed and it gets to a point when the usage updates the bill segment.
3.- After the bill segment has been updated with the values from the usage request object it starts executing the plug-in script.
4.- I obtain the bseg_id from the usage request and use the business service (passing the bseg_id as a parameter) and it returns no result.
5.- The process finishes and if test the zone with the bseg_id (as a paramter) of the billing segment it works fine.
So apparently during the execution of the script after the billing determinants are received from MDM I can't have access to the Bill segment that was created, even if the physically the record exists in the database (CI_BSEG).
I also tried instantiating an object related with the bill segment and got the same result.
Any idea or clue of what is happening?
Could you be more explicit.
What CC&B version?
What MDM version?
More details are required for:
2.- We send a message from the MDM to CC&B. The message is received and processed and it gets to a point when the usage updates the bill segment.
3.- After the bill segment has been updated with the values from the usage request object it starts executing the plug-in script.
4.- I obtain the bseg_id from the usage request and use the business service (passing the bseg_id as a parameter) and it returns no result.
Similar Messages
-
Return rows where date between sysdate +- 2 years
Hi,
Please let me know how to select rows from table where date = sysdate +- 2 years
if sysdate is 27/07/2012 then select rows where date between 27/07/2010 to 27/07/2014you need all date ? or only specific date ?
Specific date Purvesh already provided solution
All
SELECT * FROM ( SELECT SYSDATE+LEVEL AFTER,SYSDATE-LEVEL befor FROM dual connect BY LEVEL<=365*2 )Or specific
SELECT Max(AFTER),Min(befor) FROM
( SELECT SYSDATE+LEVEL AFTER,SYSDATE-LEVEL befor FROM dual connect BY LEVEL<=365*2 ) -
Stored Procedure/Function Returns Rows?
Hello,
I have very little experience writing PL/SQL procedures, but I have written my fair share of Sybase stored procedures. In Sybase, I can create a stored procedure that returns rows of data. For example:
create procedure myproc as
begin
select * from mytable;
end;
Then if I invoke the procedure (whether that is from an interactive SQL session or from a ColdFusion or JSP page), several rows of data are returned to me.
The benefit of this is that the web developers don't need to write complicated SQL.
Is this even possible in Oracle? I have never seen anyone actually do this. Or do my web coders need to learn how to write PL/SQL and embed it into their code?
HELP!
Thanks!Hi Justin,
Thanks for your reply. That's kind of what I was suspecting, except that I was hoping to be able to execute the function/procedure from within a SQL session also, for testing. Is there a way to invoke such a procedure from a SQL*Plus session and have it return the rowset (ref cursor) just as if I had typed in the SQL select statement?
For example, I just want to type at a SQL*Plus prompt something like this:
mypackage.myfunction(param1, param2);
and then have it return the results to me. Is that possible?
Thanks again for your help.
Mark -
What does the return activity do in BTF executed within a region?
All of us know that the return activity in the bounded task flow used to return from a called bounded task flow to the caller (i.e. to exit the task flow), this concept is clear when the bounded task is called from task flow call activity. But can we use the return activity in a bounded task flow that is intended to be executed in a region, but the question is how to use it, and what does it exactly mean to have a return activity in a bounded task flow that is executed within a region? Is there any use case for this scenario?
Hi,
regions don't handle task flow returns and the taskflow would just exit leaving the region area blank, One option to use returnvactivuties in egions is to configure a region navigation listener and - if the current view id value returns null - to refresh the region so the task flow starts all over again. To pass values back in such a use case you would use a managed bean instance you pass as an argument to the taskflow in a region.
Frank -
Paged query results within a TIle ?
what is the best way to page query results within a Tile
component ?
eg. I have a Tile component with multiple Repeater Image
links supplied via an HTTPService call to a PHP script.
I want to break up the tiled result pages to save loading
time.
Would I load the entire result set into Flex, and then
control how they are viewed by using the horizontal or
verticalScrollPosition property of the Tile container, or perhaps I
could make multiple HTTPService calls for each page of results ?
Any ideas would be much appreciated.What about using the tilelist object for multiple returned
images? You can provide the list as the dataSource to the TileList.
The images are dynamically linked and they are delivered from the
server when they are rendered. That way you could bring down the
url for many images and dynamically link to the images. This would
allow you to bring down many rows at one time. -
Hello,
is there a way to return the next 7 dates just using a query... for example, I need a query that returns:
select (I don't know that put here) from dual
Date
2012-10-05
2012-10-06
2012-10-07
2012-10-08
2012-10-09
2012-10-10
2012-10-11
If possible, I would like to know if there's a way to pass a date and based on it, the query returns the next 7 dates based on the passed date... for example:
select (I don't know that put here) from dual where date > '2012-10-15'
Date
2012-10-16
2012-10-17
2012-10-18
2012-10-19
2012-10-20
2012-10-21
2012-10-22
I really appreciate any help
ThanksSven W. wrote:
I don't like connect by. That is fair enough, it is just your opinion.
It is slow and shouldn't be used for real production code.This however, is absolute garbage.
Changing the query to return 10,000 dates takes a little over 1s
SQL> select date '2012-10-15' + level - 1 from dual
2 connect by level <= 10000;
<snip>
28-FEB-40
29-FEB-40
01-MAR-40
10000 rows selected.
Elapsed: 00:00:01.26>
In your case you can simply do this
with inputdata as (select to_date('2012-10-15','yyyy-mm-dd') startday from dual)
select startday+1 from inputdata union all
select startday+2 from inputdata union all
select startday+3 from inputdata union all
select startday+4 from inputdata union all
select startday+5 from inputdata union all
select startday+6 from inputdata union all
select startday+7 from inputdata ;
Running your alternative for 10,000 dates took quite some time to create, needed to be put in a file to execute and has been running now for about 15 minutes
select date '2012-10-15' + 1 from dual union all
select date '2012-10-15' + 2 from dual union all
<snip>
select date '2012-10-15' + 9996 from dual union all
select date '2012-10-15' + 9997 from dual union all
select date '2012-10-15' + 9998 from dual union all
select date '2012-10-15' + 9999 from dual union all
select date '2012-10-15' + 10000 from dual
;It is much more code, takes more time to write, is proven to be incredibly slow and shouldn't be used for real production code.
Edited by: 3360 on Oct 5, 2012 9:52 AM
Sorry it took only 12 minutes, it seemed a lot longer when waiting for it
29-FEB-40
01-MAR-40
01-MAR-40
02-MAR-40
10000 rows selected.
Elapsed: 00:12:01.35 -
Hi All,
I am using jdev 11.1.2.0
I am having a VO and VC. when i am executing View criteria .There is no error in it. That query is executing within seconds in TOAD.But in application it is taking lot of time.
And after some time web logic got crashed and message came that query didnt not executed with in 600 seconds or something.
Can we increase server time out for query execution. How to resolve this issue?Hi All,
I am getting this error.Don't know why?Any help
Referer: http://127.0.0.1:7101/OMSApp/faces/InspectionTaskHome.jspx?_adf.ctrl-state=120t0k0j42_3
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: JSESSIONID=kkpvRYybkvsTypwLp1q2lfMtqHlk8LZ8XdCksSlKT5Z2xH6hdhrq!679123754
]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:129)
oracle.net.nt.MetricsEnabledInputStream.read(TcpNTAdapter.java:718)
oracle.net.ns.Packet.receive(Packet.java:295)
oracle.net.ns.DataPacket.receive(DataPacket.java:106)
oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:317)
oracle.net.ns.NetInputStream.read(NetInputStream.java:262)
oracle.net.ns.NetInputStream.read(NetInputStream.java:187)
oracle.net.ns.NetInputStream.read(NetInputStream.java:104)
oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:126)
oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:82)
oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1177)
oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1153)
oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:312)
oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:924)
oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1261)
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1419)
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:135)
oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1228)
oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:893)
oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7154)
oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1227)
oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1413)
oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1319)
oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1304)
oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7083)
oper.model.module.AppModuleAMImpl.executeInstanceNoVc(AppModuleAMImpl.java:857)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:655)
oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2161)
oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3051)
oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:266)
oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1626)
oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2168)
oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
oper.view.PreInspectionBean.ShowSRInstance(PreInspectionBean.java:127)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.sun.el.parser.AstValue.invoke(Unknown Source)
com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1535)
org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:479)
oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:105)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
java.security.AccessController.doPrivileged(Native Method)
oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
weblogic.work.ExecuteThread.run(ExecuteThread.java:178) -
hi
I am keep receiving this message in central administration running server in event viewer
DiscoverSQL2005DBEngineDiscovery.vbs : The Query 'select * from __NAMESPACE where Name ='ComputerManagement'' returned an invalid result set. Please check to see if this is a valid WMI Query.. Object required
adilHi adil,
It seems to be not related to SharePoint issue, I find a similar error post from Operations Manager forum you can take a look
Also another below article of basic troubleshooting of discovery scripts for your reference.
And for the further better assistance regarding this issue, you may want to post Operations Manager forum here.
http://social.technet.microsoft.com/Forums/systemcenter/en-US/21e9de85-5cbc-4217-8d9b-921e13dc88dc/sql-mp-issues-with-discovery-vbs-scripts?forum=operationsmanagermgmtpacks
http://blogs.technet.com/b/kevinholman/archive/2010/03/09/basic-troubleshooting-of-discovery-scripts.aspx
Thanks
Daniel Yang
TechNet Community Support -
DA0003: Exception CS, Unable to run the query execute
Hi all,
I try to use a stored procedure as data provider but i get this error
DA0003: Exception CS, Unable to run the query execute
I use BusObj Full Client 6.5 pointing to SQL2005.
I choose stored procedure as data providers of a new report, then choose the Oledb connection to the database in which the sproc is saved (this sproc executes some queries, all on the same db). Then I fill in the parameter of the sproc and when i click OK I get this error.
The sp works fine if executed from a query tool. Basically it queries BusObj Security Domain in order to get the documents a single user has linked (both enabled and disabled). It doesn't do nothing exceptionall except using some table variables... I tried also with this simple func:
CREATE FUNCTION [dbo].[Yesterday] (@date int)
RETURNS int AS BEGIN
DECLARE @Yesterday int
SET @yesterday = convert(varchar, DATEADD(dd, -1, convert(datetime, str(@date), 112) ), 112)
RETURN(@Yesterday)
END;
But it returns the same error!
I tried changing middleware to the DB from oleDB to ODBC but in this case it doesn't prompt me for parameters and when i click execute it fails saying the sproc expects a parameter...
I have no idea of what the cause may be... Can anybody help please?Hi Alberto,
Could you please test the following solutions to resolve the issue.
Solution1:
Test the issue by inserting the following parameter in .SBO file.
<Parameter Name="Force SQLExecute">Always</Parameter> .
Solution2
Just put SET NOCOUNT OFF in the end of the stored procedure SQL.
If the above doesnu2019t works then please try the following solution.
Solution3
Make the new connection from the scratch using ODBC connection and test the issue.
I hope this will help you.
Regards,
Sarbhjeet Kaur -
How to find last query executed?
Hi All
Can anyone tell as to how can we view the last query executed?
Do we need to write any script for it?
Cheers
Sudhir> connect to sys user then type this script
Brilliant.
SQL> select sql_text from v$sql where first_load_time=(select max(first_load_time) from v$sql) ;
SQL_TEXT
select sql_text from v$sql where first_load_time=(select max(first_load_time) from v$sql)
SQL> -
Report Script returns no data and "java.io.FileNotFoundException" error
When attempting to write to a new file (Eg: C:\TEST.txt), Report Script returns no data and "java.io.FileNotFoundException" error occurs.
This error occurs only in Essbase 9.3.1.3 release, however it works fine in release 9.3.1.0.
After running the report the script, it pops up the follwing message:
"java.io.FileNotFoundException: ..\temp\eas17109.tmp (The system cannot find the file specified): C:\TEST.txt"
When checked the TEST.txt, it was empty.Sorry folks, I just found out the reason. Its because there was no data in the combination what I was extracting.
but is this the right error message for that? It should have atleast create a blank file right? -
Query executes in RSRT but not in BEx Analyzer
Hi Everyone,
I have a query for an infocube and ods object, in the bex analyzer for the infocube the query executes which has around 5000 records but for the ods object which has also 5000 records comes up with this error.
<b>An exception with the type CX_SY_EXPORT_NO_SHARED_MEMORY occurred, but was
neither handled locally, nor declared in a RAISING
Message no. RS_EXCEPTION000</b>
when I execute the query in RSRT it comes up.
After closing and re logging into bex analyzer executes the query for the first but for the second time again it throws up this error.
What could be the problem? Can anyone please let me know. Its really really urgent.
Thanks,
Prashant.hi Prashant,
try check in RSRT, after choose your query, click 'properties' and set cache mode to 'main memory cache without swapping'.
also check oss note 656060-OLAP: Cache main memory displacement not functioning.
hope this helps.
Symptom
Although one of the following two cache modes
Main Memory Cache Without Swapping (mode 1)
Main Memory Cache With Swapping (mode 2)
is set for a query, long runtimes occur when you execute the query. The statistics (table RSDDSTAT) display the database times.
If there is a heavy system load, the following message can also appear: RS_EXCEPTION000: No left space in shared memory.
Other terms
Cache, performance, displacement, shared buffer
Reason and Prerequisites
This problem occurs because the shared memory is insufficiently dimensioned.
<b>Solution</b>
Increase the amount of shared memory. The size of the shared memory should be at least 200 MB. You can refer to transaction RSRCACHE for the amount of memory reserved by the main memory cache (RSRCACHE -> Main Memory: Shared Memory/Buffer Reserved).
The corresponding settings are (at least):
rsdb/esm/buffersize_kb = 200000
and, as a precaution, also
rsdb/esm/max_objects = 10000.
Alternatively, for queries with large resulting quantities, you can convert the Cache Mode in transaction RSRT1 to
Cluster/Flat File Cache for Each Application Server (mode 3)
Cluster/Flat File Cache Across Each Application Server (mode 4) -
Cell definition in Query Design within Bex Analyzer
Hello,
I would like to use special cell definition to visualizing the difference row definition between 2 columns (last year and actual year). With "Cell Definition" function in Query Design within Bex Analyzer there's a option to select a new restricted key figure for a related cell. But as a result I just can see a star (*) against a result number in that field. Do you have an idea, how can I solve this problem?
Thanks and Regards,
NuranHi again Dirk,
there's not a unit problem. We use 2 different restricted key figure definition for a same row. The first restricted (or can be decribed as calculated key figure) key figure must be used in the first column to represent the value of the last year. And at the same row with usage of same text (for example: cost of goods sold)the second restricted key figure should be used to show the value of actual year (B2:costs in euro). The problem is the key figure definitions are totaly different; they're using different account groups etc. Cause of, I wanted to use cell definition function. In the first value field (B1) should be shown first key figure but I just get star (*) and a wrong value in the formula field of excel (between the toolbars and the result area).
Thanks for your reply.
Nuran -
How can I lauch a PDF from a URL from within my Plug-In?
I have my plug-in working pretty good with the exception that I can not figure out how to launch a PDF using a URL. I am able to launch a PDF file from the file path, just not a URL.
Any assistance is appreciated.
GregoryLeonard,
Yes, I want to open a PDF that lives on a web server. I will know the URL to the doc I want to open and I want to open it via a SDK call from within my plug-in. I can open docs from the file system using the following:
AVDocOpenFromFile(compareASFilePath, asFileSys, NULL);
Is there a SDK call that will allow me to open the doc using a URL like 'http://216.24.154.161/files/XXX.pdf' ?
Thanks,
Gregory -
Strange error in query executed via DBLink
Hi,
I am running below big query(existing code in my project) on a oracle database(DB1) schema which accesses data from tables located in a remote oracle database(DB2) schema.
But I am getting error:
ORA-00904: "CERMA"."EFFECTIVE_TO": invalid identifier
ORA-02063: preceding line from <DB_LINK_NAME>
The concerned table is present in remote database and simple "select * from" on the concerned table from DB1 is working properly but when used in below query it is giving the above error.
The system design is as follows:
DB2 - In this database ,Views are created in SCHEMA1 of this database which refer the underlying tables in SCHEMA2 of same database.
e.g. view name = clm_claims_basic_info_vw
DB1 - In this database , synonyms are created(with name same as underlying tables) to access the underlying table data via the views created in DB2.
e.g. synonym name = clm_claims_basic_info
DB1 - Query executed in this database which uses all the synonyms.
e.g.
select ..... from clm_claims_basic_info,clm_claim_scheme_dtl
Also this query was working fine few days back and now suddenly failing without any code-changes, but we don't know what else has changed.
Can you please suggest what could be the reason?
SELECT ccbi.claim_number claim_no, npm.policy_no policy_no,
cgm.group_no company_ref_no, cgm.NAME company_name
FROM clm_claims_basic_info ccbi,
nbs_policy_mst npm,
com_group_mst cgm,
com_product_mst cpm,
clm_member_dtl cmd,
clm_assessment ca,
clm_claim_scheme_dtl ccsd,
clm_plan_dtl cpd,
(SELECT mem_escal.member_escalation_type_vid,
mem_escal.member_max_escal_rate,
mem_escal.member_min_escal_rate,
mem_escal.member_escal_rate,
mem_escal.claim_basic_info_id,
mem_escal.member_esclation_basis_vid,
add_escal.additional_escalation_type_vid,
add_escal.additional_max_escal_rate,
add_escal.additional_min_escal_rate,
add_escal.additional_escal_rate,
add_escal.additional_esclation_basis_vid,
mem_escal.first_escal_dt, mem_escal.escal_dt
FROM (SELECT cerm.escalation_type_vid
member_escalation_type_vid,
cerm.max_escal_rate member_max_escal_rate,
cerm.min_escal_rate member_min_escal_rate,
cerm.escalation_rate member_escal_rate,
ccbi.claims_basic_info_id claim_basic_info_id,
cerm.escalation_basis_vid
member_esclation_basis_vid,
mi_claims_pkg.clm_get_escalation_date_fnc
(ccbi.claims_basic_info_id,
cpd.escal_applies_to_vid,
1,
cpd.escal_applies_to_day,
cpd.escal_applies_to_month_vid,
ccbi.event_dt,
ccbi.clm_acceptance_dt
) first_escal_dt,
NULL escal_dt
FROM clm_claims_basic_info ccbi,
clm_claim_scheme_dtl ccsd,
clm_plan_dtl cpd,
clm_escalation_dtl cede,
com_escalation_rate_mst cerm
WHERE ccbi.claims_basic_info_id =
ccsd.claim_basic_info_id
AND ccsd.plan_id = cpd.plan_id
AND cede.claim_basic_info_id(+) =
ccbi.claims_basic_info_id
AND cede.escal_dt IS NULL
AND cpd.is_escal_apply_id = 'Y'
AND ccbi.product_id = 4
AND cerm.product_id = ccbi.product_id
AND cerm.escalation_basis_vid =
cpd.escal_memben_rate_vid
AND ( ( ccbi.claim_status_vid = 2880
AND ccbi.event_dt
BETWEEN cerm.effective_from
AND NVL (cerm.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
OR ( ccbi.claim_status_vid != 2880
AND cede.first_escal_dt
BETWEEN cerm.effective_from
AND NVL (cerm.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
AND ( ( cpd.escal_memben_rate_vid = 2334
AND cpd.escal_memben_perc =
cerm.escalation_rate
OR ( cerm.escalation_type_vid IN
(3962, 3963, 4442)
AND cerm.escalation_value_by_vid = 4299
OR ( cpd.escal_memben_rate_vid != 2334
AND cerm.escalation_type_vid = 3961
OR (cerm.escalation_type_vid IS NULL)
AND ccbi.record_status = 'A'
AND cpd.record_status = 'A'
AND ccsd.record_status = 'A'
AND cede.record_status(+) = 'A'
AND cerm.record_status = 'A'
AND NOT EXISTS (
SELECT 'X'
FROM clm_escalation_dtl ced1
WHERE escal_dt IS NOT NULL
AND ccbi.claims_basic_info_id =
ced1.claim_basic_info_id
AND ced1.record_status = 'A')) mem_escal,
(SELECT cerma.escalation_type_vid
additional_escalation_type_vid,
cerma.max_escal_rate
additional_max_escal_rate,
cerma.min_escal_rate
additional_min_escal_rate,
cerma.escalation_rate additional_escal_rate,
ccbi.claims_basic_info_id claim_basic_info_id,
cerma.escalation_basis_vid
additional_esclation_basis_vid,
mi_claims_pkg.clm_get_escalation_date_fnc
(ccbi.claims_basic_info_id,
cpd.escal_applies_to_vid,
1,
cpd.escal_applies_to_day,
cpd.escal_applies_to_month_vid,
ccbi.event_dt,
ccbi.clm_acceptance_dt
) first_escal_dt,
NULL escal_dt
FROM clm_claims_basic_info ccbi,
clm_claim_scheme_dtl ccsd,
clm_plan_dtl cpd,
clm_escalation_dtl cede,
com_escalation_rate_mst cerma
WHERE ccbi.claims_basic_info_id =
ccsd.claim_basic_info_id
AND ccsd.plan_id = cpd.plan_id
AND cede.claim_basic_info_id(+) =
ccbi.claims_basic_info_id
AND cede.escal_dt IS NULL
AND cpd.is_escal_apply_id = 'Y'
AND ccbi.product_id = 4
AND cerma.product_id = ccbi.product_id
AND cerma.escalation_basis_vid =
cpd.escal_addben_rate_vid
AND ( ( ccbi.claim_status_vid = 2880
AND ccbi.event_dt
BETWEEN cerma.effective_from
AND NVL (cerma.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
OR ( ccbi.claim_status_vid != 2880
AND cede.first_escal_dt
BETWEEN cerma.effective_from
AND NVL (cerma.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
AND ( ( cpd.escal_addben_rate_vid = 2334
AND cpd.escal_addben_perc =
cerma.escalation_rate
OR ( cerma.escalation_type_vid IN
(3962, 3963, 4442)
AND cerma.escalation_value_by_vid = 4299
OR ( cpd.escal_addben_rate_vid != 2334
AND cerma.escalation_type_vid = 3961
OR (cerma.escalation_type_vid IS NULL)
AND ccbi.record_status = 'A'
AND cpd.record_status = 'A'
AND ccsd.record_status = 'A'
AND cede.record_status(+) = 'A'
AND cerma.record_status = 'A'
AND NOT EXISTS (
SELECT 'X'
FROM clm_escalation_dtl ced1
WHERE escal_dt IS NOT NULL
AND ccbi.claims_basic_info_id =
ced1.claim_basic_info_id
AND ced1.record_status = 'A')) add_escal
WHERE mem_escal.claim_basic_info_id = add_escal.claim_basic_info_id(+)
UNION ALL
SELECT cedo.member_escalation_type_vid
member_escalation_type_vid,
cedo.member_max_escal_rate member_max_escal_rate,
cedo.member_min_escal_rate member_min_escal_rate,
cedo.member_escal_rate member_escal_rate,
cedo.claim_basic_info_id claim_basic_info_id,
cedo.member_esclation_basis_vid
member_esclation_basis_vid,
cedo.additional_escalation_type_vid
additional_escalation_type_vid,
cedo.additional_max_escal_rate
additional_max_escal_rate,
cedo.additional_min_escal_rate
additional_min_escal_rate,
cedo.additional_escal_rate additional_escal_rate,
cedo.additional_esclation_basis_vid
additional_esclation_basis_vid,
cedo.first_escal_dt first_escal_dt,
cedo.escal_dt escal_dt
FROM clm_escalation_dtl cedo
WHERE (cedo.escal_dt, cedo.claim_basic_info_id) =
(SELECT MAX (cedi.escal_dt),
cedi.claim_basic_info_id
FROM clm_escalation_dtl cedi
WHERE cedi.escal_dt IS NOT NULL
AND cedi.escal_dt <= '24-OCT-2013'
AND cedi.claim_basic_info_id =
cedo.claim_basic_info_id
AND cedi.record_status =
'A'
GROUP BY cedi.claim_basic_info_id)
AND cedo.record_status = 'A') ced
WHERE ccbi.policy_id = npm.policy_id
AND ccbi.GROUP_ID = cgm.GROUP_ID
AND ccbi.product_id = cpm.product_id
AND ccbi.claims_basic_info_id = cmd.claims_basic_info_id(+)
AND ccbi.claims_basic_info_id = ca.claim_basic_info_id(+)
AND ccbi.claims_basic_info_id = ccsd.claim_basic_info_id(+)
AND ccsd.plan_id = cpd.plan_id(+)
AND ccbi.claims_basic_info_id = ced.claim_basic_info_id(+)
AND ccbi.record_status = 'A'
AND npm.record_status = 'A'
AND cgm.record_status = 'A'
AND cpm.record_status = 'A'
AND cmd.record_status(+) = 'A'
AND ca.record_status(+) = 'A'
AND cpd.record_status(+) = 'A'
And Ccsd.record_status(+) = 'A'
AND ccbi.claim_number = 'DAX001';I would assume this means that it can't find that column in that table.
Usually this is because the column isn't there, the table/view isn't there, or there's no select permissions to the table/view.
To try to narrow this down try:
SELECT CERMA.EFFECTIVE_TO FROM com_escalation_rate_mst cerma
SELECT CERMA.EFFECTIVE_TO FROM com_escalation_rate_mst@db2 cerma
If the synonym and view names are the same, try the first query in both databases or adjust as necessary.
It could also be a permissions issue, like maybe the schema the link uses to DB2 doesn't have select permissions to that view?
As far as to why it stopped working, I have no idea.
You can approach this from bottom up (start with the tables on DB2 and move up)
or top down (start with the synonyms on DB1 and move down)
That will give you an idea of where the issue lies.
Maybe you are looking for
-
I have tried resetting this, powering it off and on, updating the firmware and it still does not work right. At the moment, I can get internet through the ethernet cable via this wireless router. I also get a wireless signal from the router but it is
-
Hi Moderators, On the data transfers page there is a mistake it is printed as bcd for bdc Expert Forums » ABAP Development » Data Transfers Forum: Data Transfers LSMW, ALE, BCD - forum to discuss various Data Transfer Techniques, Batch Data Communic
-
Hi guys I'm running into some problems with my iBook. Lately it has been extremely slow..nothing will start with less then 10 bounces. I figured it's time to re-install my OS, but then i realized i lost my install disk. I tried using the disk from my
-
Slideshow on iPhoto is taking way too long to export...
I created a slideshow of about 1,200 photos on iPhoto with a slide duration of 13 seconds and an HDTV aspect ratio (16:9). When I tried to export the slideshow i noticed it took an excessive amount of time. I attempted to export it 3 times, all of wh
-
When will the TLFTextField be fully available?
Hi, We are using the new TLF in a project that requires a lot of font embedding and replacing the normal TextField by using the TextFlow and the TextFlowTextLineFactory in actionscript code. However, we also require input fields using the new font em