Piece one of the code, loops to get all keys for the record (58-68). If an error occurs, (based on an SAP step), the bot shall input the same key again. For some reason, this is being cleared. Although it was just present in the first loop and input into SAP fine. Thanks for any advice!