<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating .xlsx Files For Use in Power BI in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776608#M2644</link>
    <description>&lt;P&gt;Thanks for your suggestions.&amp;nbsp; I'll post my final solution.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 20:27:54 GMT</pubDate>
    <dc:creator>debbiem</dc:creator>
    <dc:date>2021-10-26T20:27:54Z</dc:date>
    <item>
      <title>Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776536#M2638</link>
      <description>&lt;P&gt;I created .xlsx files using SAS on a Linux platform.&amp;nbsp; The files are then FTP'd to Windows and read in Power BI.&amp;nbsp; If the files are not opened in Excel and saved then Power BI cannot read the files and generates an error.&amp;nbsp; Has anyone run into this issue and how did you resolve it?&amp;nbsp; Thx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the SAS code:&lt;/P&gt;&lt;P&gt;proc export data=agt_detail2(drop=csr_id deptname&amp;nbsp; phone_fcr_agent_end_time fox_fcr_exclude_reason)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outfile="/vol3/data/userid/output/fcr/Excluded Calls &amp;amp;runmon. &amp;amp;crm_yr. v7.xlsx"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=xlsx replace;* label;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet = "Agent Detail";&lt;/P&gt;&lt;P&gt;Here is the Power BI error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;An error occurred in the ‘Transform File (2)’ query. DataFormat.Error: The document cannot be opened because there is an invalid part with an unexpected content type. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Part Uri=/xl/worksheets/sheet2.xml], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Content Type=application/xml], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Expected Content Type=application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml].&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Details:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Binary]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776536#M2638</guid>
      <dc:creator>debbiem</dc:creator>
      <dc:date>2021-10-26T16:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776538#M2639</link>
      <description>Try it with a very basic data set and see if it generates the same issues. If not, it's more related to the data than to the file type SAS is creating. If it still errors out with a basic export then its how the file is generated or transferred. &lt;BR /&gt;&lt;BR /&gt;This will allow you to identify the source of the issue more clearly to start debugging it.&lt;BR /&gt;&lt;BR /&gt;proc export data=sashelp.cars&lt;BR /&gt;&lt;BR /&gt;        outfile="/vol3/data/userid/output/fcr/cars.xlsx"&lt;BR /&gt;&lt;BR /&gt;        dbms=xlsx replace;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776538#M2639</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-26T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776542#M2640</link>
      <description>&lt;P&gt;Thank you for your suggestions.&amp;nbsp; The output file contains basic data and the .xlsx file is created using PROC EXPORT.&amp;nbsp; I am using winSCP as the transfer protocol.&amp;nbsp; Once the file is on a Windows server, it can be opened in Excel without any issues.&amp;nbsp; The goal is to directly read the .xlsx file into Power BI without having to manually open and resave it though.&amp;nbsp; I was wondering if anyone has experienced a similar issue with Power BI.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776542#M2640</guid>
      <dc:creator>debbiem</dc:creator>
      <dc:date>2021-10-26T16:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776543#M2641</link>
      <description>In your WINSCP transfer try setting it as a binary file transfer and see if you still have issues.</description>
      <pubDate>Tue, 26 Oct 2021 16:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776543#M2641</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-26T16:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776545#M2642</link>
      <description>&lt;P&gt;Yes, it is set to binary.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776545#M2642</guid>
      <dc:creator>debbiem</dc:creator>
      <dc:date>2021-10-26T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776564#M2643</link>
      <description>Some googling shows this may be a PowerBI problem...I've seen this issue with other SAS generated files being pushed to other systems but if it's binary transferred and Excel is reading it fine, I think the file is being created properly. &lt;BR /&gt;&lt;BR /&gt;There is a VBS script you can use to automate the open/save as but I would also be looking for a better solution myself. Good luck finding a resolution!</description>
      <pubDate>Tue, 26 Oct 2021 18:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776564#M2643</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-26T18:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776608#M2644</link>
      <description>&lt;P&gt;Thanks for your suggestions.&amp;nbsp; I'll post my final solution.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 20:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776608#M2644</guid>
      <dc:creator>debbiem</dc:creator>
      <dc:date>2021-10-26T20:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776637#M2645</link>
      <description>&lt;P&gt;It's a lot easier to port SAS data to Power BI via MS SQL Server then you don't have to worry about spreadsheet translation issues. That's how we do it anyway.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 23:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776637#M2645</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-10-26T23:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776963#M2646</link>
      <description>&lt;P&gt;Thanks for the suggestion.&amp;nbsp; We're exploring this option and will post results asap.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 13:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/776963#M2646</guid>
      <dc:creator>debbiem</dc:creator>
      <dc:date>2021-10-28T13:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .xlsx Files For Use in Power BI</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/821399#M2722</link>
      <description>&lt;P&gt;Looks like this xlsx file has only one sheet. Try exporting the data to csv. Power BI should have no issue opening it.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2022 01:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Creating-xlsx-Files-For-Use-in-Power-BI/m-p/821399#M2722</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-07-03T01:30:53Z</dc:date>
    </item>
  </channel>
</rss>

