Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Data Formatting in BIP Report

Received Response
174
Views
15
Comments

Summary

Data Formatting in BIP Report

Content

Hi,

We have a report in which the database column is a varchar2(4000) field which has very long text. Data is stored with tabs and carriage returns:

AAAAAAAA. AAAAAAAAAAAAA.

AAAAAAAAAAAA,

AAAAAAAAAA

When I do a select in Toad and cut paste the sql output onto textpad, I can clearly see the carriage returns and tabs. But in the report its coming like the following, like one long continious string.

AAAAAAAA. AAAAAAAAAAAAA. AAAAAAAAAAAA, AAAAAAAAAA

How can we bring it into the report just not as a single line but like how we see it in database.

Thank you so much.

«1

Answers

  • Sherry George
    Sherry George Rank 7 - Analytics & AI Coach

    How is the data appearing in XML and what is the template type ?

  • Krishna Challa
    Krishna Challa Rank 4 - Community Specialist

    Sherry,

    Thank you for responding.

    1. We used BI inline layout. We did not use any templates.

    2. XML data is coming like a continious string.

  • Sherry George
    Sherry George Rank 7 - Analytics & AI Coach

    I did try a test in my local(Oracle BI Publisher 11.1.1.9.0, Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ) and the formatting was fine with carriage returns. Though I did find a similar issue documented by Oracle in the following document.

    Oracle Support Document 2109719.1 (OBIEE 11g: When Running An Analysis Answer In BIP All HTML Formatting Is Lost) can be found at: https://support.oracle.com/epmos/faces/DocumentDisplay?id=2109719.1

  • Sherry George
    Sherry George Rank 7 - Analytics & AI Coach

    So it looks like the issue is with how the source data is coming into BI publisher. What is the data model, is it a sql query or something else ?

  • Krishna Challa
    Krishna Challa Rank 4 - Community Specialist

    Its sql.

    I m uploading the xml data and the sql out of how the data is stored in the database.

    Thank you.

    Sql_Output.pngXML Data.png

  • Sherry George
    Sherry George Rank 7 - Analytics & AI Coach

    Ok. If you have the add-in for MS word could you create an rtf template, load the same XML and preview the report. If not you can just create a .rtf document with the data element tag like <?A?> and upload the template and then run the report to see if the formatting is appearing.

  • Krishna Challa
    Krishna Challa Rank 4 - Community Specialist

    Now I understand whats happening:

    1. If I open the xml file in notepad++ it is showing me the carriage return.

    2. If I doubl click and it gets opened in browser, the formatting is getting lost

    I think when it comes to layout, we are losing the formatting.

    Can you pls double click your xml and see if you still see the formatting?

    Thank you.

    NPP1.pngNPP2.png

  • Krishna Challa
    Krishna Challa Rank 4 - Community Specialist

    Do you want to see the xml file?

    Can I export an xml file here?

  • Sherry George
    Sherry George Rank 7 - Analytics & AI Coach

    That is weird. Could you do a test, for the above same test data.

    1. Login to BI publisher

    2. Create a data model using the test data (used above).

    3. Export the data from the data tab and attach here.

    In other words do not try to create a report  but just create a datamodel and export the data (no need to save the data model).

  • Sherry George
    Sherry George Rank 7 - Analytics & AI Coach

    Yes I could see the formatting in the XML. See below. What you could  try is, in your SQL replace html tags in the varchar column  with corresponding ascii (like chr(10) for carriage return) and see if the formatting is retrieved in XML.