Miscellaneous topics that do not fit into specific categories.
As Jimson said, you need to move some dependencies. I wrote a blog on it.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am getting below error on D365 FO when I create a GL journal in D335 FO VM
The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
the VM doesn't have any customization
Miscellaneous topics that do not fit into specific categories.
As Jimson said, you need to move some dependencies. I wrote a blog on it.
Fixed the issue, Below powershell script fix the problem
$AOSDirectory = 'J:\AOSService\PackagesLocalDirectory'
$AOSBinDirectory = $AOSDirectory +'\Bin'
$sharedDLL = 'Microsoft.Dynamics.AX.Xpp.AxShared.dll'
$subledgerDLL = 'Microsoft.Dynamics.Subledger.Instrumentation.dll'
$taxDLL = 'Microsoft.Dynamics.Tax.Instrumentation.dll'
$prodCfgDLL = 'Microsoft.Dynamics.ProductConfiguration.Instrumentation.dll'
$sourceDocDLL = 'Microsoft.Dynamics.SourceDocumentation.Instrumentation.dll'
Copy-Item $(Join-Path $AOSDirectory -ChildPath Subledger\bin | Join-Path -ChildPath $subledgerDLL) -Destination $AOSBinDirectory
Reflection.Assembly::LoadFrom($(Join-Path $AOSBinDirectory -ChildPath $subledgerDLL))
Copy-Item $(Join-Path $AOSDirectory -ChildPath Tax\bin | Join-Path -ChildPath $taxDLL) -Destination $AOSBinDirectory
Reflection.Assembly::LoadFrom($(Join-Path $AOSBinDirectory -ChildPath $taxDLL))
Copy-Item $(Join-Path $AOSDirectory -ChildPath SourceDocumentation\bin | Join-Path -ChildPath $sourceDocDLL) -Destination $AOSBinDirectory
Reflection.Assembly::LoadFrom($(Join-Path $AOSBinDirectory -ChildPath $sourceDocDLL))
Copy-Item $(Join-Path $AOSDirectory -ChildPath ApplicationSuite\bin | Join-Path -ChildPath $prodCfgDLL) -Destination $AOSBinDirectory
Reflection.Assembly::LoadFrom($(Join-Path $AOSBinDirectory -ChildPath $prodCfgDLL))
Reflection.Assembly::LoadFrom($(Join-Path $AOSBinDirectory -ChildPath $sharedDLL))
Hi Jismon Ittiachen, I know this has been exhausting when a simple GL journal throws a cryptic performance‑counter error on a clean FO VM it feels unfair especially when you’ve got real work waiting and the usual check config advice doesn’t help.
Run the admin PowerShell script on your AOS VM to copy and load the Dynamics instrumentation DLLs call each PerformanceCounterCatalog.Setup and AxPerformanceCounters.InitializePerformanceCounterCategories to create the missing counter categories then restart AOS/IIS verify in perfmon that Microsoft.Dynamics.Subledger. Microsoft.Dynamics.Tax and Microsoft.Dynamics. counters exist and rebuild Windows counters with lodctr /R first if they’re corrupted and if you’re on 10.0.45 apply the latest Quality/Platform Update via LCS.
On that VM, did you run the PowerShell initialization as an Administrator on the exact AOS path example K:\AOSService\PackagesLocalDirectory) and after the restart does perfmon show the Dynamics categories under the same Windows account the AOS service runs no permission mismatch between your admin user and the AOSService identity?
Best regards
Lucky Charm
AI answer
The error message you are encountering in D365 FO regarding the Performance Counter indicates that the system is expecting a ReadOnly initialization for the counter in question. Since you mentioned that the VM does not have any customization, it is likely that the issue could stem from the default settings or configurations of the Performance Counters within the environment.
Here are a few steps you can consider to troubleshoot this issue:
If the problem persists, you may need to reach out to Microsoft support for further assistance, especially if this is a production environment.
References: