New-UDTable OnExport Shifts Columns if a Visible Column Has IncludeInExport as False

Product: PowerShell Universal
Version: 3.7.14

I’m having trouble running the below code and exporting to CSV or Excel. When I do this the values are all shifted one column to the left in the exported data. This does not happen if I turn on “IncludeInExport” on the Dessert column. I suspect this is a bug.

$Columns = @(
	New-UDTableColumn -Property 'Dessert' -Title "A Dessert"
	New-UDTableColumn -Property 'Calories' -Title Calories -IncludeInExport
	New-UDTableColumn -Property 'Fat' -Title Fat -IncludeInExport
	New-UDTableColumn -Property 'Carbs' -Title Carbs -IncludeInExport
	New-UDTableColumn -Property 'Protein' -Title Protein -IncludeInExport
)
New-UDTable -Id 'loadDataTableWithOnExport' -Title 'loadDataTableWithOnExport' -Export -Columns $Columns -LoadData {
	$Query = $Body | ConvertFrom-Json
	@(
		@{Dessert = 'Frozen yoghurt'; Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
		@{Dessert = 'Ice cream sandwich'; Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
		@{Dessert = 'Eclair'; Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
		@{Dessert = 'Cupcake'; Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
		@{Dessert = 'Gingerbread'; Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
	) | Out-UDTableData -Page 0 -TotalCount 5 -Properties $Query.Properties
} -OnExport {
	@(
		@{Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
		@{Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
		@{Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
		@{Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
		@{Calories = (Get-Random); Fat = 6.0; Carbs = 24; Protein = 4.0}
	)
}

The values are all shifted in the exported data. Calories values end up in the Fat column, the Fat values end up in the Carbs column, etc.

image