Martin
03/25/2025, 12:51 AMCeligo AI
03/25/2025, 12:51 AMAI generated answer (using internal Slack threads):The error
SuiteScriptError - MULTIPLE_DEFINE_CALLS - Invalid define call, define should only be called once per module. Define calls found at the following line numbers: tmp_ssp_libraries_ext.js
is typically caused when multiple define
calls are made in a single module. This is not allowed in SuiteScript, as each module should only have one define
call.
This error can occur when multiple modules are concatenated together, leading to multiple calls to the define
function. It can also occur when an anonymous define
function is used inappropriately at the top level context of the window. Anonymous define
functions are supposed to be in the dependency list of another require
or define
.
To resolve this issue, you should ensure that each module only has one define
call. If you are using third-party libraries, you should remove any define
statements that look like the example given in the conversation:
javascript
if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
If the issue is caused by a third-party library, you may need to uninstall it. If the issue is with a custom script that starts with a define
call, you do not need to do anything unless you are including that via a script tag.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/25/2025, 12:52 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849232912
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819103539
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818948746
Celigo AI
03/25/2025, 12:52 AM