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, ...
Answered

Error - Input string was not in a correct on the execution of multi user performance test by using PerSDK

(0) ShareShare
ReportReport
Posted on by 30

I'm trying to execute the multi user test by using perfSDK but it is getting failed on the Client object initialization and giving following error:

Initialization method MS.Dynamics.Performance.Application.TaskRecorder.pt_dmVM_testBase.TestSetup threw exception. System.FormatException: System.FormatException: Input string was not in a correct format. 

Error is thrown when it try to initialize DispatchedClient object from DispatchedClientHelper.GetClient(). It is failing on the authentication objects. But all the require information is filled in  ConfigurationEnvoirnment file.

following is the Error Stack:

System.Text.StringBuilder.FormatError()
System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
MS.Dynamics.TestTools.UIHelpers.Core.DispatchedClientHelper.GenerateAuthenticators()
MS.Dynamics.TestTools.UIHelpers.Core.DispatchedClientHelper.get_Authenticators()
MS.Dynamics.TestTools.UIHelpers.Core.DispatchedClientHelper.GetNextAuthenticator()
MS.Dynamics.TestTools.UIHelpers.Core.DispatchedClientHelper.GetClient()
MS.Dynamics.Performance.Application.TaskRecorder.pt_dmVM_testBase.TestSetup() in K:\PerfSDK\PerfSDKLocalDirectory\SampleProject\PerfSDKSample\Generated\pt_dmVM_testBase.cs: line 44

I have perform all the configuration steps define in the following links:

https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/perf-test/single-user-test-perf-sdk

learn.microsoft.com/.../perfsdk-multi-user-testing

We have also matched all the configuration with the already configured project but the error is still there.

pastedimage1680733684710v1.png

pastedimage1680733728027v2.png

I have the same question (0)
  • Verified answer
    huijij Profile Picture
    19,811 on at

    Hi Muhammad,

    It's difficult for me to find the root cause of the error just from your description, as we can't see your configuration in your environment. But have you checked these prerequisites for running multi-user tests with the Performance SDK? Or have you tried restarting VS and try again? You could also wait and see if others on the forum who have the similar experiences to share.

    77271576.png

  • Suggested answer
    Hassan Naviwala Profile Picture
    30 on at

    Issue got resolve by making change in the config file.

    First "Userformat" tag values was like this.

    <ConfigurationSpecificDetails Key="UserFormat" Value="ptusers{0}@{Tenant}" />

    Then i replace {Tenant} with acctual tenant domain value "xxxxx.com", it start working.

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 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans