[GH-ISSUE #2011] Null constraint violation on the fields: (emailDocumentSettings) #577

Closed
opened 2026-02-26 18:47:39 +03:00 by kerem · 1 comment
Owner

Originally created by @grosjo on GitHub (Aug 30, 2025).
Original GitHub issue: https://github.com/documenso/documenso/issues/2011

Issue Description

When creating a new "Organisation", error pops up

Null constraint violation on the fields: (`emailDocumentSettings`)
    ipAddress: "14.1.92.74"
    userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 OPR/120.0.0.0"
    requestId: "j7alwak97wbq56289v2te"
    status: "error"
    appError: {
      "code": "P2011",
      "message": "\nInvalid `prisma.organisationGlobalSettings.create()` invocation:\n\n\nNull constraint violation on the fields: (`emailDocumentSettings`)"
    }
    err: {
      "type": "TRPCError",
      "message": "\nInvalid `prisma.organisationGlobalSettings.create()` invocation:\n\n\nNull constraint violation on the fields: (`emailDocumentSettings`): \nInvalid `prisma.organisationGlobalSettings.create()` invocation:\n\n\nNull constraint violation on the fields: (`emailDocumentSettings`)",
      "stack":
          PrismaClientKnownRequestError: 
          Invalid `prisma.organisationGlobalSettings.create()` invocation:
          
          
          Null constraint violation on the fields: (`emailDocumentSettings`)
              at Zn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7459)
              at Zn.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:6784)
              at Zn.request (/app/node_modules/@prisma/client/runtime/library.js:121:6491)
              at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9778)
              at async file:///app/apps/remix/build/server/hono/packages/lib/server-only/organisation/create-organisation.js:19:33
              at async Proxy._transactionWithCallback (/app/node_modules/@prisma/client/runtime/library.js:130:8139)
              at async createOrganisation (file:///app/apps/remix/build/server/hono/packages/lib/server-only/organisation/create-organisation.js:18:10)
              at async file:///app/apps/remix/build/server/hono/packages/trpc/server/organisation-router/create-organisation.js:66:3
              at async resolveMiddleware (file:///app/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:102:30)
              at async callRecursive (file:///app/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
          caused by: PrismaClientKnownRequestError: 
          Invalid `prisma.organisationGlobalSettings.create()` invocation:
          
          
          Null constraint violation on the fields: (`emailDocumentSettings`)
              at Zn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7459)
              at Zn.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:6784)
              at Zn.request (/app/node_modules/@prisma/client/runtime/library.js:121:6491)
              at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9778)
              at async file:///app/apps/remix/build/server/hono/packages/lib/server-only/organisation/create-organisation.js:19:33
              at async Proxy._transactionWithCallback (/app/node_modules/@prisma/client/runtime/library.js:130:8139)
              at async createOrganisation (file:///app/apps/remix/build/server/hono/packages/lib/server-only/organisation/create-organisation.js:18:10)
              at async file:///app/apps/remix/build/server/hono/packages/trpc/server/organisation-router/create-organisation.js:66:3
              at async resolveMiddleware (file:///app/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:102:30)
              at async callRecursive (file:///app/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
      "code": "INTERNAL_SERVER_ERROR",
      "name": "TRPCError"
    }

Steps to Reproduce

Install fresh from docker

Expected Behavior

Crete the rog

Current Behavior

error

Screenshots (optional)

No response

Operating System [e.g., Windows 10]

Archlinux

Browser [e.g., Chrome, Firefox]

Chrome

Version [e.g., 2.0.1]

latest

Please check the boxes that apply to this issue report.

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided steps to reproduce the issue.
  • I have included relevant environment information.
  • I have included any relevant screenshots.
  • I understand that this is a voluntary contribution and that there is no guarantee of resolution.
  • I want to work on creating a PR for this issue if approved
Originally created by @grosjo on GitHub (Aug 30, 2025). Original GitHub issue: https://github.com/documenso/documenso/issues/2011 ### Issue Description When creating a new "Organisation", error pops up ``` Null constraint violation on the fields: (`emailDocumentSettings`) ipAddress: "14.1.92.74" userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 OPR/120.0.0.0" requestId: "j7alwak97wbq56289v2te" status: "error" appError: { "code": "P2011", "message": "\nInvalid `prisma.organisationGlobalSettings.create()` invocation:\n\n\nNull constraint violation on the fields: (`emailDocumentSettings`)" } err: { "type": "TRPCError", "message": "\nInvalid `prisma.organisationGlobalSettings.create()` invocation:\n\n\nNull constraint violation on the fields: (`emailDocumentSettings`): \nInvalid `prisma.organisationGlobalSettings.create()` invocation:\n\n\nNull constraint violation on the fields: (`emailDocumentSettings`)", "stack": PrismaClientKnownRequestError: Invalid `prisma.organisationGlobalSettings.create()` invocation: Null constraint violation on the fields: (`emailDocumentSettings`) at Zn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7459) at Zn.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:6784) at Zn.request (/app/node_modules/@prisma/client/runtime/library.js:121:6491) at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9778) at async file:///app/apps/remix/build/server/hono/packages/lib/server-only/organisation/create-organisation.js:19:33 at async Proxy._transactionWithCallback (/app/node_modules/@prisma/client/runtime/library.js:130:8139) at async createOrganisation (file:///app/apps/remix/build/server/hono/packages/lib/server-only/organisation/create-organisation.js:18:10) at async file:///app/apps/remix/build/server/hono/packages/trpc/server/organisation-router/create-organisation.js:66:3 at async resolveMiddleware (file:///app/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:102:30) at async callRecursive (file:///app/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24) caused by: PrismaClientKnownRequestError: Invalid `prisma.organisationGlobalSettings.create()` invocation: Null constraint violation on the fields: (`emailDocumentSettings`) at Zn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7459) at Zn.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:6784) at Zn.request (/app/node_modules/@prisma/client/runtime/library.js:121:6491) at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9778) at async file:///app/apps/remix/build/server/hono/packages/lib/server-only/organisation/create-organisation.js:19:33 at async Proxy._transactionWithCallback (/app/node_modules/@prisma/client/runtime/library.js:130:8139) at async createOrganisation (file:///app/apps/remix/build/server/hono/packages/lib/server-only/organisation/create-organisation.js:18:10) at async file:///app/apps/remix/build/server/hono/packages/trpc/server/organisation-router/create-organisation.js:66:3 at async resolveMiddleware (file:///app/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:102:30) at async callRecursive (file:///app/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24) "code": "INTERNAL_SERVER_ERROR", "name": "TRPCError" } ``` ### Steps to Reproduce Install fresh from docker ### Expected Behavior Crete the rog ### Current Behavior error ### Screenshots (optional) _No response_ ### Operating System [e.g., Windows 10] Archlinux ### Browser [e.g., Chrome, Firefox] Chrome ### Version [e.g., 2.0.1] latest ### Please check the boxes that apply to this issue report. - [x] I have searched the existing issues to make sure this is not a duplicate. - [x] I have provided steps to reproduce the issue. - [x] I have included relevant environment information. - [x] I have included any relevant screenshots. - [x] I understand that this is a voluntary contribution and that there is no guarantee of resolution. - [ ] I want to work on creating a PR for this issue if approved
kerem 2026-02-26 18:47:39 +03:00
Author
Owner

@ephraimduncan commented on GitHub (Oct 24, 2025):

You should update the docker image you're using to to v1.12.10 or later, preferably v1.13.1, the latest stable release as of this writing.

<!-- gh-comment-id:3442791083 --> @ephraimduncan commented on GitHub (Oct 24, 2025): You should update the docker image you're using to to v1.12.10 or later, preferably v1.13.1, the latest stable release as of this writing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#577
No description provided.