ironmansoftware / issues

Public Issue tracker for Ironman Software products.
https://ironmansoftware.com
31 stars 2 forks source link

New-UDTable without explicit columns produces empty export #3175

Open MikeShepard opened 3 months ago

MikeShepard commented 3 months ago

Version

4.2.13

Severity

Low

Steps to Reproduce

If you don't specify -Columns, no columns are included in export (you get a blank line per row, though)

Expected behavior

If I don't include -Columns, I would expect all columns to be present (in an unspecified order)

Actual behavior

Export file is empty except for blank line per row

Additional Environment data

No response

Visuals

No response

adamdriscoll commented 2 months ago

Can you give me an example? I can't reproduce this on 4.2.19.

$Data = @(
    @{Dessert = 'Frozen yoghurt'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Ice cream sandwich'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Eclair'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Cupcake'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Gingerbread'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
)

New-UDTable -Data $Data -ShowExport 
Fat Carbs   Protein Calories    Dessert
6   24  4   159 Frozen yoghurt
6   24  4   159 Ice cream sandwich
6   24  4   159 Eclair
6   24  4   159 Cupcake
6   24  4   159 Gingerbread