Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell :: Importing XLSX file issues. Data not reading correctly

$
0
0

Hello my fellow scripters,

There are 2 issues I am struggling with

I have a file that I need to read with Poweshell and process the data.  Sounds easy enough, but it doesnt seem to be working all that well.

When I use Import-Csv I get a screen full of crap.

z�Ş$]Ԭu�i����2���Y��&�f�$��អ޶�K�/R{f�ߓ�ʎ�3I�|�9���7����I��T��P�Tq� �k�0�����DvI�? �C�����g�/��w��E�u...                                                                   
�_���v` $��Wq���]�GT�v�k�y��=��A�������]�ً�S�ŭ�a�F�Ɋ��J=@����ms ��...                                                                                                     
rגi��a�g{�E���;�Hlg2��"�LD�V<B 3�ʽ芩                                                                                                                                      
��� �'�!���}���h�d�f��S�P�c[-�{�A� IfP�x4���J\�b

If I manually open the file and save as a CSV and then read, it seems to be working.

The second issue is that the file is sent with data in the first row, then the headers, then the data.  I would like to remove the first row and only keep the headers and data unless I can parse through the data without removing the first row.

I was told that there is no other way to get the file to me, so its all I have to work with.

The server where this is running from will not have Excel installed.  I am not a noob by any means, but I think this is beyond my PS experience working with Excel.

Any help would be great!

Thanks

EFD


If you're going to answer my question with pretentiousness or disrespect, move on to another question. I don't need your help. Thank you


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>