overleaf/overleaf · error
WARNING: the invite list has reached the membership limit (n
Error message
WARNING: the invite list has reached the membership limit (newTotalCount > membersLimit)
What it means
Preview-stage warning in the CSV invite script: the dry-run result shows the invite list would push the subscription over its member limit (newTotalCount > membersLimit). The operator is warned before any commit so they can trim the list, raise the limit, or accept the overage deliberately.
Source
Thrown at services/web/scripts/add_subscription_members_csv.mjs:114
subscriptionId,
emailList,
{ removeMembersNotIncluded }
)
} catch (error) {
if (error instanceof InvalidEmailError) {
console.error(`${filename} contains invalid email addresses:`)
console.error(error.info?.invalidEmails.join(','))
process.exit(1)
} else {
throw error
}
}
console.log('Result Preview:')
logResult(previewResult)
if (previewResult.newTotalCount > previewResult.membersLimit) {
console.warn(
'WARNING: the invite list has reached the membership limit (newTotalCount > membersLimit)'
)
if (commit) {
console.error(`Invites won't be sent and users won't be deleted`)
}
process.exit(1)
}
if (!commit) {
console.log(
'this is a dry-run, use the --commit option to send the invite and make any DB changes'
)
return
}
console.log(
`Sending invites to ${previewResult.emailsToSendInvite.length} email addresses`
)View on GitHub (pinned to 28ad3b03b7)
Solutions
- Trim the CSV to fit within membersLimit
- Purchase additional seats / raise the limit before committing
- Review the script's follow-up prompt so the overage is only continued intentionally
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at services/web/scripts/add_subscription_members_csv.mjs:114 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of overleaf/overleaf@28ad3b03b7 (2026-09-03).
Data as JSON: /api/errors/a888481af53ec7d6.
Report an issue: GitHub.