Read BI Report base64 encoded response
News : 😇
This post published in February 2021 Edition of Oracle PaaS Partner Community Newsletter
In the previous post we have seen the PART 1 of BI Report Invocation. If you don’t have seen that requesting you to first check that out by clicking here.
In this article we will develop the left part (PART 2) i.e. convert the base64 encoded run report operation response and then read it in proper XML format using stage activity.
– Advertisement –
PART 2 : Steps to read the base64 encoded report output.
- Add Assign activity to decode the run report base64 encoded output
- Enter a meaning full name and then click Create
- Click “+” to create one Variable
- Give variable any meaningful name and then click Edit icon
– Advertisement –
- drag an drop the runReport Response (*reportBytes) and then put it inside a String function after that put Complete thing as input of decodeBase64ToReference function
[Please take reference from below image]
- click save and close the assign activity window
- Now lets add one Stage activity to read the response data in xml format
– Advertisement –
- Enter any meaning full name and then click Create
- configure the below parameter as suggested below
Choose Stage File Operation : select Read Entire File
Configure File Reference : Select Yes
Specify the file reference : click edit and drag and drop the assign activity variable in it. click save and Close. Click Next
- select XML Schema (XSD) Document as File Structure and click Next
- select the schema file and then click Next
– Advertisement –
*Note : For your information the above selected schema is actually defining the structure of your BI Report Response. If you want to get the structure of your BI Report Response then just decode the base64 output data (just google base64 decode tool and then paste the base64 output to decode) and after that you can see the XML format. Using this xml you can create the schema file.
![]() |
| Base64 decode Tool |
- Stage Read operation configuration completed , click Done.
- Save the integration and close the window. Activate the integration and submit it to test it.
- Once integration processed successfully, open the monitoring window and check the stage Read Response. You can the see the Report Response in proper readable XML Format. Now you can use these data for further processing in the integration flow.
Thank You !we have successfully developed the integration to invoke BI Report in an integration. If you have any questions please do let me know in comment section.
– Advertisement –
You may also like
34 comments
Leave a Reply Cancel reply
Archives
- November 2024
- October 2024
- May 2024
- June 2023
- December 2022
- October 2022
- September 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- August 2021
- July 2021
- May 2021
- March 2021
- January 2021
- November 2020
- October 2020
- September 2020
- May 2020
- March 2020
- February 2020
- January 2020
- December 2019
- August 2019
- July 2019
- June 2019
- May 2019
- March 2019
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||



















Nice article but to define schema there is an easier way. Go to OTBI Catalogs and run the report and export it as csv. Use the CSV file in the stage activity.
Regards,
Deb
I am a beginner in OIC and thanks for your posts so much. It's very helpful for me to understand the platform. I can't wait to look forward to your next post 😀
Its a pleasure for me,Thank you so much:)
Thanks Dev but this article is written from OIC perspective. For your approach we have to login different environment and do the rest suggested stuff's, which i don't want 🙂
Hi, Thanks for the blog. I would like to know how a report output that is large (>10MB) be handled in this kind of scenario? Appreciate a response.
Thanks
You can use "Read File in Segments" as Stage File Operation
Sir i am big fan of your blog, can you please help to put the report catalog which is used here and xsd schema which is used.
while practicing same i was facing some issue.
Sorry, that is not avilable now :). XSD you can easily create using the steps which I have mentioned above in my post (inside *Note )
BTW, do you know there is a community or forum that I can join and discuss around OIC? Thanks!
Awesome brother. Nice article.
Thanks Hari 🙂
give me some time, will let you know…. 🙂
Thanks, Kabir Yadav!
Hi Kabir ,
The above example is when we have one report generated when OIC integration is executed . If we have multiple reports present when OIC integration is created , how can we read the contents of each report .
By the way, do you know how to build and publish a accelerator and recipes on OIC? I searched in Oracle Docs, but I found nothing about that.
Hi,
I am new to OIC.
I am not able to decode the code through Base64 site. Some junk characters are appearing on Decoded data.
====================
PK 5R xl/worksheets/sheet1.xml[sH ߧj x+ͩIEjjD[ $9Of:'/ŷw7k5
8|Ei2^_DMwqr2ֵ]tJ 1\O4 (4!(.SȷGq^z Ns;ƯLۉ}v*~O?"> 9p=mz9N osݒ3wq;Ak۷H\eZ8 Iϴ3V u#:us/{H9Q p GuQ؟8@upr/4a4uiQzCsҷG[ƏiJ z ZzV5 uX[7*r'K?Z%*?
̩l4ۖju5T rW?3啰 a
===============================================
My BIP report output is in excel.
Regards
Deepak
IF you can send your BIP response then i can try to help you. You can send it personally to my email id (check 'contact me' option at top right hand side)
I think u have to repeat same steps to invoke and read each BIP report.
"Stage activity" should be repeated for each BIP because the output file format (schema)of every BIP response may not be same.
How can we get the report in different formats like csv
Hi Kabir,
For me also its not working, can you please check my mail and share your suggestions.
i replied to your email, please check and confirm back
it's easy, any ERP professional can help you on this
Hi Kabir,
Good article.It will be helpful if you share your knowledge on securities as well in OIC
Very helpful article
Can you create a blog regarding receiving data from SAP via SAP adapter in OIC to ERP further , what kind of use cases we can have for this approach
Thanks Akshay for appreciating my work 🙂
hi kabir,
How do we define schema from the xml that is generated?
1 –> u can do it manually but that's a lengthy process
2 –> u can directly generate it by googling 'generate schema from XML'😋
Hi Kabir, The Stage File Activity -> Read Entire File operation on the variable $decodedValue gave me this error: "Please make sure that the file exists in the specified directory". It is not taking a variable as input instead of a file reference. Kindly advise.
Sorry my bad, I was not using the decodebase64toReference function there.
no problem dear & thanks for informing me, its save my time 😋
Hi Kabir, I am trying to read from a report that contains data in tables. But while specifying the schema I used the xml export from BI Publisher and converted it to .xsd. Things are not working. Can you please let me know how I should format my report(template, tags) for it to be properly consumed by OIC.
This is the error "Error Summary: Error while translating message to the mentioned format.
Please make sure that the file content conforms to the schema."
please try by changing the report format to XML
Hi Kabir,
Can you please make a blog on ERP FBDI process.