Hi all,
I am trying to get a CSV file from an SFTP and convert it into a Microsoft Flow table.
I am using the node 'Get file content using path'. I am getting a strange result back:
{"statusCode":200,"headers":{"Pragma":"no-cache","Transfer-Encoding":"chunked","Vary":"Accept-Encoding","x-ms-request-id":"5d757561-a435-4fe9-9307-8e9e835d8ec0","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"false","Cache-Control":"no-store, no-cache","Date":"Fri, 26 Jul 2019 08:41:00 GMT","ETag":"\"MDcvMjUvMjAxOSAxMjozOTowMnwyNjM1ODc0\"","Location":"https://flow-apim-europe-001-francecentral-01.azure-apim.net/apim/sftp/shared-sftp-2de7d95d-ab1c-4e2e-baad-9c12e259a1a9/datasets/default/GetFileContentByPath?path=%2fdata%2fOutput%2fEneco%2fWorkforcetotaalnieuweopzet%202019-07-22.csv&queryParametersSingleEncoded=True&inferContentType=True","Set-Cookie":"ARRAffinity=2c332eb0db5ff268eb17634beda14804f2bca43e7bf30132b3d64ff1e71387aa;Path=/;HttpOnly;Domain=sftp-ne.azconn-ne.p.azurewebsites.net","Content-Type":"text/csv","Expires":"-1","Content-Length":"2635874"},"body":"sep=;\r\nRespondentId;Datum;Verzenddatum;Datum
Does anybody know how I can process this into a normal Microsoft Flow table so that I can load it into the Oracle database?
Thanks!
Marco
Hi @Anonymous ,
Unfortunately, there is currently no suitable action for Flow to extract the data from the CSV file directly and load it into the HTML Table.
A common approach is to convert the CSV file to an Excel file in advance and load the data into an Excel Table so that it can be processed using the actions contained in the Excel connector.
Please also refer to the method about "read CSV file and write to destination" mentioned in this thread and see if it helps:
https://powerusers.microsoft.com/t5/Flow-Cookbook/read-csv-file-and-write-to-destination/m-p/258524
Best Regards,
Hi,
Ok, I've converted the CSV to Excel and created an Excel Table with success.
See attachment. How can I now loop over each row in the table and write it to the Oracle database?
Thanks.
Marco