Bad URL Created by XML Report Wizard
Hello all,
I don't know if anyone else has run into or published this, but I thought I would as an FYI, and since I burned 90 minutes troubleshooting it.
I used the Report Builder Wizard in shared components, built a query, exported to XML, built my template and loaded it. When completed the system built a URL for me to use in my links...
f?p=&APP_ID.:0:&SESSION_ID.:PRINT_REPORT=Reconciliation_t3
When I ran the report I got a blank screen and nothing happened. Troubleshooting showed that the session was not coming across in the URL called.
Take a note of the Session variable. The wizard created it using &SESSION_ID. not &SESSION.
Remove the _ID and it worked fine.
Hope it helps,
Adam
Adam,
Ok, thanks, APEX 3.0.x was the first version where we introduced report queries, subsequent version do not have this issue anymore. I just verified on our development instance as well as apex.oracle.com
Regards,
Marc
Similar Messages
-
Creating an XML Report from OAF page
Hi All,
I have a requirement to create a PDF report from an OAF page. From the below code , I was able to print the XML with the values.
I know i should map this XML to RTF by creating the Data defiition through XML publisher responsibility.
My understanding :
1. Generate the XML from Conttroller
2. Load the XML to RTF and map the fields
3. Register as Data Definition and RTF
4. Output seen
MY QUESTION IS : If i load the values from the below XML to the RTF and register in the data definition , i will get the same values every time it is right . From my understanding, if the data has to change in the report, ,there should be a way which will directly send the generated xml from the controller to the RTF (Without step2)
I DEFINITELY BELIEVE, THAT I AM MISSING SOME THING HERE . PLEASE HELP ME
public void processRequest(OAPageContext pageContext,
OAWebBean webBean) {
super.processRequest(pageContext, webBean);
OAApplicationModule am =
(OAApplicationModule)pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)am.findViewObject("colorVO1");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
//(XMLNode)vo.writeXML(4,"")
try {
((XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
} catch (IOException e) {
// TODO
throw new OAException("The value of VO is " + vo,
OAException.CONFIRMATION);
System.out.println(outputStream.toString());
Generated XML :
<colorVOEx3Row>
<UserName>abc</UserName>
<UserId>33102</UserId>
<CreatedBy>27241</CreatedBy>
<Clr1>0</Clr1>
</colorVOEx3Row>
<colorVOEx3Row>
<UserName>deg</UserName>
<UserId>33604</UserId>
<CreatedBy>1135</CreatedBy>
<Clr1>0</Clr1>
</colorVOEx3Row>
<colorVOEx3Row>
<UserName>****mno</UserName>
<UserId>33643</UserId>
<CreatedBy>24587</CreatedBy>
<Clr1>2</Clr1>
</colorVOEx3Row>
</colorVOEx3
Please let me know what should me my next steps to generate the report. if i load the XML above to the RTF , irresepscive of my data from teh page, i will always get the 3 rows.i..e..(abc,def,*** mno).
Hope i am clear.Hi Anand,
Thanks for your reply. I have gone through the link you provided . It gave me excellent information. But just one clarification , when we create the data definition, dont we have to add any of the files like 'XML Schema','Data Template','Preview Data','Bursting Control File'.
The reason, i am asking this question is, when i proviously worked with XML reports in 11.10.2, we used to attach a .xml file to the Data Template of the data definition ,which would populate the RTF.
Now here, if i dont attach that file in the data definition, will the XML data direclty mapped from contrlloer ?. I assume ,The only thing i need to do is to MAP the XML tags to RTF before registering ..
Please let me know if i am missing some thing
Thanks
Sunny -
Different methods of creating an XML Publisher report
Hi All,
Can anyone please advice me on different methods of creating an XML Publisher report.
The method which we us is as follows -
1. Create an RDF file and upload the same in the /REPORTS/US path.
2. create a concurrent program, give output as XML.
3. Create a data definition, but here we do not upload any data definition.
4. Create a template and upload the RTF template.
But I have heard that there is a method wherein we do not have to create the RDF and simply adding the query to the XML file works.
But in that case do we upload anything in tht Data defition also ?
Can anyone please provide me any link or some place where I can read about different methods to create an XML report without the use of an RDF.
Regards,
ShrutiHi Shruti,
There is a method where we need not to create RDF as data defination. You need to write a xml file which we upload as data defination. The short name for this data defination used as short name as concurrent program having executable XDODTEXE.
Sample XML data template :
<?xml version="1.0" encoding="UTF-8" ?>
<dataTemplate name="EmpData" description="Employee Details" version="1.0">
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[select business_group_id, business_group_name
from hrfv_business_groups
where date_to is null
and business_group_id not in (0, 82)
order by business_group_id]]>
</sqlStatement>
<sqlStatement name="Q2">
<![CDATA[select employee_number,
title ,
full_name,
sex ,
date_of_birth,
email_address
from per_all_people_f
where business_group_id = :business_group_id
and current_employee_flag ='Y'
and trunc(sysdate) between effective_start_date and effective_end_date
and rownum<11]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_BG" source="Q1">
<element name="BusinessGroupId" value ="business_group_id"/>
<element name="BusinessGroupName" value ="business_group_name"/>
<group name="G_EMP" source="Q2">
<element name="EmpNumber" value ="employee_number"/>
<element name="Title" value ="title"/>
<element name="FullName" value ="full_name"/>
<element name="Sex" value ="sex"/>
<element name="DateOfBirth" value ="date_of_birth"/>
<element name="EmailAddress" value ="email_address"/>
</group>
</group>
</dataStructure>
</dataTemplate>
This data template generates xml data which prints output on rtf template.
Hope this will help. Let me know for more info. -
XML Report - Excel output automatic cell expand
Hi,
I created a XML report with Excel output. It works fine but I have 35 columns in that report.
When I open the excel file - columns are not expanded, user needs to expand it manually.
But It should automatically expanded when the user opens the report. How can i do that?
Thanks in advance.You need to create the rtf template with enough width for each column to render the output fully expanded when viewed from BI Publisher Desktop, which will look the same when run as a concurrent request. If you used the table wizard to create your excel layout, you can widen the columns in Word and paste/enter some spaces before or after each header field in the top row which will force the html rendering that XML Plublisher utilizes to widen the columns when creating Excel output. The fundamental disconnect here is XML Publisher is not rendering .xls or .csv output, but rather html that opens in Excel minus most Excel formatting. You might need to use a 22 inch landscape layout to fit all 35 columns after they are widened.
-
How to open a form from Oracle XML Report .xls Output?
Hi All,
We have a requirement wherein we have one complex SQL query, requirement is to fetch the data from that query and show it to the user. So far, so good. We can either create a report thru' UTL file to show the output to the user or can create a XML report whose output can be in the excel format.
Now user wants to have a hyperlink i.e. when he clicks the BSA (Blanket Sales Agreement) from the report output, it should be able to route him to BSA screen (oracle form), so that he can directly correct the issue with that corresponding BSA on which he clicked.
i.e. requirement is to create a a hyperlink from report output which will route the user to that oracle form with the BSA queried.
Not sure how can we implement this. If anybody has come across this type of requirement, please share your ideas and the approach used so as to accomplish this. Any inputs on this will be highly appreciated.
Cheers!
-SumirHello Sumir,
we create reports in an XML format using http://matzberger.de/oracle/spreadsheet-en.html.
Within these files you can create hyperlinks to a forms application like
http://<applicationserver>/forms/frmservlet?config=xy&p_autoinit_module=ab&p_autoinit_arg=123
With these parameters we call a default forms module (welcome screen) and then start module ab and execute a query for 123. The user then can directly access the data he needs.
Regards
Marcus -
Page number problem in xml report
hi all,
I have created one xml report for purchase order
I want to print the page number and po number for each page ,
to achieve this i have inserted at header section the page number as "1"
but it is displaying for only 1 and 3rd and 5th pages and so on
kindly help me on this
thanks for all in advance.>
i have inserted at header section the page number as "1"
>
why?
>
but it is displaying for only 1 and 3rd and 5th pages and so on
>
of course
use
>
Page numbering
Insert page numbers into your final report by using the page numbering methods of your word processing application. For example, if you are using Microsoft Word:
1. From the Insert menu, select Page Numbers...
2. Select the Position, Alignment, and Format as desired. -
Hi Experts,
I have created the XML report which will generate the output in EXCEL format. I have used the template(rtf) to generate the output. I am facing the critical issue the output file (excel) is giving output with headings( ex: empno,ename,job..)even if there is no record count in the query.
But some times it gives the empty file(excel) without the heading information if the record count is zero.
Could anyone suggest me to solve this error.
Any solution or link will be great help for me. Waiting for your valueable reply
Thanks in Advance,
Ravi.Hi,
Please see if this thread helps.
XML publisher output report in excel format
Re: XML publisher output report in excel format
Regards,
Hussein -
XML Report Issue while generating the Report in EXCEL
Hi All,
I have Created the XML Report which will generate the output in EXCEL format. I am having the issue with the report output in EXCEL.
In my Case,
If I ran the concurrent it got completed normally and the output got completed normally and the output is generated successfully if the data for the input parameter combinations exists.
Issue is if there is no data exists for the combinations of parameters choosen then it gives the output in excel with the headers alone some times. (meaning there is no combinations of data exists for the input given excel is having headers alone).
wiseversa
sometimes the output in excel there is no header part too..(meaning the excel is empty/null).
Could anyone suggest how to resolve the issue so that the output in excel can include the header part if the data not exists for the input given. so that it should not generate the output as blank in excel i want the header alone should be included even if the report has no data for the input combination given.
Its very urgent issue.
Any suggestion will be a great help for me.
Thanks ,
Ravi.Hi,
Please see if this thread helps.
XML publisher output report in excel format
Re: XML publisher output report in excel format
Regards,
Hussein -
XML Report in Arabic login in Oracle apps
Hi,
I have created a XML report in Oracle apps, the data is coming properly from english login.
But when we login from Arabic Login then report does not show any data.
The data does not come even after hard coding the values.
Any clue for the issue..
Below is the main query in the report.
SELECT
PAC1.PAYROLL_ID ,
PAC1.PAYROLL_ACTION_ID ,
HR_PAYROLLS.DISPLAY_PERIOD_NAME(PAC1.PAYROLL_ACTION_ID) PERIOD_NAME,
PRO.PAYROLL_NAME
,TO_CHAR(SYSDATE,'DD-MM-YYYY') REPORT_DATE1
FROM pay_payrolls_f pro,
pay_payroll_actions pac1
,PER_TIME_PERIODS_V V
WHERE pac1.payroll_id = pro.payroll_id (+)
AND pac1.effective_date BETWEEN pro.effective_start_date (+) AND pro.effective_end_date (+)
AND DECODE( PAC1.ACTION_TYPE, 'H', NVL(pay_payroll_actions_pkg.decode_cheque_type(pac1.business_group_id), HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)), 'T', DECODE(instrb(PAC1.LEGISLATIVE_PARAMETERS,'SLA_MODE=Y'), 0, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), NULL, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'SLA')) , HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)) = 'Run'
AND PAC1.Payroll_id = 61--:P_PAYROLL_ID
AND PAC1.time_period_id = V.time_period_id
AND to_char(v.start_date,'MM-YYYY') = '01-2013'--:P_MONTHin the next time use EBS related forums - https://forums.oracle.com/forums/category.jspa?categoryID=3
BTW
looks like that for Arabic language you haven't some data
in your main query you have PER_TIME_PERIODS_V which based on HR_LOOKUPS which depend on session language
CREATE OR REPLACE VIEW HR_LOOKUPS
where FLV.LANGUAGE = userenv('LANG')
...so check data in HR_LOOKUPS for Arabic language
you can check it by query without PER_TIME_PERIODS_V
also you can modify your main query like
select t.PAYROLL_ID,
t.PAYROLL_ACTION_ID,
t.PERIOD_NAME,
t.PAYROLL_NAME,
t.REPORT_DATE1
from (SELECT PAC1.PAYROLL_ID,
PAC1.PAYROLL_ACTION_ID,
HR_PAYROLLS.DISPLAY_PERIOD_NAME(PAC1.PAYROLL_ACTION_ID) PERIOD_NAME,
PRO.PAYROLL_NAME,
TO_CHAR(SYSDATE, 'DD-MM-YYYY') REPORT_DATE1,
PAC1.time_period_id
FROM pay_payrolls_f pro, pay_payroll_actions pac1
WHERE pac1.payroll_id = pro.payroll_id(+)
AND pac1.effective_date BETWEEN pro.effective_start_date(+) AND
pro.effective_end_date(+)
AND DECODE(PAC1.ACTION_TYPE,
'H',
NVL(pay_payroll_actions_pkg.decode_cheque_type(pac1.business_group_id),
HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE',
PAC1.ACTION_TYPE)),
'T',
DECODE(instrb(PAC1.LEGISLATIVE_PARAMETERS, 'SLA_MODE=Y'),
0,
HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
'GL'),
NULL,
HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
'GL'),
HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
'SLA')),
HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE',
PAC1.ACTION_TYPE)) = 'Run'
AND PAC1.Payroll_id = 61 --:P_PAYROLL_ID
) t
left outer join PER_TIME_PERIODS_V V
on (t.time_period_id = V.time_period_id AND
to_char(v.start_date, 'MM-YYYY') = '01-2013' --:P_MONTH
) -
Move order pick slip report XML report not geting out put as templete
Hi,
SUB: i have to create one XML report on .RDF(move order pick slip report).
Submitting procedure move order pick slip report : i have created one Discrete Job and released that Job, then Component pick release for that particular job. then move order number will generates. then automatically fires the Move Order Pick Slip Report.
NOTE: what i meant to say is i am not submitting the report from SRS window. it will fires automatically when move order is generated.
for this i have taken .xml and generated .rtf according to my layout and i have registered with XML publisher also.it is correct . But while running the report i am getiing output as geting codes not in template(wht i have .rtf) format.
if i have to see the output in template from. (i have taken in conc program output as XML also) still same problem.
please help me if anybody having solutions.
Thanks
Venakt MHi,
Looking for some help on this.
Thanks in advance!
Venkat -
Hi,
Can any one help how to create a XML report so that i should be saved in text format OR is there any way where when you click on view output a dialog box with open, save and cancel option appears so that i can save the output in required format.
Thanks,
Dinesh..Hi Dinesh,
Can any one help how to create a XML report so that i should be saved in text format
While defining the respective concurrent program set the output to 'TEXT'. You can do this by:
Sysadmin > Concurrent > Program > Define ; and the select or define the program that you want the output to as TEXT
In the OUTPUT field ensure to have the type as 'TEXT'.
is there any way where when you click on view output a dialog box with open, save and cancel option appears so that i can save the output in required format.
Alternative to the above, while submitting the request after selecting your desired concurrent request , click on Option and change the output type.
Hope this Helps!
Thanks &
Best Regards, -
Preflight XML report differs from droplet report
Hi all,
When i create a xml-report 'by hand' with the preflight tool, it generates much more info then when i use the same preflight profile as a droplet.
In this case i want to extraxt info about page-size and color-separations per page. In the 'hand-made' xml-report i can find this information. When i create the droplet, this info isn't there...
Any suggestions?
Robert Zegwaardsatrajit,
Now I am getting the same error you got, Can you please tell me the solution you found?.
XML Report Publisher 5.0
Updating request description
Waiting for XML request
Retrieving XML request information
Preparing parameters
Process template
--XDOException
java.sql.SQLException: No corresponding LOB data found :SELECT L.FILE_DATA FILE_DATA, DBMS_LOB.GETLENGTH(L.FILE_DATA) FILE_LENGTH, L.LANGUAGE LANGUAGE, L.TERRITORY TERRITORY, B.DEFAULT_LANGUAGE DEFAULT_LANGUAGE, B.DEFAULT_TERRITORY DEFAULT_TERRITORY,B.TEMPLATE_TYPE_CODE TEMPLATE_TYPE_CODE, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.START_DATE START_DATE, B.END_DATE END_DATE, B.TEMPLATE_STATUS TEMPLATE_STATUS, B.USE_ALIAS_TABLE USE_ALIAS_TABLE FROM XDO_LOBS L, XDO_TEMPLATES_B B WHERE L.LOB_TYPE = :1 AND L.APPLICATION_SHORT_NAME= :2 AND L.LOB_CODE = :3 AND L.APPLICATION_SHORT_NAME = B.APPLICATION_SHORT_NAME AND L.LOB_CODE = B.TEMPLATE_CODE AND ( (L.LANGUAGE = :4 AND L.TERRITORY = :5 ) OR (L.LANGUAGE = :6 AND L.TERRITORY = :7) OR (L.LANGUAGE= B.DEFAULT_LANGUAGE AND L.TERRITORY= B.DEFAULT_TERRITORY ) )
at oracle.apps.xdo.oa.schema.server.TemplateInputStream.initStream(TemplateInputStream.java:309)
at oracle.apps.xdo.oa.schema.server.TemplateInputStream.<init>(TemplateInputStream.java:187)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.getTemplateFile(TemplateHelper.java:776)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1269)
at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:807)
at oracle.apps.fnd.cp.request.Run.main(Run.java:148) -
How to send output of a XML report to certain email Ids
Hi,
I have used rdf as well as rtf file and created my xml report. Now i want to send my report output(pdf or excel) to certain email ids and i donot want to use email bursting technique for this. So please tell me the other ways to do this thing.
Thanks,
STHi;
Please also check:
concurrent ouput to email
Re: concurrent ouput to email
Regard
Helios -
Error opening model XML report
I am trying to create an XML Report for my model. When Microsoft Word 2003 attempts to open the report, the following error occurs:
Unrecognized encode. Error location Line:1 column:60
This is line 1 in the xml file: <?xml version = '1.0' encoding = 'UTF8' standalone = 'yes'?>
Any thoughts as to why this error is occurring.
Thanks, EdHi,
Line should be:
<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
That's why you're getting the error.
Have you changed encoding in Tools->Preferences->Environment ?
Needles to ask, but you are using DM3 production version, right? -
App Engine creates XML report but I cannot access it in Report Manager
Here is my application engine code:
import PSXP_RPTDEFNMANAGER:*;
/* XML Publisher report using query data source */
Local string &sRptDefn = "WAP_XML_JAS2";
Local string &sLangCd = "ENG";
Local date &AsOfDate = %Date;
Local string &sOutFormat = "PDF";
Local string &sPrcsServerName;
Local string &sFolder = "XML PUBLISHER";
Local number &prcsInstId;
Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
/* get report definition object */
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&sRptDefn);
&oRptDefn.Get();
/*generate report*/
&oRptDefn.ProcessReport("", &sLangCd, &AsOfDate, &sOutFormat);
/*publish report */
&oRptDefn.Publish(&sPrcsServerName, "", &sFolder, &prcsInstId);
I see my report in Report Manager but it isn't a hyperlink that I can click on to then open the PDF. However if I run my XML report in the XML Scheduler, I see that report in Report Manager and it is a hyperlink.
Any ideas? Did I miss a line of code i need to be able to access it? When I take the url for the one that works and change the Report ID for the one that doesn't work, I get kicked out of the web (says error has occurred and makes me sign in again).
Thanks!
JenniferI was able to get the file to get the hyperlink to appear. I used the following code:
import PSXP_RPTDEFNMANAGER:*;
/* XML Publisher sample report using query data source */
Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
/* create report definition */
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn("WAP_XML_JAS2");
&oRptDefn.Get();
/* specify output destination when output type is file */
If %OutDestType = 2 Then /* file */
&oRptDefn.OutDestination = %FilePath;
End-If;
/* process report */
&oRptDefn.ProcessReport("", WC_WAPXML1_AET.LANGUAGE_CD, %Date, &oRptDefn.GetOutDestFormatString(%OutDestFormat));
/* send output to destination */
If %OutDestType = 6 Then /* Web */
&oRptDefn.Publish("", "", "", WC_WAPXML1_AET.PROCESS_INSTANCE);
Else
If %OutDestType = 3 Then /* Printer */
&oRptDefn.PrintOutput(%FilePath);
End-If;
End-If;
Of course I had to have the following SQL statement in the first step to populate the state record:
%Select(WC_WAPXML1_AET.OPRID, WC_WAPXML1_AET.RUN_CNTL_ID, WC_WAPXML1_AET.LANGUAGE_CD)
SELECT OPRID
, RUN_CNTL_ID
, LANGUAGE_CD
FROM %Table(PRCSRUNCNTL)
WHERE OPRID = %OperatorId
AND RUN_CNTL_ID = %RunControl
Now I am able to get the report in report manager if it is run to the web, or as a file if that option is chosen on the run control.
Maybe you are looking for
-
I'm trying to figure out what is needed for Internet Base Client Management. After researching, it looks like I need to create a certificate from a server. Would this be the SCCM server I'm creating this from or an Enterprise CA Server that we would
-
JRE 6_24 -Xmx1024m being defaulted to 247 MB
I am using <param name="java_arguments" value="-Xms256m -Xmx1024m"/>, but when our applet loads and runs it's memory check only 247m is being made available. I have been able to get it close to working by doing any of the following: - Change -Xmx to
-
Newbie to BI Publisher..preview report giving error msg in word 2007..
Hi, I am new to BI Report. I have installed BI Publisher standalone 10.3.4.1..Generated sample XML file...created report on Bi Publisher and now when I try to do preview it gives me an error message saying that I need to check the path of the file 'D
-
Hi All, We got the following error message while reversing the PGI. " Goods issue for the delivery 123456 cannot be cancelled for the following reasons. Deficit of Customer stock unr. 2 EA : Material Plant V ". Message No : M7021. pease help on t
-
i want to make this script shuod run attomatically. rman target= rman/rman catalog rman/rman run { backup database ; i am using windows 2000. i put this script in task-sedular. the task is run but it stop at rman prompt. it doesnot run backup databas