1. When the inner convert has a missing vale, the result would be "Missing value." Then the outer $convert tries to convert that string to a string. So even with "format": "hex", you don’t get an error since strings aren’t re-converted, regardless of format.

2. No example data yet :slight_smile:

3. Wrt byteOrder:

The $convert docs you linked to are for MongoDB Atlas Stream Processing; that’s not for the Aggregations on Atlas, Enterprise, or Community editions. I ran it with the Docker image for Atlas locally and got the same error for the byteOrder field.

4. From the $convert Aggregation examples for “Convert to BinData” docs (Atlas, Enterprise, Community editions), int can’t be converted to binData:

{
  input: 123,
  to: { type: "binData", subtype: 0 }
}
Unsupported conversion from int to binData in $convert with no onError value