web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / export oracle query in...
Power Automate
Unanswered

export oracle query into csv file

(0) ShareShare
ReportReport
Posted on by 4

Hi

 

I tried referencing this article but it does not appear to work for me.

 

Solved: Re: Place Oracle Query in CSV File -- Getting Erro... - Power Platform Community (microsoft.com)

 

In message 5 of the thread above they are able to select "Query Results" in the From section, which is the output of the Oracle database.

 

I however am unable to do so. I did test my flow, and I have verified that my Oracle query does create output, the first few lines are as follows

 

{
"statusCode": 200,
"headers": {
"Cache-Control": "no-store, no-cache",
"Pragma": "no-cache",
"Transfer-Encoding": "chunked",
"Vary": "Accept-Encoding",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"x-ms-request-id": "23bea97c-642d-4b82-9e25-50fb73e5d18b",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"x-ms-connection-gateway-object-id": "ee38c3e5-5bb4-404e-aae9-dda69433d7ac",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"x-ms-apihub-obo": "false",
"Date": "Fri, 08 Mar 2024 15:41:00 GMT",
"Content-Type": "application/json; charset=utf-8",
"Content-Length": "67031",
"Expires": "-1"
},
"body": {
"OutputParameters": {},
"ResultSets": {
"Table1": [
{
"OUTAGE_ID": "XYZ",
"PLANNED_START": "2024-02-07T07:00:00",
"PLANNED_END": "2024-02-07T15:00:00",

 

Can anyone offer any assistance? I'm extremely new to powerautomate , powerapps , powerbi, etc.

 

I'm generally trying to query from an oracle database, and dump into a CSV file.

 

thanks in advance.

query-results-fail.jpg
Categories:
I have the same question (0)
  • sunamiwave Profile Picture
    4 on at

    Here's something else i tried which doesn't appear to work, which was a suggestion from the above link

    oracle_query_results.png
  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @sunamiwave 

    "Query Results" does not exist in the Oracle output example you provided.
    What is in the From property for action Create CSV table?

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Missed your screenshot!

    You might have to map fields via a select but first, can you try this in the From property of action Create CSV table?

    body('Execute a Oracle query')?['ResultSets']?['Table1']

     

  • sunamiwave Profile Picture
    4 on at

    Hi

     

    thanks for the tip, but I had to add a step to Parse the JSON. Basically the results of Query an Oracle database produces JSON. I added in that JSON to produce a SCHEMA in the Parse JSON step. afterwards i was able feed that into Create CSV, and then dump it to a file in sharepoint.

     

    csv-example.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard