I am getting this error "Script Execution Usage Limit Exceeded" when trying to load a saved search. The search a list of few txt files. Running as administrator role and the file is Available without Login. Anything I can try to fix it?
const fileIds = getFileIDFromSearch(search);
Inside execute function:
log.debug({title: "File IDs", details: fileIds});
fileIds.forEach(fileId => {
const myFile = file.load({
id: fileIds,
});
function getFileIDFromSearch(search) {
log.debug("Here 1");
const savedSearchId = 'customsearch_my_files_lookup';
log.debug(savedSearchId);
//This line fails
const fileSearch = search.load({
id: savedSearchId
});