Hi Barbara,
The entity should be the request that was just created - it should be in your context NewObject1.
Please notice that if the file is not mandatory you should "indent" the Attachment object creation using a condition action that will check whether the file<>NULL (file stands for the document variable name).
Let me know if that works.
Good luck!
Tamir