Skip to content

[BUG] importing data is impossible #651

@WhoAboutYT

Description

@WhoAboutYT

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

With a fully decrypted dump of the data, if you attempt to import the data prisma will send out an error about an unexpected argument of ticketId.

Expected Behavior

Self explanatory, I should be able to import the data inside of the database.

Steps To Reproduce

  1. create test bot (MUST CREATE MODAL QUESTIONS)
  2. create some test tickets, sometimes dont ansswer the questions, sometimes do.
  3. data dump decrypted
  4. attempt to import

Environment

- OS: Linux & Windows (Test on both)
- Node: Latest lts
- NPM: Latest lts
- Bot: latest

Anything else?

I have tested it in 2 ways, using DiscordTicketsFastDump which decrypts every single encrypted piece of data.
I created a test bot that didn't use encryption at all and I got the same result.

Full prisma error:

[ERROR] PrismaClientValidationError: Invalid prisma.ticket.create() invocation: { data: { archivedChannels: { create: [] }, archivedRoles: { create: [ { colour: "2ecc71", createdAt: "2025-06-23T11:46:19.173Z", name: "BOT", roleId: "1273753642947842110" }, { colour: "005ee2", createdAt: "2025-06-23T11:46:33.674Z", name: "Helper", roleId: "1384155259219345449" }, { colour: "000000", createdAt: "2025-06-23T11:46:33.674Z", name: ":trident:WͥhͣoͫaͫbͥoͣuͫtͫYͣTͥ:trident:", roleId: "1273618258024599573" } ] }, archivedUsers: { create: [ { avatar: "a_290979082a027350551b70e5c1ac7676", bot: true, createdAt: "2025-06-23T11:46:19.173Z", discriminator: "0368", displayName: "GTA Radar Tickets", roleId: "1273753642947842110", userId: "1386504276448379010", username: "GTA Radar Tickets" }, { avatar: "3e7b9ac6f5f7508026bd660bbcac647f", bot: false, createdAt: "2025-06-23T11:46:33.674Z", discriminator: "0", displayName: "WhoAboutYT :3", roleId: "1273618258024599573", userId: "1110627604656050286", username: "whoaboutyt_real" } ] }, closedAt: "2025-06-23T11:47:12.014Z", closedReason: null, createdAt: "2025-06-23T11:46:18.766Z", deleted: false, feedback: { create: { comment: "test", createdAt: "2025-06-23T11:46:55.192Z", rating: 5, guild: { connect: { id: "1111767757466390599" } }, user: { connectOrCreate: { create: { id: "1110627604656050286" }, where: { id: "1110627604656050286" } } } } }, firstResponseAt: "2025-06-23T11:46:45.316Z", id: "1386673719015112704", lastMessageAt: "2025-06-23T11:46:48.309Z", messageCount: 10, number: 1, open: false, openingMessageId: "1386673720864673944", pinnedMessageIds: "[\"1386673720864673944\"]", priority: null, questionAnswers: { create: [ { createdAt: "2025-06-23T11:46:18.766Z", id: 1, questionId: "5ef21bf8-5e48-43f4-85b5-afd4870172c8", ticketId: "1386673719015112704", userId: "1110627604656050286", value: "Testing ezezezezzzzzzzzzzzzzzzzzzzzzz1" } ] }, referencesMessageId: null, topic: "Testing ezezezezzzzzzzzzzzzzzzzzzzzzz1", category: { connect: { id: 3 } }, closedBy: { connectOrCreate: { create: { id: "1110627604656050286" }, where: { id: "1110627604656050286" } } }, createdBy: { connectOrCreate: { create: { id: "1110627604656050286" }, where: { id: "1110627604656050286" } } }, guild: { connect: { id: "1111767757466390599" } } }, select: { id: true } } Unknown argument ticketId. Available options are marked with ?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions