Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

management reporter data mart configuration fails

Posted on by Microsoft Employee

We have setup a new server to host our MR services and when we try to configure the datamart for GP 2015 we get the following error. 

The process gets to the part where the service account is added to the General User Role then we receive the following error. For some reason the datamart continues to get created in singleuser mode in sql. 

12/2/2016 9:33:05 AM - Application service URI is http://<MachineName>:4712/
12/2/2016 9:33:05 AM - System.ServiceModel.FaultException: A service error has occurred. Please check your server error logs for details.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Dynamics.Performance.Deployment.Connector.Service.IConfigurationServiceContract.GetDefaultAdaptersWithSettings(DefaultAdapterWithSettingsRequest[] requests)
at Microsoft.Dynamics.Performance.Deployment.Connector.ConnectorConfigurationHelper.<>c__DisplayClassb.<GetAdaptersWithSettings>b__9()
at Microsoft.Dynamics.Performance.Deployment.Connector.ConnectorConfigurationHelper.ExecuteAndNotifyError[T](Func`1 function)
12/2/2016 9:33:05 AM - Rolling back data mart database creation due to installation error. Connection information:
Create new database: True
Server name: <sqlinstance>
Database name: ManagementReporterDM
Integrated authentication: True
Encrypted connection: False
SSDT command timeout: 0
12/2/2016 9:33:05 AM - Attempt to drop database ManagementReporterDM with connection information Data Source=<sqlinstance>;Initial Catalog=ManagementReporterDM;Integrated Security=True;Persist Security Info=False;Encrypt=False failed. Error text: System.Data.SqlClient.SqlException (0x80131904): Cannot drop database "ManagementReporterDM" because it is currently in use.
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.Practices.EnterpriseLibrary.TransientFaultHandling.SqlCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0()
at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at Microsoft.Dynamics.Performance.Core.SqlCommandWrapper.RunCommand[TResult](SqlCommand command, Func`1 execute)
at Microsoft.Dynamics.Performance.Deployment.Common.SqlUtility.TryDropDatabase(String connectionString)
ClientConnectionId:77be83a8-1569-4e83-8679-e05c7f4ad979
Error Number:3702,State:3,Class:16
12/2/2016 9:33:05 AM - The data mart database couldn't be rolled back. Full error text can be found earlier in the deployment log.
12/2/2016 9:33:06 AM - System.ServiceModel.FaultException: A service error has occurred. Please check your server error logs for details.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Dynamics.Performance.Deployment.Connector.Service.IConfigurationServiceContract.GetDefaultAdaptersWithSettings(DefaultAdapterWithSettingsRequest[] requests)
at Microsoft.Dynamics.Performance.Deployment.Connector.ConnectorConfigurationHelper.<>c__DisplayClassb.<GetAdaptersWithSettings>b__9()
at Microsoft.Dynamics.Performance.Deployment.Connector.ConnectorConfigurationHelper.ExecuteAndNotifyError[T](Func`1 function)
at Microsoft.Dynamics.Performance.Deployment.DataProvider.GP.GPDataMartDeploymentPart.ConfigureGpToDMAdapters(GPIntegrationSettings gpIntegrationSettings, ConfiguredDatabaseConnection configuredGpDatabaseConnection, ConfiguredDatabaseConnection configuredDataMartDatabaseConnection, ConnectorConfigurationHelper helper, AdapterWithSettings& gpAdapter, AdapterWithSettings& dataMartAdapter)
at Microsoft.Dynamics.Performance.Deployment.DataProvider.GP.GPDataMartDeploymentPart.ValidateSettingsWhenAppServiceExists(IDictionary`2 settingsToValidate)
at Microsoft.Dynamics.Performance.Deployment.DataProvider.GP.GPDataMartDeploymentPart.DeployWithSettings(IDictionary`2 settingsToDeployWith)
at Microsoft.Dynamics.Performance.Deployment.Console.ConfigurationConsole.Wizard.Screens.DeploymentViewModel.TryRemoveFromView(Boolean isProgressing)

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: management reporter data mart configuration fails

    I was able to solve the issue. I had to recreate the master key

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: management reporter data mart configuration fails

    Thank you Mariano however I have dropped the MR data mart and rerun the process. It always gets to the same spot then errors out.

  • Suggested answer
    Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: management reporter data mart configuration fails

    The useful part of the trace stack was this one:

    12/2/2016 9:33:05 AM - Attempt to drop database ManagementReporterDM with connection information Data Source=<sqlinstance>;Initial Catalog=ManagementReporterDM;Integrated Security=True;Persist Security Info=False;Encrypt=False failed. Error text: System.Data.SqlClient.SqlException (0x80131904): Cannot drop database "ManagementReporterDM" because it is currently in use.

    Since the datamart database could not be dropped by MR, you will need to open SQL Server Management Studio and drop the database from there. If SQL Server cannot drop the database because it also reports the database is in use, verify that the Management Reporter services are all stopped. You will then want to restart the SQL Server service, then proceed to drop the datamart database once more. If you are able to do this, then go back to the MR installer and try to build the datamart once more.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans