{"id":"79c8f757ddc738ea","repo":"drizzle-team/drizzle-orm","slug":"count-exceeds-max-number-of-unique-full-names-ma","errorCode":null,"errorMessage":"count exceeds max number of unique full names(${maxUniqueFullNamesNumber}).","messagePattern":"count exceeds max number of unique full names\\((.+?)\\)\\.","errorType":"validation","errorClass":"RangeError","httpStatus":null,"severity":"error","filePath":"drizzle-seed/src/services/Generators.ts","lineNumber":1775,"sourceCode":"\nexport class GenerateUniqueFullName extends AbstractGenerator<{\n\tisUnique?: boolean;\n}> {\n\tstatic override readonly entityKind: string = 'GenerateUniqueFullName';\n\n\tprivate state: {\n\t\tfullnameSet: Set<string>;\n\t\trng: prand.RandomGenerator;\n\t} | undefined;\n\tpublic override isUnique = true;\n\tpublic override timeSpent = 0;\n\n\toverride init({ count, seed }: { count: number; seed: number }) {\n\t\tconst t0 = new Date();\n\n\t\tconst maxUniqueFullNamesNumber = firstNames.length * lastNames.length;\n\t\tif (count > maxUniqueFullNamesNumber) {\n\t\t\tthrow new RangeError(\n\t\t\t\t`count exceeds max number of unique full names(${maxUniqueFullNamesNumber}).`,\n\t\t\t);\n\t\t}\n\n\t\tif (this.stringLength !== undefined && this.stringLength < (maxFirstNameLength + maxLastNameLength + 1)) {\n\t\t\tthrow new Error(\n\t\t\t\t`You can't use full name generator with a db column length restriction of ${this.stringLength}. Set the maximum string length to at least ${\n\t\t\t\t\tmaxFirstNameLength + maxLastNameLength + 1\n\t\t\t\t}.`,\n\t\t\t);\n\t\t}\n\n\t\tconst rng = prand.xoroshiro128plus(seed);\n\t\tconst fullnameSet = new Set<string>();\n\n\t\tthis.state = { rng, fullnameSet };\n\t\tthis.timeSpent += (Date.now() - t0.getTime()) / 1000;\n\t}","sourceCodeStart":1757,"sourceCodeEnd":1793,"githubUrl":"https://github.com/drizzle-team/drizzle-orm/blob/b7862528fd8fc39bc2653a6c18dad7c1f4e68d10/drizzle-seed/src/services/Generators.ts#L1757-L1793","documentation":"Error \"count exceeds max number of unique full names(${maxUniqueFullNamesNumber}).\" thrown in drizzle-team/drizzle-orm.","triggerScenarios":"Requesting more unique full names than the generator can compose.","commonSituations":"Large counts on a unique full-name column exceeding maxUniqueFullNamesNumber.","solutions":["Reduce the requested unique full-name count or drop the unique constraint."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"b7862528fd8fc39bc2653a6c18dad7c1f4e68d10","analyzedAt":"2026-08-03T18:11:14.318Z","schemaVersion":2}