This article provides resolution steps for compliance errors occurring when using the pbmUpdate API to modify vSAN storage policies. If automation / workflows encounter datastore incompatibility or virtual machine compliance issues after attempting to set the datastoreSpaceEfficiency constraint to "No preference," follow the steps below to correct the API request.
The vSAN datastoreSpaceEfficiency capability does not recognize "No preference" as a valid string value. When an automation workflow explicitly includes this string as a constraint in the API request, it triggers a compliance failure because the system treats it as an invalid configuration. The only strictly allowed constraint values are:
DedupAndCompressionCompressionOnlyNoSpaceEfficiencyTo successfully apply a "No preference" state using the pbmUpdate API, the automation workflow must be modified:
datastoreSpaceEfficiency constraint within the data service capability settings.datastoreSpaceEfficiency constraint from the API request rather than providing a string value.pbmUpdate API reference documentation: