web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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 .

  • Santosh Kulkarni Profile Picture
    235 on at

    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

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans