Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

SQL Server Error

Posted on by 155

We did a Dev refresh from prod and after that when i create a new n:n relationship, the applications errors out with "SQL server error".

N:N relationship between contact and sts_product. But trace logs shows invalid column name error which is really strange.

Please let me know if there is a way to resolve this :

ManyToManyRelationshipService.Create caught exception: System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'sts_product1'.
Invalid column name 'new_Consultant_Contact'.
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& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.Crm.CrmDbConnection.InternalExecuteWithRetry[TResult](Func`1 ExecuteMethod, IDbCommand command)
at Microsoft.Crm.CrmDbConnection.InternalExecuteNonQuery(IDbCommand command, Boolean capturePerfTrace)
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.ManyToManyRelationshipService.CreateRelationship(ManyToManyRelationshipCreateInfo manyToManyCreateInfo, MetadataHelper metadataHelper, ExecutionContext context)
at Microsoft.Crm.Metadata.ManyToManyRelationshipService.CreateInternal(IRelationshipCreateInfo relationshipCreateInfo, ExecutionContext context, MetadataHelper metadataHelper)
at Microsoft.Crm.Metadata.RelationshipServiceBase.CreateNoPrivilegeChecks(IRelationshipCreateInfo relationshipInfo, ExecutionContext context, MetadataHelper metadataHelper)
ClientConnectionId:ab396356-bb70-482f-8fd2-0c3b41e6f233
Error Number:207,State:1,Class:16



MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: Invalid column name 'sts_product1'.
Invalid column name 'new_Consultant_Contact'.
Error Number: 0x80044150
Error Message: Generic SQL error.
Error Details: Generic SQL error.
Source File: Not available
Line Number: Not available

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans