User encounters the error “TypeError log.error is not a function” using SuiteScript 2.0 script
This error usually happens if the script has a custom function named log in the script or libraries which it calls. The solution is to find and rename the custom function from “log” to something else like “logExec”.
This is not only applicable to the log function but also to other standard NetSuite functions.