Data not exporting to CSV

I know this is going to be stupid and i'm kicking myself for not seeing why this is not working. But in my ELSE statement when i pipe that to a .csv i am getting blank lines.
It outputs to the console fine just nothing in the .csv file.
Thoughts ?
Function get-mdtbuiltcomputers {
param (
    [string[]]$computername='localhost'
    foreach ($comp in $computername) { 
    $path=Test-Path "\\$comp\c$\Windows\smsts.ini"
    $connected = Test-Connection -quiet -count 2 -delay 2 -ComputerName $comp
        if ($path -and $connected) {
                $file=Get-ChildItem \\$comp\c$\Windows\smsts.ini
                $Output = [ordered]@{'Computername'=$comp;
                                     'MDT Image Date'=$file.creationtime
            $obj = New-Object -TypeName psobject -Property $Output
            Write-Output $obj
        else
            Write-Output "$comp is unavailable or not a Standard MDT Image"
Rich Thompson

FYI:
Here is a good way to guarantee consistent object generation.
Function get-mdtbuiltcomputers {
param (
[string[]]$computername='localhost'
foreach($comp in $computername){
$p=[ordered]@{
Computername=$comp
Status='Unavailable or not a Standard MDT Image'
MDTImageDate=$null
$path=Test-Path "\\$comp\c$\Windows\smsts.ini"
$connected = Test-Connection -quiet -count 2 -delay 2 -ComputerName $comp
if($path -and $connected){
$file=Get-ChildItem \\$comp\c$\Windows\smsts.ini
$p.Status='Available'
$p.MDTImageDate=$file.CreationTime
New-Object PsObject -Property $p
Avoid adding spaces in Property names.
¯\_(ツ)_/¯

Similar Messages

  • SubReport Data not Exported to Excel Crystal Version10

    Hi,
    I have a main report and subreport in page header which displays Company Name ,
    When I export the report data to excel only the main report data is exported no subreport data is exported.
    Please can anyone let me know if this is a bug ... or am I missing out anything.
    I am using crystl reports version 10
    Cheers
    Rahul

    Hi Rahul
    As the subreport is placed in the page header, it will not export the data of the subreport to MS Excel Data only. This is an export limitation.
    In order to display the data of the subreport you can either use MS Excel (not Data only) or place the subreport in other sections of the main report.
    Thanks
    Poonam Thorat

  • RAW image date not exporting

    Hi there
    Currently I shoot everything as JPG, but would like to start using RAW on my Canon 300D. I have done a few trials, and find one thing perplexing – if I shoot in RAW the image date shows up in Aperture. When I export and add the exported JPG to my iView catalog, no Capture Date (image date equivalent) shows up. When I do the exact same steps after shooting in JPG, the Capture Date appears without any problem.
    Is there a way to have the image date added to the metadata of the exported image?
    Hannes

    I'm not sure about this but the problem may be that there are different "flavors" of EXIF data. I believe there's a basic set of data that all camera manufactures have agreed to and then there's custom EXIF data specific to a camera, lens, strobe, or manufacturer.
    It may be that Apple has chosen to only support the generic flavor(s) of data while ignoring the custom ones. I think that's why cell phone syncing with Address Book only gets some data to the phone. Pictures, groups, and the like are probably different for every phone and Apple decided not to support it. But I don't know that with certainty.
    If you want to see what data is actually in the original and the exported files download a free copy of ExifTool by Phil Harvey from http://www.sno.phy.queensu.ca/~phil/exiftool/
    It's a great tool and shows me more data for my Cannon camera's images than Canon's own software does.
    MacBook Pro 17" (with crappy screen)   Mac OS X (10.4.8)  

  • Ssrs 2008 r2 export to csv file problem

    In an SSRS 2008 R2 report, the users are going to export the data to: csv (comma delimited) and  excel.
    I am using the following to display if a column is visible or not:
    =IIF(Mid(Globals!RenderFormat.Name,1,5)="EXCEL" AND First(Len(Fields!CustomerNumber.Value)) > 0,False,true).
    I have set the DataElementOutput=Output for the textbox that displays the value. I have left  DataElementOutput=Auto for the textbox that contains the column header.
    When exporting to csv (comma delimited) or excel, I basically want the column to be visible when there is data in the field and the column not to be visible when there is no data.
    The code works for excel but the code does not work for comma delimited.
    Thus can you tell me what I can do so the column is not disaplyed when the data is exported to csv (comma delimited)?

    I don't think what you are trying to do is supported in .CSV files as it only saves text and values.  See the following article:
    http://office.microsoft.com/en-us/help/excel-formatting-and-features-that-are-not-transferred-to-other-file-formats-HP010014105.aspx
    If you open a .CSV file using excel you can use formulas, but if you try and save it, it will not allow you to.  I assume this is what you are trying to do.

  • 10g exporting to CSV using client_text_io is not working correctly.

    I have an odd issue which i could do with some help with. I run an function that exports to CSV based on an pre defined record group.
    This has been working fine for many months with various customers. Recently a new customer used it and they have 28k rows in his record group and the export is actually not exporting correctly.
    The record group has a record count of 28331.
    The CSV produced has only 3756 in my CSV file. These are the last 3756 records in the Record group so its as if its overwriting the data as it goes yet all smaller datasets work
    FUNCTION fun_export_csv (vgraphid NUMBER, p_filename VARCHAR2)RETURN BOOLEAN IS
      out_file                      client_text_io.file_type; 
         i                                             NUMBER;
      lv_line              VARCHAR2(5000);
    BEGIN
    rg:=populate_group('RG11_EXP');               
    synchronize;
    lv_line:= ('"GIN","Gin Date","PO Num","PO Required Date","Mat Num","Mat Description","Supplier Part No","On Time Delivery(Yes-1, No-0)"');
    client_text_io.put(out_file, lv_line);
    client_text_io.new_line(out_file,1); 
    For i in 1..get_group_row_count('RG11_EXP') Loop--this count is 28331
    lv_line:= ('"'||get_group_number_cell('RG11_EXP.col1', i )                 ||'"'|| ',' ||'"'||
         get_group_date_cell('RG11_EXP.grn_date', i )                 ||'"'|| ',' ||'"'||                                          
         get_group_number_cell('RG11_EXP.po', i )       ||'"'|| ',' ||'"'||
         get_group_date_cell('RG11_EXP.daterqd', i ) ||'"'|| ',' ||'"'||
         get_group_char_cell('RG11_EXP.item_no', i ) ||'"'|| ',' ||'"'||
         get_group_char_cell('RG11_EXP.desc', i )                    ||'"'|| ',' ||'"'||
         get_group_char_cell('RG11_EXP.part_no', i )               ||'"'|| ',' ||'"'||
         get_group_number_cell('RG11_EXP.ontime', i )                    ||'"');
    client_text_io.put(out_file, lv_line);
    client_text_io.new_line(out_file,1); 
    END LOOP;     
    client_text_io.FCLOSE(out_file);
    RETURN TRUE;          

    Hello,
    Try to insert a "synchronize" instruction from time to time:
    i  pls_integer := 1;
    Loop
      If mod(i, 500) = 0 Then
         synchronize;
      End if ;
      i := i + 1 ;
    End loop;
    ...<p>But keep in mind the the CLIENT_TEXT_IO generate a lot of network traffic, so it is better and faster to generate the file on the A.S., then after transfer it to the client machine.</p>
    Francois

  • How export to csv work in safari browser? In my application export to csv open like a raw data in new tab. But other browsers working great!. Need to open in a csv file or save it as a csv file.

    How export to csv work in safari browser?
    In my application export to csv open like a raw data in new tab.
    But other browsers working great!.
    Need to open in a csv file or save it as a csv file.
    Please suggest me. Thank you in advance!.

    Hi Adrian,
    Why don't you try any another software for opening CSV files then Notepad ? According to my experience, you can use these softwares to open an CSV files and they are:-
    Microsoft Excel
    Open Office Calc
    Google Docs
    Also there is an additional tool available known as CSV viewer. You may try this, download it from here http://www.csvviewer.com/
    I've never used Notepad for opening CSV files, because sometimes it contains some symbols which are not not at all compatibile with Notepad.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Report export to csv - no data found in report

    Hi all,
    I've followed the steps to export my report to a csv file. In the Report Attributes, Report Export section I have:
    Enable CSV output: Yes           Separator: ,           Enclosed By:
    Link Label: Export
    Filename: Changes.xls
    But when I open it in excel, no data found is the only test showing in cell A1.
    Is there something else I need to do? I don't understand why it's not exporting my report - there is data on my screen in the report.
    Thanks,
    Dave

    Dave,
    Have a look in my blog:
    http://deneskubicek.blogspot.com/2007/03/csv-export-problem.html
    There is an explanation on how to avoid that.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • SSRS 2008 R2 - Missing Data when Exporting to Excel or CSV (Row Count is 500)

    Hey Folks,
    When exporting SSRS 2008 R2 report  to an csv or excel file not all the rows are being exported. Any suggestions on why this is occurring. The number of rows is less then 500 and it seems to be a pretty straight forward export. Any help is
    greatly appreciated.  Inherited this and not sure if this would be configuration issues or something else. It is happening on a number of reports.
    Thanks.

    Hi Humbly,
    According to your description, when you export report into CSV or Excel format, some rows are missing.
    In your scenario, since you are missing data “rows” in your exported file, we are guessing if you have any visibility setting like toggle which hide those records. It’s possible that you have set toggle or visibility in your report. After exporting
    Excel/CSV, some data might not appear properly. In SSRS 2008 R2, it has reported this kind of issue about data missing after exporting. However, those scenarios are not exactly same as your issue. It mostly turns out be conflict between data and “layout render”
    and related to DataElementOutput property. DataElementOutput property controls export behavior, it indicates which report item data should appear in Excel/CSV render. For more information, please refer to this article: Reporting Services:
    Why aren’t all my report columns exporting to CSV and/or XML?.
    As we tested in our environment(SSRS 2008 R2), no matter what we export into CSV or Excel, we get same results as in BIDS . So I would like to know your report design structure. If possible, please provide some screenshots about results in BIDS and Excel/CSV
    render extension results. It may help us find out the root cause of your issue. Thank you.
    Best regards,
    Qiuyun Yu

  • Export is not exporting the data from Page. It always gets the data from VO

    Hi,
    I have got a critical issue, where I am Not able to export the current data from the page.
    I have an export button and the VO is attached to it.
    1) My page will execute the VO and I do some calculations to remove some rows, add the grand total etc.
    2) The export button just re-executes the query and exports, which is not that, I want. I would like to export the current contents of the VO, which I manipulate and it is shown on the page.
    To give an example -
    My VO query is executed, when I click the Report button. I then adds Grand Total row to the VO and it gets displayed on the Page also.
    Now, when I click the export button, it just exports the data which is coming from the VO SQL query, whereas I want the data from current state of VO i.e. with the grand total, which I added and is coming on the page also.
    I will be really grateful, if someone can help me with this as it is really urgent.
    Thanks for your help.
    Shiju

    Hi Shiju,
    Is the export to csv opening fine with the data showing in individual columns when opening from internet explorer. What version of IE are you using? For us the export works fine from Firefox but does not work well in IE. From IE, the data shows with the commas in a single string. Appreciate your response as it will help us understand if our issue is local to our environment.
    Thanks.

  • BUG?? UTF-8 non-Latin database chars in IR csv export file not export right

    Hello,
    i have this issue: my database character set is UTF-8 (AL32UTF8) and contains data in a table used in IR that are Greek (non-Latin). While i can see them displayed correctly in IR and also via select / in Object Browser in SQL Workshop when i try to Download as csv the produced csv does not have the Greek characters exported correctly, while the Latin ones are ok.
    This problem is the same if i try IE or Firefox. Also the export in HTML works successfully and i see the Greek characters there correctly!
    Is there any issue with UTF-8 and non-Latin characters in export to csv from IRs ? Can someone confirm this, or has a similar export problem with UTF-8 DB and non-Latin characters ?
    How could i solve this issue ?
    TIA

    Hello Joel,
    thanks for taking the time to answer to my Issue. Well this does not work for my case as the source of data (Database character set) is UTF-8. The Data inside the database that are shown in the IR on the Screen is UTF-8 and this is done correctly. You can see this in my example. The actual Data in the Database are from multiple languages, English, Greek, German, Bulgarian etc that's why i selected the UTF-8 character set when implementing the Database and this requirement was for all character data. Also the suggested character set from Oracle is Unicode when you create a Database and you have to support data from multiple languages.
    What is the requirement, is that what i see in the IR (i mean in Display) i need to export in CSV file correctly and this is what i expect from the Download as CSV feature to achieve. I understand that you had in mind Excel when implementing this feature but a CSV is just an easy way to export the Data - a Comma Separated Values file, not necessarily to open them directly in Excel. Also i want to add here that in Excel you can import the Data in UTF-8 encoding when importing from CSV, which is fine for my customer. Also Excel 2008 and later understands a UTF-8 CSV file if you have placed the UTF-8 BOM character at the start of the file (well, it drops you to the wizzard, but it's almost the same as importing).
    Since the feature you describe and if i understood correctly is creating always an ANSI encoded file in every case, even when the Database character set is UTF-8, it is impossible to export correctly if i have data that are neither in Latin, not in the other 128 country specific characters i choose in Globalization attributes and these data is that i see in Display and need to export to CSV. I believe that this feature in case the Database character set is UTF-8 should create a CSV file that is UTF-8 encoded and export correctly what i see i the screen and i suspect that others would also expect this behaviour. Or at least you can allow/implement(?) this behaviour when Automatic CSV encoding is set to No. But i stongly believe - and especially from the eyes of a user - to have different things in screen and in the depicted CSV file is a bug, not a feature.
    I would like to have comments on this from other people here too.
    Dionyssis

  • Data modeler, error when exporting to csv files

    hi, i have a relational model and i need to export this model to csv files, when exporting the model it errors,
    displaying the following error nmessage:
    Oracle SQL Developer Data Modeler Version: 2.0.0 Build: 584
    Oracle SQL Developer Data Modeler Export Log
    Date and Time: 2010-09-21 15:17:17
    Design Name: Diagram
    Model Name: CSV
    Export Finished
    Errors: 1
    Warnings:0
    <<<<< ERRORS >>>>>
    java.lang.NullPointerException
    the issue is a file is missing when exporting proccess is done, the file is DM_CommentsRDBMS.csv, this file contains the commens of columns.
    Thanks.

    Hi,
    I logged bug however information is not enough to locate the problem.
    You can use export to reporting schema in order to get your model exported - in database in that case.
    We are not going to extend "export to CSV file" functionality any further - it'll be as it is now.
    Philip

  • Export data with Dreamweaver (TXT, CSV)

    Hi to all of the Adobe community.
    My question to me is a little hard for my level of knowledge.
    I'm using Dreamweaver using technology PHP / MySQL, in my database have a table in MySQL called mailing list, with the fields name and email.
    I have a php page that I developed using the Dynamic Table where it returns me a list of names and e-mail registrations. What I would like to make is that at the end of this table I have a link or a button called export data. I wish that when you export this data be txt or csv format.
    How?
    Export data and further define the format to be exported.
    I'm using Dreamweaver CS4.
    Rodrigo Vieira da Silva Eufrasio
    E-mail: rodrigo.mct @ gmail.com
    Mobile: +55 11 8183-9484
    Brazil - Osasco - SP

    It is doable.
    Assume for the moment that you are not paging the query results (that is, you are display ALL results at one time).
    You would need to do the following when the button is clicked (the action calling a separate file for the processing):
    Open a file on the server for writing ($ofile = fopen("data.txt","w");)
    Repeat your query but instead of echo $row_Record set.... you would use fwrite($ofile, $row_Recordset...
    In between fields you would need fwrite($ofile, "\t") to put in a tab or fwrite($ofile, ",") for a CSV,
    At the end of every line you would need a <cr><lf>: fwrite ($ofile, "\r\n");
    Close the file - fclose ($ofile);
    Then use the header function to force the download of this file like this.
    header('Content-disposition: attachment; filename=data.txt');
    header('Content-type: text');
    readfile('data.txt);
    The header function has to be the first thing sent to the user. Any white space would cause it to fail. I haven't tried this part after a DB query, but it should work. If it doesn't you will have to invoke the header routine in a separate file.
    Hope this helps.
    Barry

  • Will not export csv Files or Excel

    I have a large spread sheet with 278 entries. I have tried to export as csv and excel files. Get error for csv, unable. and crash on excel. Any suggestions. I have the all the updates.

    Yvan,
    I do not doubt that the OP's document behaves as you described. However, since a similar problem might affect other users, it would be helpful to know more about what it is about the "wrongdoer" as you call it that triggers this. (I have a particular interest in this because of the number of spreadsheets I export to Excel users & how if this happened to me it would adversely affect my livelihood.)
    Accordingly, I tried to duplicate the behavior from the info available in this thread. I tried single & multiple popup-formatted cells, in one & more than one row, using a variety of data values in the popup choices. But in no case could I get any results other than as I described.
    This leaves me (& perhaps others) wondering if or when a similar wrongdoer might causes similar problems in some future document of mine (or of others) & if this occurs, how to identify the cause & resolve it.
    Thus, anything more detailed that you care to share in this forum would be appreciated.

  • Export to CSV Option - no data found

    Hi
    I have an app with various report regions that work fine on-line. They typically take one or more values from select lists as input to the where clause, and have summary processing based on first or first and second columns. It seems that some reports export to csv just fine, but others produce a csv file with just the 'no data found' message ? Any ideas ?
    cheers
    Jules

    Hi Chris
    I think I understand what happens now - i.e. the CSV export runs in a separate session from the on-line page. Your suggestion has fixed the proplem - by having a button to redirect / resubmit back to the same page the csv export then picks up the right data.
    However I do not understand why as this seems no different to having a one or more parameter fields defined as 'select list with re-direct', which I do. Any further explanation appreciated.
    Jules

  • Adobe story does not export lines of dialogue that are amrked with (CONT'D) into a csv file.

    For some reason Adobe story does not export lines of dialogue that are marked with (CONT’D) into a csv file. The rest of the dialogue exports fine, bit the bits that are marked with (CONT’D) do not show up in the dialogue column !. Can this be changed with some settings or is this a bug? The script was imported from an FDX file. If anyone has a fix for this, please, let me know.
    Thenk you.

    Thanks for reporting this issue.
    This is indeed a bug.
    Just to get correct data in csv, a workaround for this issue could be to replace word 'CONT'D' with a place-holder word, perform an export-to-csv and then change it back.
    1. Press Ctrl+F in script to open Find/Replace
    2. Replace word 'CONT'D' with a placeholder word, say 'TEMPCONTD'
    3. Export the script to csv
    4. Now replace the placeholder word with 'CONT'D'

Maybe you are looking for

  • Exit code 6 when installing Photoshop cs5

    Hi. I have been trying to install photoshop cs5 for a few days. I have a windows computer with 4gb of ram. Everytime I attempt to install my program it gets to 11% of installation then tells me there is a problem and tells me it is exit code 6. I've

  • Peoplesoft convert Oracle non-unicode database to unicode database

    I am following doc 1437384.1 to convert a Peoplesoft database from non-unicode database to unicode database I use the following export statement (as user PS) SET NO TRACE; SET OUTPUT output_file.dat; SET NO DATA; EXPORT *; And the following import st

  • Time machine kernel panic

    I have a 2011 MBP 13. Running 10.7.5. My Time Capsule quit working awhile ago, so last week I reformatted it and did an ethernet connection backup from my and my spouse's MBP (also 2011 13 inch, 10.7.5). Worked great for about 5 days. Today I went ou

  • Capture from different video and audio sources ?

    Hey guys, I'm running Adobe CS4 Master Collection. In the past I've used Premiere to record the video and Soundbooth to record the audio. Then I would import the recorded audio into premiere. Thinking about the workflow this seems kind of long winded

  • HTML in Signatures

    I have a link to my website on my signature. The problem when I click on to see if a works, it has giving me the following error message. Mail was unable to open the url file "file:///private/var/tmp/folders.501/temporaryitiems/www.tjreed.com". No as