Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

SQL Sever Error on adding new custom entity in CRM 2016 on premise

$
0
0

I am experiencing SQL Server Generic Error only when creating a new custom entities.
I can create new records on the existing entities, add the custom fields and add new solutions as well, the problem is only when creating new entities. We have just migrated our CRM into another enviroment, restored and imported the organization and everything seems to be fine until I notice that I cannot add new custom

entities. Here are the error Trace details

Here are the error Trace details

[2016-10-04 09:24:49.247] Process: w3wp |Organization:" " |Thread: 46 |Category: Platform.Metadata |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 4e946baf-787d-4b0e-8f6b-b8d55e8f1fc0 | EntityService.Create ilOffset = 0xB1
>EntityService.Create caught exception: System.Data.SqlClient.SqlException (0x80131904): Cannot truncate table 'CascadeDeleteEntitiesTopologicalOrder' because it is published for replication or enabled for Change Data Capture.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.Crm.Metadata.CascadingSprocGenerator.SaveTopologicalOrder()
at Microsoft.Crm.Metadata.CascadingSprocGenerator.ProcessDelete(Boolean alter)
at Microsoft.Crm.Metadata.CascadingSpGenerator.Process(ISqlExecutionContext context)
at Microsoft.Crm.Metadata.MetadataHelper.ProcessDatabaseOperations(CounterList listCounters)
at Microsoft.Crm.Metadata.MetadataHelper.ProcessQueue()
at Microsoft.Crm.Metadata.EntityService.CreateInternal(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ExecutionContext context)
at Microsoft.Crm.Metadata.EntityService.Create(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ExecutionContext context)


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>