Changed to move initialization of documentData outside of repeatingRS loop