How to debug a query that BI Publisher refuses to accept in a data set.
Paste query and hit OK.
Read useless error message.
Remove all report parameters.
Remove all function calls.
Place pairs of parethesis around random bits of code.
Delete one line at a time from query and attempt to hi OK each time.
Whittle down your query until it looks something like this:
SELECT 1 FROM DUAL
Go to Oracle Open World with a sign reading:
END THE ORACLE BUG ARMAGEDDON!
with
search_box_information_view as
(select 1 box_id,111222332 control_number,'In Use' status,to_date('1/1/2015','mm/dd/yyyy') destroy_after_date,55 facility_key_fk from dual union all
select 1,111222333,'In Use',to_date('1/1/2015','mm/dd/yyyy'),1153 from dual union all
select 2,111222334,'In Use',to_date('1/5/2015','mm/dd/yyyy'),1153 from dual union all
select 3,111222335,'In Use',to_date('1/7/2015','mm/dd/yyyy'),1153 from dual union all
select 2,111222336,'In Use',to_date('1/9/2015','mm/dd/yyyy'),55 from dual union all
select 3,111222337,'In Use',to_date('1/12/2015','mm/dd/yyyy'),55 from dual union all
select 4,111222338,'In Use',to_date('1/15/2015','mm/dd/yyyy'),55 from dual union all
select 4,111222339,'In Use',to_date('1/15/2015','mm/dd/yyyy'),1153 from dual
select box_id,control_number,destroy_after_date,facility_key_fk,
count(*) over (partition by facility_key_fk) cnt
From search_box_information_view
where status = 'In Use'
order by facility_key_fk,control_number
BOX_ID
CONTROL_NUMBER
DESTROY_AFTER_DATE
FACILITY_KEY_FK
CNT
1
111222332
01/01/2015
55
4
2
111222336
01/09/2015
55
4
3
111222337
01/12/2015
55
4
4
111222338
01/15/2015
55
4
1
111222333
01/01/2015
1153
4
2
111222334
01/05/2015
1153
4
3
111222335
01/07/2015
1153
4
4
111222339
01/15/2015
1153
4
Similar Messages
-
How to deal with query that works like dir or ls
I just can't figure it out how to deal with query that works like dir (Win32) or ls(unix) with special character like '*' and '?' , ex. c:\> dir j*.t?t
Could somebody please tell me?Here's some code for using a FileFilter for the listFiles() method of the File class:
import java.io.*;
FileFilter myFileFilter = new MyFileFilter("*.t?t");
File[] files = File.listFiles(myFileFilter);
class MyFileFilter implements FileFilter {
private String pattern;
public MyFileFilter(String pattern) {
this.pattern = pattern;
public boolean accept(File file) {
if (file.isDirectory()) {
return false;
if (file.getName() ??matches?? pattern) {
// you'll have to put the pattern match code here!!
return true;
return false;
}maybe someone else can help with the pattern matching! -
How to develop a query in BI Publisher Report
Hi Experts,
I am new to BI Publisher. Could somebody help me how to prepare a query.
Thanks.What version of BI Publisher are you using?
The best way to get started is to look through the Report Designers Guide here for 10.1.3.4: http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187.pdf
For 11g: http://download.oracle.com/docs/cd/E21764_01/bi.1111/e13881.pdf
Take a look at the tutorials: http://st-curriculum.oracle.com/obe/fmw/bi/bip/bip11g/gettingstarted/gettingstarted.htm
and this page for lots of relevant information: http://www.oracle.com/technetwork/middleware/bi-publisher/overview/index.html
Hope that helps. Assign points if helpful
Thanks,
Bipuser -
How to debug Infoset Query in ABAP?
Hi
I have an Infoset Query created by another user, please let me know how to debug this?
Thanks
NagaNagarani - For debugging a infoset query, you have to create a query in SQ01 for the infoset which you are planning to debug. Once the query in transaction SQ01 is generated, Activate the same. Use the following path to generate program for created query from SQ01 QUERY--> MORE FUNCTIONS > GENERATE PROGRAM. Once the program is generated use the path QUERY>MORE FUNCTIONS --> DISPLAY REPORT NAME to get the report name generated. Copy the report name displayed.
While using the menu paths for generating program or displaying report name, make sure the query is selected.
In transaction SE38, give the report name and maintain break points whereever required in display mode and execute the report from se38.
Edited by: Santhoshi Guttula on Jan 6, 2012 7:44 AM -
How to find the query that generates print preview?
Hello,
How can I find the query that gets executed to generate print preview? On SAP Business One client if I open a Sales Quotation and click on print preview a report is generated. What queries are run in the background to generate this report?
Thanks for your help.
Regards,
SheetalHi Sheetal,
In such cases i am using a Profiler which is connected to my company's database. If you are using SQL-Server, the start the "Profiler", connect it to your database server and start the trace. When the trace is running, execute the SBO action. After you executed this action you will see in the profiler the excuted SQL-Statements.
Regards,
Christian -
Help: How to create a query that transpose the column content?
Here, suppose that I have two tables
TAB_A:
ID TYPE
1 AA
1 AB
1 AC
2 BA
2 BB
2 BC
2 BD
I'd like to create a query that gives result as:
ID TYPE
1 AA AB AC
2 BA BB BC BD Any suggestions?
Thank you in advance.
JimmyHi
Try this:
SELECT id,
replace(LTRIM(MAX(SYS_CONNECT_BY_PATH(type,'*'))
KEEP (DENSE_RANK LAST ORDER BY curr),'*'),'*', ', ') AS type
FROM (SELECT id, type,
ROW_NUMBER() OVER (PARTITION BY id ORDER BY type) AS curr,
ROW_NUMBER() OVER (PARTITION BY id ORDER BY type) -1 AS prev
FROM tab_a)
GROUP BY id
CONNECT BY prev = PRIOR curr AND id = PRIOR id
START WITH curr = 1;
Ott Karesz
http://www.trendo-kft.hu -
We are getting multiple 8623 Errors in SQL Log while running Vendor's software.
How can you catch which Query causes the error?
I tried to catch it using SQL Profiler Trace but it doesn't show which Query/Sp is the one causing an error.
I also tried to use Extended Event session to catch it, but it doesn't create any output either.
Error:
The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that
reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.
Extended Event Session that I used;
CREATE EVENT SESSION
overly_complex_queries
ON SERVER
ADD EVENT sqlserver.error_reported
ACTION (sqlserver.sql_text, sqlserver.tsql_stack, sqlserver.database_id, sqlserver.username)
WHERE ([severity] = 16
AND [error_number] = 8623)
ADD TARGET package0.asynchronous_file_target
(SET filename = 'E:\SQLServer2012\MSSQL11.MSSQLSERVER\MSSQL\Log\XE\overly_complex_queries.xel' ,
metadatafile = 'E:\SQLServer2012\MSSQL11.MSSQLSERVER\MSSQL\Log\XE\overly_complex_queries.xem',
max_file_size = 10,
max_rollover_files = 5)
WITH (MAX_DISPATCH_LATENCY = 5SECONDS)
GO
-- Start the session
ALTER EVENT SESSION overly_complex_queries
ON SERVER STATE = START
GO
It creates only .xel file, but not .xem
Any help/advice is greatly appreciatedHi VK_DBA,
According to your error message, about which query statement may fail with error message 8623, as other post, you can use trace flag 4102 & 4118 for overcoming this error. Another way is looking for queries with very long IN lists, a large number of
UNIONs, or a large number of nested sub-queries. These are the most common causes of this particular error message.
The error 8623 occurs when attempting to select records through a query with a large number of entries in the "IN" clause (> 10,000). For avoiding this error, I suggest that you could apply the latest Cumulative Updates media for SQL Server 2012 Service
Pack 1, then simplify the query. You may try divide and conquer approach to get part of the query working (as temp table) and then add extra joins / conditions. Or You could try to run the query using the hint option (force order), option (hash join), option
(merge join) with a plan guide.
For more information about error 8623, you can review the following article.
http://blogs.technet.com/b/mdegre/archive/2012/03/13/8623-the-query-processor-ran-out-of-internal-resources-and-could-not-produce-a-query-plan.aspx
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Hi all,
I have written a query under region source in interactive reports
select getTextColumnByID(:ID,OHR_PARAMETERS,VALUE) as Description,max_mark from max_marks where
employee_id='Z901234';and it throws error as ORA-00904: "VALUE": invalid identifier
How do i debug and locate the probelm?
thanksNo it does not work,,It throws the same error.I found the problem its because the query throws multiple rows where only one row is expected.
the query should be like
select getTextColumnByID('ID','OHR_PARAMETERS','VALUE') as Description,max_mark from max_marks where
employee_id='Z901234';to get compiled. -
How to debug a load that has already happened
Hello Experts,
I have a load from an InfoCube to a DSO. It's a 7.0 dataflow, no start routine, and only straight mapping between object to object. From the InfoCube I have a key figure 0RPA_RLQ being mapped to 0RPA_RLQ which the key figures are loading and appearing correctly in LISTCUBE for the target DSO. However, the unit of measure InfoObject 0SALES_UNIT is also straight mapped to 0SALES_UNIT in the target DSO but the "EA" is not being loaded 100% of the time. These incorrect loads seem to happen randomly.
The load from InfoCube to DSO are Delta Loads. The request in the source InfoCube is being rolled up in a previous step in the process chain. Then after it's rolled up, then it's loaded into the DSO. The loads are always successful.
HOWEVER - when I selectively load one of the records that loaded a blank value for 0SALES_UNIT, then the EA loads successfully. So I can't do a debug using a new load. I need to find out why the OLD delta loads weren't loading correctly.
Any ideas? Thanks!Hi,
Check the key combination of your DSO. It seems that your cube must be having multiple records for DSO's key and that is why Unit is being overwritten.
In DTP, there is a option to simulate data transfer and you can select the data values as well for data load. I think delta from cube happens on request basis, so try debugging your load by giving the selection on Request ID presend in the cube.
Regards,
Gaurav -
How to debug standard report that starts with a transaction?
I want to run a report in debug mode. The report name is RFFMEPGAX, which
is normally run using transaction FMRP_RFFMEP1AX.
I want to start the transaction, fill in the form with the values I need, then
hopefully the report code pops up in a debug window......
Is there a way to do this? I know how to open the debugger, but have not
yet figured out a way to get the initial transaction to open in debug mode.If the transaction starts with a pop-up message, you can create a text file with this...
[System]
Name=R/3
Client=
Description=
[User]
Name=
Language=
Password=
[Function]
Command=/H
Title=Title
Type=SystemCommand
Name it <b>Debug</b> and just drag it to the pop-up window...The debugger is going to start after a single Enter button...
Greetings,
Blag. -
How to write sql query that display comma suppurated result using Group by
Hi,
I am having data like bellow ,
Above result got from joining two tables VMTAGroupClient,VMTAipNames .
Query i have written to display above result is,
select vgc.VMTAGroupId,vn.VMTAName from VMTAGroupClient vgc inner join VMTAipNames vn
on vgc.VMTAID=vn.VMTANameID group by vgc.VMTAGroupId,vn.VMTAName
using the VMTAGroupId column how to write query to display result result like,
VMTAGroupID VMTAs
1 VMTA1,VMTA3
2 VMTA2,VMTA4,VMTA5
Regards,
Anwar ShaikSatheesh,
Here in my case data need to read from two tables VMTAGroupClient, VMTAipNames.
VMTAGroupId is in one table and VMTAName column in some other table.Iin both the tables VMTAID is common.
Please check the above result displayed data from two tables.
can we write same query using join?
Anwar Shaik -
How to write a query with group by and order by for a date column
I have a query:
select count(*), to_char(s.pdate,'Mon-yyyy') as month from sTable s
group by to_char(s.pdate,'Mon-yyyy')
order by to_date(s.pdate,'Mon-yyyy')
However, I got an error: not a GROUP By expression.
If i just run: select count(*), to_char(s.pdate,'Mon-yyyy') as month from sTable s
group by to_char(s.pdate,'Mon-yyyy')
it is work fine.
How to solve the problem.
Thanks,
JenJen,
You can use this code
with sTable as (select to_date('01/01/2009', 'dd/mm/yyyy') pdate, 1 code from dual union all
select to_date('02/02/2009', 'dd/mm/yyyy') a, 2 code from dual union all
select to_date('01/03/2009', 'dd/mm/yyyy') d, 3 code from dual union all
select to_date('05/04/2009', 'dd/mm/yyyy') g, 4 code from dual union all
select to_date('05/05/2009', 'dd/mm/yyyy') g, 4 code from dual union all
select to_date('05/06/2009', 'dd/mm/yyyy') g, 4 code from dual union all
select to_date('05/07/2009', 'dd/mm/yyyy') g, 4 code from dual union all
select to_date('05/08/2009', 'dd/mm/yyyy') g, 4 code from dual union all
select to_date('05/09/2009', 'dd/mm/yyyy') g, 4 code from dual union all
select to_date('05/10/2009', 'dd/mm/yyyy') g, 4 code from dual union all
select to_date('05/11/2009', 'dd/mm/yyyy') g, 4 code from dual union all
select to_date('05/12/2009', 'dd/mm/yyyy') h, 5 code from dual)
select cnt, to_char(to_date(mnt||'01', 'yyyymmdd'), 'Mon-yyyy')
from (select count(*) cnt, to_char(s.pdate,'yyyymm') as mnt
from sTable s
group by to_char(s.pdate,'yyyymm')
order by to_char(s.pdate,'yyyymm')
CNT MONTH
1 Jan-2009
1 Feb-2009
1 Mar-2009
1 Apr-2009
1 May-2009
1 Jun-2009
1 Jul-2009
1 Aug-2009
1 Sep-2009
1 Oct-2009
1 Nov-2009
1 Dec-2009
12 rows selectedyour problem was that you are using a expresión in the order by (to_date...) that is distinct to the query results (to_char...).
Regards,
Mike -
How to move elements within the master region of a Master/Detail spry data set?
Hi there,
I am unsure of how to move the different items within the master region of a master/detail spry dataset. The default style is such that if I include 3 or more elements e.g. Thumb, etc., they are stacked vertically :
How do I move them so that they can be positioned differently? The look I am going for is one where the thumb image is positioned to the left while the other items are stacked alongside it so that the end effect for the master region would look like this:
I greatly appreciate the help! Thanks!This is the complete page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Check :: Fashion+Lifestyle</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMasterDetail_final.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
var cal4 = new Spry.Data.HTMLDataSet("calendarList.html", "calendarList", {sortOnLoad: "When", sortOrderOnLoad: "ascending"});
cal4.setColumnType("Thumb", "html");
cal4.setColumnType("Picture", "html");
cal4.setColumnType("When", "date");
function MM_effectAppearFade(targetElement, duration, from, to, toggle)
Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
function closeAd() {
document.getElementById('adRollover').style.visibility='hidden';
function MM_effectBlind(targetElement, duration, from, to, toggle)
Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
function MM_effectSlide(targetElement, duration, from, to, toggle)
Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
function MM_effectGrowShrink(targetElement, duration, from, to, toggle, referHeight, growFromCenter)
Spry.Effect.DoGrow(targetElement, {duration: duration, from: from, to: to, toggle: toggle, referHeight: referHeight, growCenter: growFromCenter});
//-->
</script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="pageContainer">
<div id="adBanners">
<div id="halfBanner"><a href="#" onClick="document.getElementById('adRollover').style.visibility='visible';"><img src="images/banner_half_1.jpg" alt="Half Banner" width="237" height="90" /></a></div>
<div id="leaderboardBanner"><a href="#"><img src="images/banner_leaderboard_1.jpg" width="728" height="90" alt="Leaderboard Banner" /></a></div>
<div class="clearFloats"></div>
</div><!--div#adBanners-->
<div id="mainHeader">
<div id="homepageLink"><a href="index.html"><img src="images/spacer.gif" width="400" height="100" /></a></div>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="feature.html">FEATURES</a></li>
<li><a href="#">FASHION</a></li>
<li><a href="calendar.html" class="on">CALENDAR</a></li>
<li><a href="#">VIDEO</a></li>
<li><a href="blog.html">BLOG</a></li>
</ul>
</div><!--div#mainHeader-->
<div class="MasterDetail">
<div class="DetailContainer" id="event" spry:detailregion="cal4">
<div class="DetailPicture">{Picture}</div>
<div class="DetailColumn DetailTitle">{What}</div>
<div class="DetailColumn"><div class="DetailLabel">WHEN:</div> {When}
</div>
<div class="DetailColumn"><div class="DetailLabel">WHERE:</div> {Where}
</div>
<div class="DetailColumn">{Details}</div>
</div>
<div id="calHeader"><p><img src="images/calendar_hdr.gif" width="492" height="100" /></p></div>
<div spry:region="cal4" class="MasterContainer" onclick="MM_effectAppearFade(this, 1000, 0, 100, false); MM_effectBlind('event', 1000, '0%', '100%', false);">
<div class="MasterColumn" spry:repeat="cal4" spry:setrow="cal4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected"><div class="MasterColumnPicture">{Thumb}</div>
<div class="MasterColumnTitle">{What}</div>
<div class="MasterColumnText"><div class="DetailLabel">WHEN:</div> {When}</div>
<div class="MasterColumnText"><div class="DetailLabel">WHERE:</div> {Where}</div>
<div style="clear:both"></div>
</div>
</div>
<br style="clear:both" />
</div>
</div><!--div#pageContainer-->
<div id="footer">
<div class="text">Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2008 Adobe All rights reserved. The material on this site may not be reproduced, distributed, transmitted, cached, or otherwise used, except with the prior written permission of Adobe is a trademark owned by Adobe.</div>
</div><!--div#footer-->
<div id="adRollover" style="visibility: hidden;">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '536',
'height', '479',
'src', 'watch_ad',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'watch_ad',
'bgcolor', '#ffffff',
'name', 'watch_ad',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'watch_ad',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="536" height="479" id="watch_ad" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="watch_ad.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent" /><embed src="watch_ad.swf" quality="high" bgcolor="#ffffff" width="536" height="479" name="watch_ad" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html> -
LabVIEW 2011
Looking for ideas on how to debug an application that crashes only from within the executable.
Is there anything useful that this error report can be used for, thanks in advance.
#Date: Tue, Aug 23, 2011 3:10:18 PM
#OSName: Windows 7 Enterprise
#OSVers: 6.1
#OSBuild: 7600
#AppName: LabDAQ
#Version: 11.0 32-bit
#AppKind: AppLib
#AppModDate: 08/23/2011 18:59 GMT
#LabVIEW Base Address: 0x30000000
8/23/2011 3:10:48.331 PM
Crash 0x0: Crash caught by NIER
File Unknown(0) : Crash: Crash caught by NIER
minidump id: a1c0be18-ad05-4b09-b914-afe4a3073daf
ExceptionCode: 0xC0000005± N
0x3072C874 - lvrt <unknown> + 0
0x3072CC28 - lvrt <unknown> + 0
0x7C37FDB4 - MSVCR71 <unknown> + 0
0x77330DF7 - ntdll <unknown> + 0
0x772F9ED5 - ntdll <unknown> + 0
0x00000000 - <unknown> <unknown> + 0
Solved!
Go to Solution.I've been playing that game all morning
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice -
Hello,
Sombody provide me how to debug a query
I could not find good link in sdn
I am looking step by step Instructions how to debuging a query?
Advance thaksHi Roy,
why do you need to debug the query? do you search for information why a specific result appears? If yes, you can execute the query in web or rsrt right click on keyfigure cell and choose keyfigure definition. In that case you will get an explanation about the way the keyfigure is calculated.
If you would like to find out how queries are executed and how OLAP works, choose the option already provided in the other response.
best regards,
Kai
Maybe you are looking for
-
I updated the software for my iPhone 4 from 6.0 to 7.1.2 and now pictures (contact picture/picture ID's) no longer appear (take up the entire screen) when receiving or making phone calls. They only show in a small circle which is not convenient at a
-
I have a Pavilion dv6-1360us Notebook that I believe has a bad DVD drive. The drive will write to a CD but not a DVD. I've tried all of the "fixit" and recommended solutions without success. I found the replacement drive (DVD SATA Optical Drive -
-
Distributed ISE & Distributed PKI = EAP-TLS issues ... Correct?
In a distributed ISE deployment with regional intermediate CA, I am getting failed authentication due to " EAP-TLS failed SSL/TLS handshake because of an unknown CA in the client certificates chain". Client device have only one client certificate is
-
Quick overview of requirement: Create dynamic variants and submit background job which in turns call Samarforms to create OTF spools. Once all the jobs are completed, read spool file(s) and convert them to PDF. The next step is to add these PDF files
-
Launching a JNLP file from IE works inconsistently
Am trying to launch jnlp file from IE. The jnlp file is created via a JSP page by setting the appropriate content type. Problem is it works inconsistently. It gives an error when launching with details as mentioned below: If i keep trying it works fi