Is there such thing as an amnesia/dissociative attack?

Yes. Transient global amnesia is a phenomenon of not being able to make new memories for a short period of time. It usually happens in older people. Dissociative fugue is a state in which somebody's behavior changes and they are unaware of this event. It's usually seen in the context of another psychiatric condition.