Hi Guys,
i have checked the database and found no issue in webresource table. On tracing the error i found below error.
Cannot insert duplicate key exception when executing non-query:
insert into [WebResourceBase]([OverwriteTime], [OrganizationId], [DisplayName], [Description], [SolutionId], [ModifiedOnBehalfBy], [CreatedOnBehalfBy],
[Content], [IsManaged], [LanguageCode], [WebResourceType], [CreatedOn], [ComponentState], [ModifiedBy],
[WebResourceId],
[ModifiedOn],
[Name],
[CreatedBy]
)
values
('01/01/1900 00:00:00', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', NULL, NULL, 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', NULL, 0, 1033, 3, '08/02/2018 05:51:28', 0, 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'08/02/2018 05:51:28',
'new_test11.js',
'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx')
Exception: System.Data.SqlClient.SqlException (0x80131904)
: Cannot insert the value NULL into column 'WebResourceIdUnique', table '********_MSCRM.dbo.WebResourceBase'; column does not allow nulls. INSERT fails.
Since WebResourceIdUnique field is an internal field i am unable to figure out how to proceed. Any help would be appreciated.