Here is the aem node structure As I have highlighted the POC id should be TXC-20096525 for the treatment.ditamap. Here I am getting the issue only for ditamap and my metadata I am updating like below, as topicbody is an array. def metadataNode = session.getNode(newTopicPath + "/jcr:content/metadata...