@Amn
Where did you define the NiFi Attribute "${itemType}" (FlowFile Attribute on a source FlowFile driving execution of GetMongo processor or NiFi variable registry)?
NiFi is also case sensitive, so for example "ItemType" and "itemType" would be considered different variables.
If you found this helpful to yoru query, please take a moment to login and click "Accept" on this solution.
Thank you,
Matt