The only two things I can think of are that you accidentally grabbed the ID from the Create new folder action instead of the When an item is created action, or that you need to have a delay in place because the attachment wasn't finished uploading to the list before attempting to grab it. If you have the correct ID, then I'd try placing a Delay action of 1 minute and see what happens.