Today I had a problem with Shared Metadata Cache version as follow:
The Shared Metadata Cache is out of date. The dataset version 16 is older than the version 18 which is deployed in the database, so Metadata is populated locally in this process. The "generate_metadata_cache" utility will re-generate the Shared Metadata Cache.
I've used to "generate_metadata_cache" with delete and force switches but not solved.