may help you . Have you checked the return value of ss.getSheetByName("PO Form"). It is most likely null. You also have a class level variable namedss and method variables named ss as well. This sort of shadowing can lead to problems if you're not very careful.
Google Scripts: accessing spreadsheet files, TypeError: Cannot call method "openById" of null. (line 2, file &