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

Dynamics 365: The remote server returned an unexpected response: (400) Bad Reques when running BVT testcase?

(0) ShareShare
ReportReport
Posted on by

Description:

the testcase will failed and have a error:(400) Bad Request, when running BVT testcase, and attached the specified error message.

<Message>
Test method MS.Dynamics.Test.BAT.Foundation.XppSDK.InteractionService.InteractionService.DataMethodsBoundToFormsAndDataSourcesHonorEdtPrecision threw exception: System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (400) Bad Request. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
</Message>

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Apple,

    It would be great if you can explain your definition of the abbreviation BVT. Is the B for Business or Build?

    Can you explain in detail what was running and on what type of environment?

  • Liya Cheng Profile Picture
    on at

    Hi André

    the environment is ax7 , B of BVT is Build  and in this testcase , will open the form , and it will failed when open the form,please give me some suggestion.

    pastedimage1577166594081v1.png

  • WillWU Profile Picture
    22,361 on at

    Hi Apple,

    Is this the case for everyone?

    Are there any proxies or firewalls active?

    Please check the windows event for more details.

    You can restart the "AOSService" in IIS.

    Try to clear the cache and restart the browsers or you can try to login in from multiple devices.

    Hope this helps.

  • Liya Cheng Profile Picture
    on at

    Hi Will

    I should modify the testcase not do some manual to improve, so i don't know how to deal with it.

  • WillWU Profile Picture
    22,361 on at

    Hi ,

    Please provide more codes.

    It can only be seen from the error that there is a problem with the request parameters.

  • Liya Cheng Profile Picture
    on at

    Hi Will

    pastedimage1577178068208v1.png

  • WillWU Profile Picture
    22,361 on at

    Hi ,

    I don't know what's the 'cm'.

    Please refer to the code to open a form.

    static voidOpenForm_ThroughCode(Args _args)
    {
        Args                            args;
        Object                          formRun;
    
        // open form
        args = new Args();
        args.name(formstr(FormName));
        formRun = classfactory.formRunClass(args);
        formRun.init();
        formRun.run();
        formRun.wait();
    }

  • Liya Cheng Profile Picture
    on at

    Hi will

    sorry, the cm has been declared in the class : static ClientCommunicationManager cm;

  • WillWU Profile Picture
    22,361 on at

    Hi Apple,

    I'am sorry that I have no idea about how to use the ClientCommunicationManager .

    Why don't you try the normal way to open a form.

  • Liya Cheng Profile Picture
    on at

    Hi Will,

    Thanks for your answer, because the code is created by other , i will continue it ,thanks!.

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

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 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