RocketChat/Rocket.Chat · error · Error
error-team-creation
Error message
error-team-creation
What it means
Error "error-team-creation" thrown in RocketChat/Rocket.Chat.
Source
Thrown at apps/meteor/server/services/team/service.ts:138
await TeamMember.insertMany(membersList);
await Rooms.setTeamMainById(roomId, teamId);
await Team.updateMainRoomForTeam(teamId, roomId);
teamData.roomId = roomId;
if (room.id) {
await Message.saveSystemMessage('user-converted-to-team', roomId, team.name, createdBy);
}
void notifyOnRoomChangedById(roomId, 'inserted');
return {
_id: teamId,
...teamData,
};
} catch (e) {
throw new Error('error-team-creation');
}
}
async update(uid: string, teamId: string, updateData: ITeamUpdateData): Promise<void> {
const team = await Team.findOneById<Pick<ITeam, '_id' | 'roomId'>>(teamId, {
projection: { roomId: 1 },
});
if (!team) {
return;
}
const user = await Users.findOneById(uid);
if (!user) {
return;
}
const { name, type, updateRoom = true } = updateData;
View on GitHub (pinned to e4b8178b20)
Solutions
- Check the server logs for the original exception caught in TeamService.create; the generic 'error-team-creation' masks the underlying cause.
- Verify the team name is unique and the user creating the team has the required permissions.
- Ensure the room being converted to a team is valid and not already part of another team.
When it happens
Trigger: Thrown at apps/meteor/server/services/team/service.ts:137 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of RocketChat/Rocket.Chat@e4b8178b20 (2026-08-18).
Data as JSON: /api/errors/c1ab55624eedeed0.
Report an issue: GitHub.