Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    Hassan Naviwala Profile Picture
    Hassan Naviwala 30 on at
    RE: Error - Input string was not in a correct on the execution of multi user performance test by using PerSDK

    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.

  • Verified answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: Error - Input string was not in a correct on the execution of multi user performance test by using PerSDK

    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans