How to use the dynamic colormap plugin for NetCDF files?

I have a problem using the the dynamic colormap community extension.

What I did:

  1. Use the command gdalinfo -stats in order to create the PAM Auxiliary file containing statistics and metadata.
  2. In order to create an ImageMosaic of multiple NetCDF files I created the indexer.xml, the ancillary file and the datastore.properties file
  3. In the indexer.xml I added “CheckAuxiliaryMetadata” value=“true”
  4. Added the indexer.xml, ancillary file and the datastore.properties in the coverage folder
  5. Added the NetCDF files and the PAM Auxiliary file to the data folder
  6. Added my NetCDF files as ImageMosaic store and published the layer
  7. Added a new dynamic style according to the documentation

What I got:

The layer using the default style it works but when I try the dynamic style there is the following exception: “Filter Function problem for function gridCoverageStats: Unable to find the stat minimum from the input object of type class

Addition info:
My GeoServer version is 2.26.

Could you give me some suggestion?