@tjaffer if your script is throwing an error at line 73 and you're making the record.getText call on a list/record field there's currently an enhancement request to have getText() work like nlapiGetFieldText() in SS1.0. I often get that exact error when using record.getText on a list/record field in SS2.0. There are a few work arounds: 1) you can use record.load() to load the list/record record and get the value from the field in the loaded record directly, or 2) just avoid getText for now on new records as it may be fixed in the future, but is unreliable now on new records.