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 :
Microsoft Dynamics CRM (Archived)

AsyncService - Config database error - Invalid value for Max Pool Size

(0) ShareShare
ReportReport
Posted on by 508

Hello,

I have a CRM server where this error messages is displayed every 10min or so. Starting to wonder if it has something to do with a problem I am having with workflow stuck in status 'waiting for resources'...

--------------------------------------------------------

Host SERVER.MSCRMAsyncService$maintenance.2ee29efb-d4d1-437d-a9e2-3b2d83de87e3: a config database error occured. Exception: System.ArgumentException: Invalid value for key 'Max Pool Size'.
at System.Data.SqlClient.SqlConnectionStringBuilder.set_MaxPoolSize(Int32 value)
at Microsoft.Crm.MultiOrgConnectionSupportBehavior.HandlePoolSizes(SqlConnectionStringBuilder builder)
at Microsoft.Crm.MultiOrgConnectionSupportBehavior.HandleInitialCatalog(SqlConnectionStringBuilder builder, Guid organizationId)
at Microsoft.Crm.CrmSqlConnectionManager.CreateConnection(Boolean enableMars)
at Microsoft.Crm.CrmDbConnection.GetCreateConnection()
at Microsoft.Crm.CrmDbConnection.GetCreateAndOpenConnection()
at Microsoft.Crm.CrmDbConnection.Open()
at Microsoft.Crm.Asynchronous.JobDataAccess.ExecuteSqlOrganizationScopeAndProcessRecords(IDbCommand command, Guid organizationId, RecordProcessor recordProcessor)
at Microsoft.Crm.Asynchronous.JobDataAccess.RetrieveSqlServerName(Guid orgId)
at Microsoft.Crm.Asynchronous.JobDataAccess.UpdateJobTargetServer(AsyncJob job)
at Microsoft.Crm.Asynchronous.JobDataAccess.GetNextJob(IList`1 orgsAvailableForMaintenance, DateTime startCycleTime, Int32 maxJobsToReturn)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Shidin Haridas Profile Picture
    3,497 on at

    Can you try restarting the Async service? & do an IIS Reset as well.

  • MLarsen Profile Picture
    508 on at

    Hello Shidin.

    I have tried to restart the AsyncService and also did a restart of the whole server, did not help. The error message is still turning up in the event log.

  • Daniel Wikell Profile Picture
    2,360 on at

    Hi

    Can you locate the config value in question and see what it is currently set to? If you post the location and your current value here we can always compare it to another CRM installation to see what a healthy one should look like.

  • Suggested answer
    Ben Thompson Profile Picture
    6,350 on at

    Check the connection string that the Async service on that server uses to connect to the SQL server database. I suspect there is a typo within the connection string. For reference the value for Max Pool Size should be greater than 0 and higher than the Min Pool Size value (if set)

    Given that the error message is only appearing every 10 minutes I suspect the Async service on that server isn't actually doing anything at all so you could re-configure or remove and reinstall it if you can't find the connection string.

  • MLarsen Profile Picture
    508 on at

    You mean 'Max Pool Size' ? Can't say I know where to find that.

  • MLarsen Profile Picture
    508 on at

    Where can I locate this connection string exactly? :) I found the DeploymentProperties table on the SQL but there is no value named 'Max Pool Size' or anything like that.

  • Daniel Wikell Profile Picture
    2,360 on at

    Since in your error message it complains about a "config database error" I would suspect the setting you are looking for is located somewhere inside the MSCRM_CONFIG database as a data row.

  • MLarsen Profile Picture
    508 on at

    The only thing I can find regarding 'Max Pool Size' is SharedDBConnectionPoolMaxPoolSize column under the table DeploymentProperties on MSCRM_CONFIG database:

    28_2D00_05_2D00_2018-10_2D00_40_2D00_24.jpg

    But this value is also like this on another server I have, and I guess the value -1 is unlimited.

  • Daniel Wikell Profile Picture
    2,360 on at

    Alright so then it's probably not it.

    Digging further in your stacktrace, the last method before the exception occurrs is "System.Data.SqlClient.SqlConnectionStringBuilder.set_MaxPoolSize".

    This does indicate that the problem lies in the connection string that the async service uses to connect TO the config database, and not a value in the config database itself, which I notice now is actually what Ben Thompson said in the first place.

    The config file for the async service is likely located next to the executable for the service which is usually located at "C:\Program Files\Microsoft Dynamics CRM\Server\bin\".

    Check "CrmAsyncService.exe.config" file there and see if you can find any connection string there that either looks iffy or is missing a Max Pool Size property.

  • MLarsen Profile Picture
    508 on at

    Hello and thank you for your answer. I have already looked there :) There is nothing in that config file that has to do with connection to the database and max pool size as I can see. There is only publicKeyTokens and version numers in that config file.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans