Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Solution import issue - violation of Primary Key- Dynamic 365 online

(0) ShareShare
ReportReport
Posted on by 235

Hi Friends,

I am trying to import manage solution.

I got below error, any idea on this error?

Note: I am using Package Deployer...

Error : Message: WebResources import: FAILURE: WebResource name = kvsl_icon_games_png: Cannot insert duplicate key exception when executing non-query: System.Data.SqlClient.SqlCommand Exception: System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'cndx_PrimaryKey_WebResource'. Cannot insert duplicate key in object 'dbo.WebResourceBase'. The duplicate key value is (e1afc987-2e4e-e411-9474-00155d6f592d, 0, Jan 1 1900 12:00AM).

The statement has been terminated.

at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Solution import issue - violation of Primary Key- Dynamic 365 online

    Can you please exclude the webresource from the solution which are created recently and see the result.

  • Santosh Kulkarni Profile Picture
    235 on at
    RE: Solution import issue - violation of Primary Key- Dynamic 365 online

    We have added web resources but with separate name. I don't know why it is giving error with GUID?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Solution import issue - violation of Primary Key- Dynamic 365 online

    Hi Santosh ,

    Can you please check in the  solution , if is there any same name web resources available or not.

    Do you know what are the web resources created recently ? Try to find out those might be you can get something .

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans