When we deploy a document from a lower environment to a higher environment, its ID is getting changed. Due to this, constant points to invalid/wrong a document.
We are using direct deployment (Compare & Deploy)
Is it expected behavior?
Discussion posts and replies are publicly visible
Constants (of "document" type) which point to a specific document, should still point to the correct document after deployment to another environment, regardless of the fact that the deployed copy of the document will have a new/different underlying DocId. If you're seeing something other than this, then you might need to open a support case with Appian Support.