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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. Machine: AXDB

(0) ShareShare
ReportReport
Posted on by 10

Dears , 

i install MR CU16 fresh installation and once initial integration enabled and start  i face this issue could you please advice where the error 

The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

Log Name: Microsoft-Dynamics-MR-Logger/Operational
Source: Microsoft-Dynamics-MR-Logger
Date: 3/9/2020 9:10:57 AM
Event ID: 6
Task Category: LoggerErrorEvent
Level: Error
Keywords: Exception,Diagnostic
User: 
Computer: AXDB
Description:
An error event was logged.
Event Xml:
<Event xmlns="">schemas.microsoft.com/.../event">
<System>
<Provider Name="Microsoft-Dynamics-MR-Logger" Guid="{8D043B9F-5686-4786-B92C-35DA15DE02A4}" />
<EventID>6</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>5</Task>
<Opcode>0</Opcode>
<Keywords>0x4000000000000006</Keywords>
<TimeCreated SystemTime="2020-03-09T06:10:57.674437000Z" />
<EventRecordID>7308286</EventRecordID>
<Correlation ActivityID="{322BAECB-9FDE-4A1C-94C9-4F2CE23C289C}" />
<Execution ProcessID="29712" ThreadID="25188" />
<Channel>Microsoft-Dynamics-MR-Logger/Operational</Channel>
<Computer>AXDB.enpro.com</Computer>
<Security UserID="S-1-5-21-2958807700-3223353396-4122738414-1205" />
</System>
<EventData>
<Data Name="source">ServiceHostTraceSource</Data>
<Data Name="id">-1</Data>
<Data Name="component">Microsoft.Dynamics.Integration.Common.TraceLog</Data>
<Data Name="errorMessage">Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.</Data>
<Data Name="exceptionMessage">Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.</Data>
<Data Name="exceptionSource">System.Data</Data>
<Data Name="exceptionType">System.InvalidOperationException</Data>
<Data Name="stackTrace"> at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal&amp; connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.&lt;&gt;c__DisplayClass1.&lt;ExecuteAction&gt;b__0()
at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at Microsoft.Dynamics.Performance.Core.SqlConnectionWrapper.Open()
at Microsoft.Dynamics.Integration.Adapters.AX2012GL.AX2012GLAdapter.OpenTrustedSqlConnection(SchemaPrivilege requiredPrivilege)
at Microsoft.Dynamics.Integration.Adapters.AX2012GL.DimensionValueObjectProvider.CreateDimensionConnection(Dimension dimension)
at Microsoft.Dynamics.Integration.Adapters.AX2012GL.DimensionValueObjectProvider.CreateCombinedTempTablesForIntegration(SqlConnectionWrapper connection)
at Microsoft.Dynamics.Integration.Adapters.AX2012GL.DimensionValueObjectProvider.&lt;ReadObjects&gt;d__46.MoveNext()
at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.ProcessRecordsImplementation(OperationType operationType)</Data>
<Data Name="failureBucketId">
</Data>
<Data Name="appDomainId">2</Data>
<Data Name="buildVersion">2.12.16000.17</Data>
</EventData>
</Event>

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,014 Super User 2025 Season 2 on at

    Hi Mohammed,

    It can be due to wrong credentials or there might be a machine offline or indeed the number of connections has been reached. Do you have a SQL server administrator on-site who can check this for you?

  • Mohammed Alshafie Profile Picture
    10 on at

    thanks André  for your answer ,  i checked credential it's correct ,  and SQL Connections unlimited  

  • André Arnaud de Calavon Profile Picture
    301,014 Super User 2025 Season 2 on at

    Hi Mihammed,

    If everything is setup like suggested by the documentation and all machines are running properly, you can probably create a support ticket for Microsoft Support.

  • Suggested answer
    Marianw Profile Picture
    on at

    Hi Mohammed,

    Thank you for using Dynamics Finance Communities.

     The timeout error is usually due to a large query taking too long to complete. With MR 2012 RU2 and above, there is a setting in the following file on the Management Reporter server, we can adjust:

     

    C:\Program Files\Microsoft Dynamics ERP\Management Reporter\2.1\Server\Services\MRServiceHost.settings.config.

     

    You will see the following lines in that file. If you don't see the following you can add the missing items:

     

    <?xml version="1.0" encoding="utf-8"?>

    <appSettings>

    <add key="DefaultBaseAddress" value="">http://csevers5:4712/" />

    <!-- Valid values for "MaximumConcurrentReportTasks" are 1 to 2147483647. The default value is 5.-->

    <add key="MaximumConcurrentReportingTasks" value="5" />

    <add key="AXReaderTimeout" value="90" />

    <add key="GPReaderTimeout" value="90" />

    <add key="SqlBulkCopyTimeout" value="3000" />

    <add key="SqlBulkCopyBatchSize" value="10000" />

    <add key="IntegrationReaderTimeout" value="600" />

    </appSettings>

     

    NOTE:
    I suggest creating a backup of this file prior to making any changes.

    The values above are the default values, listed in seconds.

    You can update the "IntegrationReaderTimeout" value to a larger number.

    Note that you can either set it larger, such as "7200" (2 hours) or you could set it to "0", which would mean that it would never timeout.

     

    Please restart the Management Reporter services once done.

    If the issue does not get resolved even after adjusting the time out settings, please log a support ticket so that we can continue to investigate the issue.

    Regards,
    Marian Wrice
    SR Support Engineer
    Dynamics 365 Finance

  • Mohammed Alshafie Profile Picture
    10 on at

    thanks Marian for your answer , i made your suggestions and i have this  error ?

    // The operation could not be completed due to a problem in the data provider framework.

    Component: Microsoft.Dynamics.Performance.Reporting.DataProvider.Server.DirectLinkService\\

  • Suggested answer
    Marianw Profile Picture
    on at

    Hi Mohammed,

    Thank you very much for the update.

    Now that the integration is no longer timing out, the actual errors will now occur.

    My suggestion is to reset the Datamart once again to refresh the data.

    Please refer to the article link below for the steps:

    community.dynamics.com/.../resetting-the-management-reporter-2012-data-mart-with-cu15-via-powershell

    If your question has been answered, could you help mark the thread as answered please?

    If you continue to have errors in the installation process, please log a support ticket to assist our team take a closer look at what is occurring during the process.

    Thanks so much!

    Regards,

    Marian Wrice

    SR Support Engineer

    Dynamics 365 Finance

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 659 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 533 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans