MSIR.0842 Record:CurrentRecord must be inside a FOR EACH RECORD loop
The shared function CurrentRecord in the Record class was invoked outside a For Each Record loop context. Since the intent of the CurrentRecord method is to return a record object representing the current record in a For Each Record loop, it makes no sense outside such a loop.