Getting “System.Collections.Generic.List`1[System.String]” in CSV File export when data is okay on screen

If an object you export as CSV with Export-Csv or ConvertTo-Csv has property values that contain a collection (array) of values, these values are stringified via their .ToString() method, which results in an unhelpful representation, as in the case of your array-valued .IPV4Addresses property. To demonstrate this with the ConvertTo-Csv cmdlet (which works analogously to … Read more

Size of array after a deallocate

This is a question crying out for a canonical one, really. In the interest of answering your specific question in the absence (as far as I can tell, but I may write one eventually), I’ll answer. The argument to size must not be an unallocated allocatable variable. For your code fred is an allocatable variable. … Read more

Mango search in Arrays

First, you need to create your index. I suggest that you create an index on the Calibration.Presettings.Date field. You can use the following JSON object to create it: { “index”: { “fields”: [ “_id”, “Calibration.Presettings.Date.[].Type” ] }, “type”: “json” } So the selector would be like this : { “selector”: { “Calibration.Presettings.Date”: { “$elemMatch”: { … Read more