While using FDM to mask some MongoDB collections, we are seeing several of the jobs fail with sampling errors.
Examples of error message from 2 sample collections are below:
<HOSTNAME>:<PORT>_<COLLECTION>: ValidationWorker-<NUMBER> - Sampling was not enough to generate metadata for column <COLUMN> into table <TABLE>. Number of Samples: '2000'
<HOSTNAME>:<PORT>_<COLLECTION>: ValidationWorker-<NUMBER> - Sampling was not enough to generate metadata for column <COLUMN> into table <TABLE>. Number of Samples: '100'. (2) <HOSTNAME>:<PORT>_<COLLECTION>: Masking process exited with non-zero code: 1
FDM 4.11.202.0 or greater
An analysis of the whole collections showed that there were exactly zero properties/attributes found for the columns in question. Therefore, FDM will always return the sampling error because there are no samples found.
In this case, the only way around the sampling error is to either use:
Notes to help you decide which method is right for your use case:
Other considerations: