Renos,
I don't see anything you are doing wrong. Try running your action on another platform: WPF or PPC or iOS/Android. Unfortunately, the current ATE is buggy and sometimes crashes/fails when other production clients would not fail. This will definitely error out the second time since you are trying to add the same key twice.
Jason Latko - Senior Product Developer at SAP