Anyone ever come across this error before? `org.mo...
# suitescript
t
Anyone ever come across this error before?
org.mozilla.javascript.EcmaError: ReferenceError: "java_util_List" is not defined.
b
id guess its suitescript 2.1 related
use 2.0 instead
t
thank you
Still got the same error actually
b
what is the code?
t
its a financial connectivity plugin interface script (for context)
Copy code
function getAccounts(context) {
    var configurationId =
      context.pluginConfiguration.getConfigurationFieldValue({
        fieldName: "configuration_id",
      });
    var configuration = loadConfiguration(configurationId);
    context.addAccount({
      accountMappingKey: "12345",
      display: "Checking (XXXX11)",
      accountType: "BANK",
      currency: "USD",
      groupName: "Bank of America",
      lastUpdated: "2020-06-30T01:23:45",
    });
  }
so when the script tries to call the getAccounts function and then that error occurs
b
you should be able to figure out which of those 3 lines is causing the issue
all of them are unrelated, so you should at least be able to only have one at a time
t
Yeah i'll try that, thanks