Attachment is not getting parsed

Please format your code.

BTW I can't reproduce your example. I have no mapping here.

Even if this is not a full curl script, this example is much more readable: Unable to Find Document, Searching Contents - Mapper Attachments Plugin