Skip to content

Fix import chatMessageFeedback messageIDs unique violation#4919

Merged
chungyau97 merged 3 commits intomainfrom
fix/messageid-unique-violation
Jul 22, 2025
Merged

Fix import chatMessageFeedback messageIDs unique violation#4919
chungyau97 merged 3 commits intomainfrom
fix/messageid-unique-violation

Conversation

@chungyau97
Copy link
Contributor

@chungyau97 chungyau97 commented Jul 22, 2025

Description

When importing chatMessageFeedback, keep only the first occurrence of each messageId to prevent unique constraint violations.

Result

Before

{
    "statusCode": 500,
    "success": false,
    "message": "Error: exportImportService.importAll - duplicate key value violates unique constraint \"UQ_6352078b5a294f2d22179ea7956\"",
    "stack": {}
}
image

After
Successfully import 3 times: 1 time in sandbox1 and 2 times in sandbox2.
image

@chungyau97 chungyau97 added the bug Something isn't working label Jul 22, 2025
@chungyau97 chungyau97 self-assigned this Jul 22, 2025
@chungyau97 chungyau97 merged commit 910a3c5 into main Jul 22, 2025
3 checks passed
@chungyau97 chungyau97 deleted the fix/messageid-unique-violation branch July 22, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant