Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Violation of UNIQUE KEY constraint 'UQ__PackageNameIds'.

    Scheduled Pinned Locked Moved Support
    7 Posts 3 Posters 15 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      parthu.reddy
      last edited by

      We're getting following error while trying to access this package. Pls suggest

      03c556e9-d01c-4baf-b0dd-c58028663617-image.png

      cc0397e2-d817-453f-9dcf-fa16e07255d4-image.png

      1 Reply Last reply Reply Quote 0
      • P Offline
        parthu.reddy
        last edited by

        cf7a8174-7cb5-4e29-88ea-57e7402bd9e0-image.png

        atrippA 1 Reply Last reply Reply Quote 0
        • atrippA Offline
          atripp inedo-engineer @parthu.reddy
          last edited by

          Hi @parthu-reddy ,

          I'm not sure what version you're using, but the latest version has a checkbox on the reindex function to delete duplicate ids/names wen running the reindex job.

          I would try that -- note you may have to run it twice. This issue is fairly complicated and it's hard to fix without working against exported/backups of user databases.

          Thanks,
          Alana

          1 Reply Last reply Reply Quote 0
          • P Offline
            parthu.reddy
            last edited by parthu.reddy

            Hi @atripp

            We're using version 2025.8 and I've selected that box you mentioned during reindex. I'll run it one more time. If I run it one more time the issue related to UNIQUE KEY will also be fixed right?

            Can you also explain us why this error is occurring for this package and how it resulted in this corrupted state.

            JFI - in our sand environment we're not facing this issue for this package.

            Thanks
            Parthu

            1 Reply Last reply Reply Quote 0
            • P Offline
              parthu.reddy
              last edited by

              Hi @atripp

              We've created new feed with new connector and still getting this error.

              2e0c8952-9209-4380-bcab-a4c7b7107516-image.png

              Thanks
              Parthu

              1 Reply Last reply Reply Quote 0
              • P Offline
                pawel.ostrowski_5669
                last edited by

                9f2f1423-2886-4721-b5c7-0c21da4a2493-image.png

                What happens is your [dbo].[PackageNameIds_GetOrCreatePackageNameId] picks up the first row and tries to update this the value of the second row (and fails with a constraint).

                https://www.diffchecker.com/zyfzX4ev/

                Does this fix seem reasonable?

                atrippA 1 Reply Last reply Reply Quote 0
                • atrippA Offline
                  atripp inedo-engineer @pawel.ostrowski_5669
                  last edited by atripp

                  Hi @pawel-ostrowski_5669,

                  Actually the version you're using (2025.8) has a known regression relating these PackageIds that we already fixed via PG-3097. I didn't realize it until you told me the version and I found that issue.

                  Anyway please try latest version of ProGet 2025, it should work.

                  Thanks,
                  Alana

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post
                  Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation