Query dataset on BI Publisher

Hi Group,
I'm new to Oracle BI Publisher, I want to ask about :
1. In my query I need to run this :
begin
dbms_application_info.set_client_info(:P_ORG_ID);
end;
how do I did in bi publisher? after that I run query select ... from .. where...
2. If I want to generate temporary table (running package) then after that I run query
select statement again, how do I did in bi publisher?
Thanks
Eko Susanto

What does the application log show?
root part of your install\oc4j_bi\j2ee\home\application-deployments\xmlpserver\application.log

Similar Messages

  • Physical SQL Query of the BI Publisher Report

    Hi,
    Where can we see the Physical SQL Query of the BI Publisher Report with OBIEE as a Data Source? As you people might be knowing, when we chose OBIEE - a logical SQL will/need to be placed.
    Thanks,
    Vency

    I don't see it in NQQuery log:(
    Ideally, it should be because it will hit BI Server. Moreover, I can see it (report's logical SQL) in BI Server Cache.
    Any other thoughts?

  • Parameter is not working in HTTP( XML FEED) dataset in bi publisher 11g

    Hi,
    I have used parameter in BI Publisher 10g for HTTP(XML Feed) dataset to have dynamic url which worked by using ${p_url} where p_url is the parameter.
    The same procedure when I use in BI Publisher 11g is not working.It does not consider the parameter ${p_url} and throws the following exception
    *oracle.xdo.dataengine.datasource.plugin.DataAccessException: java.lang.Exception: java.net.MalformedURLException: no protocol: ${p_url}*
    Has anyone faced this issue?
    Please let me know if am doing something incorrect here.
    Thanks &Regards,
    Balaji

    Thanks for your reply.
    In BI Publisher 10 g we are using it this way ${p_url}.
    p_url is the parameter which gives us the entire URL for the XML feed.
    e.g. p_url=http://rss.news.yahoo.com/rss/topstories
    The p_url takes the entire url.
    Please let me know if this can be done the same way in 11g.
    Thanks,
    Balaji

  • Ssrs parameter default value not showing ,when available values is binded to query dataset

    I have developed a report using sql server data tools for vsiual studio2012 ,i have defined few parameters ,on one of the parameter when available values is binded to a dataset query, the report default value is  not showing in report preview .
    Many Thanks
    Chandra

    Hi Chandra,
    According to your description, you have set the default value for a parameter, but it's not displayed when initially running the report. Right?
    In this scenario, since you have set the available values bind to query, so your default values should be within these available values. If these default values are not within the available values, the default values will be not displayed. So please check
    the default values.
    Reference:
    Add, Change, or Delete Default Values for a Report Parameter (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Multi query reports and BI Publisher?

    I have to create a report that gathers data from DB using several SQL queries - text mixed with data tables. I was not able to find anything like that in Apex 3.0 or BI Publisher. Am I missing something?
    As a solution I was trying to pass more complex, hierarchical XML data structure to BI Publisher with several repeating groups that would serve my purpose. Apex seems to generate only one level XML.
    Is there a way to generate XML file manually and pass it to BI Publisher?
    Thank You
    Janis

    Does anyone have an idea on how to create multi-query report?
    ..or maybe how to manually create XML and pass it to BI Publisher?
    Tahnk you!
    Janis

  • Error when I created a New DataSet on BI Publisher

    When I create a Dataset and i used a Query Builder.
    I used the database of SH. When I used only one table like Products I can see the results. But when I used more tables like Products and Sales and I created their joins with product_id and when I want to view the results. I have the next error.
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    What it's the reason of this problem?
    Thank you for your help.

    What does the application log show?
    root part of your install\oc4j_bi\j2ee\home\application-deployments\xmlpserver\application.log

  • BEx query publishing to Web

    Hi All,
    I developed a BEx query , I want to publish that in Web.Can anybody give steps for that how can we link the BEx query to Web.How to publish?What is the difference between Web Template and attaching a BEx query to Web?
    Pls clarify me
    SM

    Hi,
    Two possiblities:
    1. The simple one: click on the green checkmark in your Bex Query Designer. Then your query is published in the web using the default template (i think its name is 0ANALYZER).
    2. The more complicated (but more fun):
    Use the Web Application Designer (WAD).
    Create a new Web template in WAD
    The drag a table component into the template
    and last, link between the component and your query.
    Save your template and execute it, and voila, your query is in the web (in a web template that you designed!).
    Assign points if this helps,
    Xibi

  • CAML query to get Published items in javascript client object

    Hi,
    I am using the Javascript client object model.
    I am trying to use the CAML query to fetch the Published items. (excluding checked-in but not published) .
    I have tried the below code, but I am not able to get the published items alone. I am getting the checked-in but not published items as well.
    function FetchPages() {
    var clientcontext = new SP.ClientContext.get_current();
    var oweb = clientcontext.get_web();
    var olist = oweb.get_lists().getByTitle("Pages");
    var query = new SP.CamlQuery();
    query.ViewXml = "<Where>
    <Eq><FieldRef Name=\"_Level\" /><Value Type=\"Integer\">1</Value></Eq></Where>";
    query.set_viewXml();
    pagesItems = olist.getItems(query);
    clientcontext.load(NewsItems, 'Include(Title,FileLeafRef,FileDirRef)');
    clientcontext.executeQueryAsync(Function.createDelegate(this, this.RenderHtmlOnSuccess), Function.createDelegate(this, this.RenderHtmlOnFailure));
    function RenderHtmlOnSuccess() {
    var enumerator = this.pagesItems.getEnumerator();
    while (enumerator.moveNext()) {
    var currentItem = enumerator.get_current();
    I am getting items which are published as well as items which are checked-in but not published.
    Update: I have tried this query, but the same result:
    <FieldRef Name='_ModerationStatus' /><Value Type='ModStat'>0</Value></Eq>
    How to fix this?
    Also, I checked this:
    http://mysharepointwork.blogspot.com/2011/03/get-published-version-of-list-item.html
    for (int index = 0; index < item.Versions.Count; index++)
    if (item.Versions[index].Level == SPFileLevel.Published)
    // Got the Item
    How to modify the above code for Javascript client object model?
    Thanks

    Hi,
    Please try to modify the query statement as below and do the test again, it works in my environment:
    var query = new SP.CamlQuery();
    query.set_viewXml('<View><Query><Where><Eq><FieldRef Name=\'_Level\'/><Value Type=\'Integer\'>1</Value></Eq></Where></Query></View>');
    pagesItems = olist.getItems(query);
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • Automatic Refresh of a Merged Power Query giving 'Table Not Registered' error

    Scenario: I have 5 tables in my Azure VM SQL database associated with my ERP system. I have loaded all 5 tables into a 'Build Excel' workbook, merged the tables together and created a dataset that my users will be using.  From that 'Build
    Excel' workbook - I published to the BI catalog a data set simply called 'Customer information and Statistics' - This is searchable by my users and they don't have to go through the effort of combining the 5 tables.
    I have a published workbook that uses the 'Customer Information and Statistics' data set and nothing else.  I tried to schedule a refresh of the data and it failed (below is the error when I did a manual refresh):
    OnPremise error: Sorry, the data source for this data connection isn't registered for Power BI. Ask your Power BI admin to register the data source in the Power BI admin center. An error occurred while processing table 'Customer Information and Statistics'.
    The current operation was cancelled because another operation in the transaction failed.
    So, going down that rabbit hole, I began the process of 'registering' this in Power BI - however, when I copied in the connection string it began walking me through a process of providing credentials to the 5 tables in my SQL server - that are already exposed
    in my main data Sources.  I figured I would continue and tried to use the service account credentials that my main data sources use and it would not properly authenticate.
    Taking a step back it prompted a few questions:
    Why am I being asked to register these 5 merged data sources that are already exposed in my base data sources?
    Is my approach of creating 'Friendly named' Merged datasets for my users an incorrect approach?
    Is there a different method I should be using to establish autorefresh on Merged datasets in these published workbooks using Power Query?
    Thanks for the help -
    Tom Grounds

    Tom, can you submit this as a bug in the UI via the Smile Frown button?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Field Names for Answers reports in Publisher.

    I have found that the field names(xml element names) that publisher creates for datasets created from BI Answers reports are taken from the formula section of the field.
    This creates two big problems.
    1. The field names can be huge if you have a complicated formula in the field for BI answers. Good luck using that as anything but dropping on a page.
    2. If the formula in the BI Answer report is changed in anyway the link between the field in the template and publisher is broken as publisher renames the data field name (xml Element).
    Is there another layer of abstraction I can use to counter this? Some type of datafield mapping? Maybe something I can do in BI Answers?
    Assume not all of my Datafields can be fixed by moving the formula to the RPD layer for calculation.
    This is sort along the lines of previous thread. The method:
    REPORT NAME -> Data Model -> Groups -> GROUP NAME -> Right Click on the field name -> Property Palette -> XML Tag
    Does not seem to work in my version of Publisher. Or I need more help with it. I have not Groups Option.
    Anyway to change the XML element name

    The closest you can get to this is importing a query from the Answers catalog into Publisher, but there huge limitations to what you can then do with it. The chances are it will not actually meet your requirements and you will end up building the query from scratch in Publisher.
    Publisher isn't always as easy to use as it might seem, I would urge you to look at the examples on OTN and follow the tutorials to get a better idea of what is possible, there is too much to explain through the forum.
    http://www.oracle.com/technology/obe/obe_bi/bipub/index.html
    Regards
    Ed

  • Xsl:if not working in bi publisher template

    Hi,
    I have a template which has form field, which I defined as below:
    <xsl:if test="string(number((//ROW/TOTALDATACHECKS))) != 'NaN' ">
    <xsl:value-of select="format-number((1-(sum(//ROW/TOTALDATADISCREPANCIES) div sum(//ROW/TOTALDATACHECKS)))*100,0.00)"/>%
    </xsl:if>
    I see that, if I replace xsl:value-of tag with plain text "xxxxx" , it is rendering fine in the rendered report. But I need xsl:value-of to evaluate the farmula I have in the above implementation.
    I did the above implementation to avoid xsl errors in case of denominator in the farmula being null.
    Please suggest solution for the xsl:if issue I had. Any alternate solution to avoid xsl error for denominator being null is also welcome.
    Thanks,
    -Vijay-

    I am using rtf file as a template in BI Publisher. The rtf file has several form fields which gets populated by the sql query executed by BI Publisher.
    The form field I was referring has a farmula in which the denominator has a field read from sql query result. When the denominator becomes zero, BI publisher is throwing error and not rendering report.
    To handle above scenorio, I pasted the xsl piece of code (pasted in my first post of this thread) in that to handle this. But for the reason mentioned in the prior post its not successful.

  • XML publisher report thru fnd_request.submit_request

    Hi All,
    I have oracle application 11.5.10.2 and created many XML publisher reports in RTF format (RDF as a source of XML output) . Now i want to run these reports thru fnd_request.submit_request and generate report output in PDF.
    I have successfully submitted request with required report parameters and request successfully complete without any error but concurrent program does not generate any report output.
    If i run this report as a text output then i get report output thru fnd_request.submit_request.
    Can any one tell me about solution?
    Thanks
    XMLP User

    Try to post your query in the 'XML Publisher' forum, you might get more help:
    BI Publisher

  • PDFs using BI publisher and special characters - pound sterling

    I have a table with character strings which include the £ pound sterling sign.
    If I create an xml file from the table using the escape sequence for the pound sign & # 163; and load it into BI publisher, the pdf renders correctly using an rtf template.
    If I include the pound sign in the rtf template itself the pdf renders correctly and if I use a report query in Apex based on the table, and an rtf template then the pdf renders correctly.
    However there is a limit to the number of columns that can be sent to BI via the report query - we have found this to be 119 columns. For more than this we have been using a stored function to return xml data as a clob and use the clob to generate the pdf with the rtf report layout (using get_print_document). This method works fine but the pound sign is not rendered correctly (appears as "?").
    The NLS_LANG is set to english_united kingdom in the database and in BI publisher. The locale in bi publisher is en_GB. BI will create the pdf correctly with the pound sign if using a standard xml file (with escape seq for pound) so I am sure it is not a language issue in BI/Apex.
    Any ampersands in the xml cause the pdf to fail completely and we cannot represent special characters with a sequence containing the ampersand for this reason. I have tried "& # 163;" and "& amp;#163;" and variations and have also tried using CDATA, none of which gives the correct pdf output. I have also tried to switch the encoding to Windows-1252 or ISO-8859-1 in the header of the xml (xml generated by stored procedure so can control this), but this gives incorrect results too.
    We also need to send other special characters to BI via get_print_document and apex (bullet points, ampersands, dashes ) but cannot use the escape sequences because of the ampersand problem.
    Has anyone had any success with this?
    Is there any plan ( for a future version of Apex) to increase the number of columns that can be used in report query using Apex/BI publisher?
    Thanks
    Kathryn

    Hi Kathryn
    I've had exactly the same problem as you've mentioned.
    Firstly, I've also found that I cannot select more than 119 columns from a view using a report query and have opted to the use the stored function to return the xml (same as you).
    After conducting a lot of searching and experimenting i've found that you can use the following escape characters in REPLACE in your stored function:-
    '£' can be replaced with CHR(194)||CHR(163)
    '%' can be replaced with '%25'
    '&' can be replaced with '%26amp;'
    I found the above escape characters from the xml file or by opening the xml file in Wordpad. Therefore I'm sure you'll be able to find the escape characters for the other symbols that you mentioned i.e. bullet points, dashes etc.
    I hope this has helped. Good luck and let me know if you get any developments with the limitation on the number of columns that can be selected from a report query as this would save a lot of trouble (as I'm sure you're aware).
    Thanks
    Natalie

  • Which is better to use: BEx query or Web Application as an iView in portal?

    Hi gurus!
    Are there any experienced opinions, which is better - publish a BEx query in portal or publish a BEx Web Application in portal? Is it easier to alter the layout attributes etc. if I create a BEx Web Application first before publishing?
    What is the way of fixing for example filter item height if I publish BEx query in portal - is there a Web Application that it uses anyhow which I can fix? Or can I use in that case iView -properties in portal?
    Thankful for advice
    Sari

    ok, means i can use jsp:useBean tag for all my
    classes that are not actually bean. so it will be
    instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
    >
    but when should i use import statement in my jsp and
    it happen at translation time so will it create any
    type of burden for my code if i import multiple
    classes.For non-java beans, you need to import the classes, period.
    It's not a burden, it's a necessity.

  • Problem in publishing web service

    i am getting problems in publishing coffee break
    service given in jawa web server development package
    exercise samples
    i ran "ant run-publish"
    i got the below response:
    javax.xml.registry.JAXRException:JAXR.UDDI.091:No
    concept specified for this classification
    at
    sun.com.xml.registry.uddi.UDDIMAPPER.classification2CategoryBag(Unknown
    Source)
    at
    sun.com.xml.registry.uddi.UDDIMAPPER.organisation2BuisinessEntity(Unknown
    Source)
    at
    sun.com.xml.registry.uddi.UDDIMAPPER.organisations2BuisinessEntities(Unknown
    Source)
    at
    sun.com.xml.registry.uddi.UDDIMAPPER.saveOrganisations(Unknown
    Source)
    at
    sun.com.xml.registry.uddi.BuisinessLifeCycleManagerImpl.saveOrganisations(Unknown
    Source)
    at JAXRPublish.executePublish(Unknown Source)
    at JAXRPublish.main(Unknown Source)
    The code is :
    import javax.xml.registry.*;
    import javax.xml.registry.infomodel.*;
    import java.net.*;
    import java.security.*;
    import java.util.*;
    * The JAXRPublish class consists of a main method, a
    * makeConnection method, and an executePublish
    method.
    * It creates an organization and publishes it to a
    registry.
    public class JAXRPublish {
    Connection connection = null;
    public JAXRPublish() {}
    public static void main(String[] args) {
    ResourceBundle bundle =
    ResourceBundle.getBundle("JAXRExamples");
    String queryURL =
    bundle.getString("query.url");
    String publishURL =
    bundle.getString("publish.url");
    // Edit to provide your own username and
    password
    // Defaults for Registry Server are
    testuser/testuser
    String username =
    bundle.getString("registry.username");
    String password =
    bundle.getString("registry.password");
    JAXRPublish jp = new JAXRPublish();
    jp.makeConnection(queryURL, publishURL);
    jp.executePublish(username, password);
    * Establishes a connection to a registry.
    * @param queryUrl     the URL of the query registry
    * @param publishUrl     the URL of the publish
    registry
    public void makeConnection(String queryUrl,
    String publishUrl) {
    * Specify proxy information in case you
    * are going beyond your firewall.
    ResourceBundle bundle =
    ResourceBundle.getBundle("JAXRExamples");
    String httpProxyHost =
    bundle.getString("http.proxyHost");
    String httpProxyPort =
    bundle.getString("http.proxyPort");
    String httpsProxyHost =
    bundle.getString("https.proxyHost");
    String httpsProxyPort =
    bundle.getString("https.proxyPort");
    * Define connection configuration properties.
    * To publish, you need both the query URL and
    the
    * publish URL.
    Properties props = new Properties();
    props.setProperty("javax.xml.registry.queryManagerURL",
    queryUrl);
    props.setProperty("javax.xml.registry.lifeCycleManagerURL",
    publishUrl);
    props.setProperty("com.sun.xml.registry.http.proxyHost",
    httpProxyHost);
    props.setProperty("com.sun.xml.registry.http.proxyPort",
    httpProxyPort);
    props.setProperty("com.sun.xml.registry.https.proxyHost",
    httpsProxyHost);
    props.setProperty("com.sun.xml.registry.https.proxyPort",
    httpsProxyPort);
    try {
    // Create the connection, passing it the
    // configuration properties
    ConnectionFactory factory =
    ConnectionFactory.newInstance();
    factory.setProperties(props);
    connection = factory.createConnection();
    System.out.println("Created connection to
    registry");
    } catch (Exception e) {
    e.printStackTrace();
    if (connection != null) {
    try {
    connection.close();
    } catch (JAXRException je) {}
    * Creates an organization, its classification,
    and its
    * services, and saves it to the registry.
    * @param username the username for the registry
    * @param password the password for the registry
    public void executePublish(String username,
    String password) {
    RegistryService rs = null;
    BusinessLifeCycleManager blcm = null;
    BusinessQueryManager bqm = null;
    try {
    rs = connection.getRegistryService();
    blcm = rs.getBusinessLifeCycleManager();
    bqm = rs.getBusinessQueryManager();
    System.out.println("Got registry service,
    query " +
    "manager, and life cycle manager");
    // Get authorization from the registry
    PasswordAuthentication passwdAuth =
    new PasswordAuthentication(username,
    password.toCharArray());
    Set creds = new HashSet();
    creds.add(passwdAuth);
    connection.setCredentials(creds);
    System.out.println("Established security
    credentials");
    ResourceBundle bundle =
    ResourceBundle.getBundle("JAXRExamples");
    // Create organization name and
    description
    Organization org =
    blcm.createOrganization(bundle.getString("org.name"));
              //System.out.println(bundle.getString("org.name"));
    InternationalString s =
    blcm.createInternationalString(bundle.getString("org.description"));
    org.setDescription(s);
    // Create primary contact, set name
    User primaryContact = blcm.createUser();
    PersonName pName =
    blcm.createPersonName(bundle.getString("person.name"));
    primaryContact.setPersonName(pName);
    // Set primary contact phone number
    TelephoneNumber tNum =
    blcm.createTelephoneNumber();
    tNum.setNumber(bundle.getString("phone.number"));
    Collection phoneNums = new ArrayList();
    phoneNums.add(tNum);
    primaryContact.setTelephoneNumbers(phoneNums);
    // Set primary contact email address
    EmailAddress emailAddress =
    blcm.createEmailAddress(bundle.getString("email.address"));
    Collection emailAddresses = new
    ArrayList();
    emailAddresses.add(emailAddress);
    primaryContact.setEmailAddresses(emailAddresses);
    // Set primary contact for organization
    org.setPrimaryContact(primaryContact);
    // Set classification scheme to NAICS
    ClassificationScheme cScheme =
    bqm.findClassificationSchemeByName(null,
    bundle.getString("classification.scheme"));
    // Create and add classification
    Classification classification =
    blcm.createClassification(cScheme,
    bundle.getString("classification.name"),
    bundle.getString("classification.value"));
    Collection classifications = new
    ArrayList();
    classifications.add(classification);
    org.addClassifications(classifications);
    // Create services and service
    Collection services = new ArrayList();
    Service service =
    blcm.createService(bundle.getString("service.name"));
    InternationalString is =
    blcm.createInternationalString(bundle.getString("service.description"));
    service.setDescription(is);
    // Create service bindings
    Collection serviceBindings = new
    ArrayList();
    ServiceBinding binding =
    blcm.createServiceBinding();
    is =
    blcm.createInternationalString(bundle.getString("svcbinding.description"));
    binding.setDescription(is);
    // allow us to publish a fictitious URL
    without an error
    binding.setValidateURI(false);
    binding.setAccessURI(bundle.getString("svcbinding.accessURI"));
    serviceBindings.add(binding);
    // Add service bindings to service
    service.addServiceBindings(serviceBindings);
    // Add service to services, then add
    services to organization
    services.add(service);
    org.addServices(services);
    // Add organization and submit to registry
    // Retrieve key if successful
    Collection orgs = new ArrayList();
    orgs.add(org);
    BulkResponse response =
    blcm.saveOrganizations(orgs);
    Collection exceptions =
    response.getExceptions();
    if (exceptions == null) {
    System.out.println("Organization
    saved");
    Collection keys =
    response.getCollection();
    Iterator keyIter = keys.iterator();
    if (keyIter.hasNext()) {
    javax.xml.registry.infomodel.Key
    orgKey =
    (javax.xml.registry.infomodel.Key) keyIter.next();
    String id = orgKey.getId();
    System.out.println("Organization
    key is " + id);
    } else {
    Iterator excIter =
    exceptions.iterator();
    Exception exception = null;
    while (excIter.hasNext()) {
    exception = (Exception)
    excIter.next();
    System.err.println("Exception on
    save: " +
    exception.toString());
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // At end, close connection to registry
    if (connection != null) {
    try {
    connection.close();
    } catch (JAXRException je) {}
    Please solve my problem.

    I have the same problem when trying to deploy a simple web service with longs and bytes. I still don't know where the error comes from. Did you find something out? Any answer would be welcome.

Maybe you are looking for