Hi,
I have a logic app Standard with multiple workflows to send emails.
When I trigger a workflow multiple times, it ran into this issue:
{"statusCode":"NotFound","body":{"code":"ServiceProviderActionFailed","message":"The service provider action failed with error code 'ServiceOperationInvalidParameter' and error message 'The specified SMTP Server Address cannot be found: 'my.smtp.server''."}}
When going through the Application Insights log, I found the real issue:
Error message: correlationId='8dcf88bf-5f21-407f-8383-2c94b868572f', operationName='Smtp.sendEmail', message='Server Address: my.smtp.server. Failure sending mail. ', exception='System.InvalidOperationException: An asynchronous call is already in progress. It must be completed or canceled before you can call this method.
at System.Net.Mail.SmtpClient.SendAsync(MailMessage message, Object userToken)', organizationId='', activityVector='IN.03', additionalProperties='{"ParentActivityId":"00-66fe8c4f8c7e14411a77c94b1d311928-41ab5df102fe54e8-00"}', extensionVersion='1.8.9.0', siteName='logic-d-app-10007742', slotName='Production', activityId='3b310479-b1d3-4d13-b797-089cee92cfe9'.
Is there a way to fix this?