In order to include metadata in your documents, you have to explicitly enable it globally. Metadata is usually only enabled in a preview CAE, not in a live (production) CAE.
To enable metadata inclusion globally, you have to set the metadata.enabled
property in the WEB-INF/application.properties
file of your
CAE application.
... metadata.enabled=true ...