When I run the below script, it does not jump into last non empty cell, but it jumps in the middle. I believe I have some empty cells between rows and that is the issue
function onOpen() {
var s = SpreadsheetApp.getActive().getSheetByName('Raw data')
s.setActiveRange(s.getRange(s.getRange('A:A').getValues().filter(String).length, 1))
}

See attached screenshot