Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

RSAT (Regression Suite Automation Tool) - Error (Could not retrieve roles for AX user ***.*** (***.***@***.com))

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I'm receiving below error when I changed the "Test User" value in parameter file to my user. The error occurs when I'm trying to run the test cases. Right now "System administrator" role is assigned to my user. The test case runs fine with admin user when no value is assigned to "Test User" value in parameter file.

Status: Test case failed.

ERROR:
<Message>Could not retrieve roles for AX user ***.*** (***.***@***.com)</Message>
<Message>Bad Request</Message>

DEBUG INFO:
<?xml version="1.0" encoding="utf-16"?>
<Error xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema">
<ExceptionType>System.InvalidOperationException</ExceptionType>
<Message>Could not retrieve roles for AX user ***.*** (***.***@***.com)</Message>
<StackTrace> at MS.Dynamics.Performance.Application.TaskRecorder.Select_PO_vendor_and_item_numberBase.TryToConnectToEnvironment(Int32 connectionRetryCount, Int32 connectionRetryDelayInMilliseconds)
at MS.Dynamics.Performance.Application.TaskRecorder.Select_PO_vendor_and_item_numberBase.TestSetup(Boolean verboseSnapshotsEnabled, Int32 actionTimeout, Boolean caseSensitiveValidation, Boolean groupComparison, Int32 pauseBetweenActions, String playbackDirectory, Int32 connectionRetryCount, Int32 connectionRetryDelayInMilliseconds)</StackTrace>
<InnerError>
<ExceptionType>System.ServiceModel.FaultException`1[System.ComponentModel.Win32Exception]</ExceptionType>
<Message>Bad Request</Message>
<StackTrace>
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc&amp; rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
at MS.Dynamics.TestTools.CloudCommonTestUtilities.AxUserManagementServiceReference.IAxUserManagement.GetUserRoles(AxUser&amp; user)
at MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.DynamicsUser.get_Roles()</StackTrace>
</InnerError>
</Error>

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans