Getting Filename attchments error

its inside a for each loop already
Am using the expression inside a loop