Help with the error: Response status code does not indicate success: 400 (Bad Request)

Hi, I’m trying to create a sequence that sends notification emails to some contacts with information, but when I run the program I get this error.

in Main.xaml
at SendEmailNotification “Send Email Notification”
at Sequence “Then”
at If “If”
at Sequence “Body”
at ForEachRow “For Each Row in Data Table”
at Sequence “Main Sequence”
at Main “Main”

System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
at UiPath.Core.Activities.ForEachBase`1.OnExecutionFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Hi @dgavilanez

Are you able to please share more details on this?

if you can share screenshot of your workflow and configuration of your send mail activity, that would be helpful.

Also, how are trying to run this process? from studio or orchestrator?

@dgavilanez

Can you please show a screenshot of the activity

cheers

I’m experiencing the same issue. When I execute the send mail object and correctly configure the to, subject, and body fields, I get the following output: “Send Email Notification: Response status code does not indicate success: 400 (Bad Request).”

Can you help me determine if this is a bug in the current version or if there’s something missing in the configuration?