Usuário com melhor resposta
Erro no envio de e-mail por Workflow do Sharepoint 2013

Pergunta
-
Boa noite! Sou novo no Sharepoint 2013, e estou tentando fazer um Workflow que envie um e-mail quando um arquivo for "upado", porém estou recebendo o seguinte erro no status de execução do Workflow:
Alguém já passou por isso? Segui este procedimento para testar o envio de e-mails: http://www.douglasromao.com.br/Lists/Postagens/Post.aspx?ID=15 e funcionou.
Valeu galera!
Valeu galera
Respostas
-
Bom dia Jackson,
Sempre :)! Bom então vamos ver os eventos nos logs. Execute o seguinte comando e insere ID "SPRequestGuid" da mensagem de erro depois do parâmetro -correlation. Você poderá compartilhar conosco os eventos com a severidade critical e unexpected.
Merge-SPLogfile -Correlation -path c:\wf500.log
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- Sugerido como Resposta Luiz Felipe S. T. Costa sexta-feira, 7 de fevereiro de 2014 15:26
- Marcado como Resposta Luiz Felipe S. T. Costa terça-feira, 11 de fevereiro de 2014 09:43
Todas as Respostas
-
Bom dia Jackson,
Tudo bem? Sim eu já vi esse evento, porém existem alguns fatores que causam isso. Verifique por favor se o serviço App Management Service está com o estado "running" e também a configuração do UPA (User Profile Service Application) que é um requerimento (http://social.technet.microsoft.com/wiki/contents/articles/12545.sharepoint-2013-setting-up-user-profile-synchronization-12.aspx ).
Segue esse KB http://technet.microsoft.com/en-us/library/bb232021(v=exchg.141).aspx se você encontra nos logs do SharePoint um evento relacionado que contem o status 401.
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- Sugerido como Resposta Luiz Felipe S. T. Costa quinta-feira, 6 de fevereiro de 2014 09:58
-
Obrigado David!
Eu verifiquei e o serviço está rodando:
Meu servidor SMTP também já está aceitando conexões anônimas, e a configuração de perfis de usuário também está feita de acordo com o tutorial passado.
Porém o erro continua, onde será que estou errando?
Desde já agradeço!
-
Bom dia Jackson,
Sempre :)! Bom então vamos ver os eventos nos logs. Execute o seguinte comando e insere ID "SPRequestGuid" da mensagem de erro depois do parâmetro -correlation. Você poderá compartilhar conosco os eventos com a severidade critical e unexpected.
Merge-SPLogfile -Correlation -path c:\wf500.log
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- Sugerido como Resposta Luiz Felipe S. T. Costa sexta-feira, 7 de fevereiro de 2014 15:26
- Marcado como Resposta Luiz Felipe S. T. Costa terça-feira, 11 de fevereiro de 2014 09:43
-
-
-
Bom dia Jackson!
tudo bem? sim é o parâmetro level (http://technet.microsoft.com/en-us/library/ff607721.aspx)
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
-
Olá Jackson,
tudo bem? Obrigado, assim conseguimos identificar a causa do problema :).
Eu identifiquei o seguinte evento:
Exception occured in scope Microsoft.SharePoint.Utilities.SPUtility.SendEmail. Exception=System.Net.Mail.SmtpException: The server committed a protocol violation The server response was: UGFzc3dvcmQ6 at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at Microsoft.SharePoint.Utilities.SPUtility.SendEmail_Client(EmailProperties properties) at Microsoft.SharePoint.ServerStub.Utilities.SPUtilityServerStub.InvokeStaticMethod(String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boo... ...lean& isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeStaticMethodWithMonitoredScope(String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)
Acima indica um problema na autenticação do SMTP client.
Peço que você verifique novamente a configuração do relay seguindo esse artigo: http://blogs.msdn.com/b/exploring_technology_/archive/2011/10/10/configuring-exchange-server-2010-and-sharepoint-2010-for-sending-emails.aspx
Execute, se acima não funcionou esse comando do PowerShell no servidor do Exchange:
Altere o nome do relay antes. Por exemplo "Anonymous Relay" para "Meu relay"
http://technet.microsoft.com/en-us/library/bb232021(v=exchg.141).aspx
Get-ReceiveConnector "Anonymous Relay" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
Meu Exchange já está configurando desta forma... O Receiver já aceita anonymous e já está configurado no site conforme as instruções.
Seguindo este procedimento: http://www.douglasromao.com.br/Lists/Postagens/Post.aspx?ID=15 consegui enviar e-mail normalmente.
Onde mais posso estar errando?
-
Executou o comando? (Get-ReceiveConnector "Anonymous Relay" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient")
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
-
Bom dia Jackson,
tudo bem? O script está ok, eu tenho um parecido no meu blog. Verifique os eventos no servidor exchange, precisamos considerar essa parte do evento "Exception=System.Net.Mail.SmtpException: The server committed a protocol violation The server response was: UGFzc3dvcmQ6"
http://social.technet.microsoft.com/Forums/en-US/7d7fdfff-4744-44a8-a1b6-ce95731165ce/event-id-1035-authentication-failed?forum=exchangesvrsecuremessaginglegacy
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
-
Vamos continuar sim! Fiquei interessado! Identificou algum evento no servidor Exchange?
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
Não... Tentei configurar com uma conta do Gmail (seguindo este tutorial: http://blogs.technet.com/b/yashgoel-msft/archive/2012/10/26/configuring-outgoing-email-settings-in-sharepoint-with-gmail-smtp.aspx) e também não rolou! Existe alguma outra forma de testar o envio sem ser utilizando Workflow?
-
Humm, ok. Você recebeu o e-mail gerado pelo script utilizado no teste?
Como é a configuração da conexão a internet do usuário de serviço (>Start, >Control Panel, >Internet Options, >Connections, >Lan Settings)?
Remove qualquer proxy configurado e testa novamente o comportamento.
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
-
Olá Jackson!
Ok, vamos considerar que as configurações do Exchange e do SharePoint estão corretas.
Você poderia criar um fluxo utilizando a arquitetura 2010 como "workaround" ate que nós resolvemos o problema.
Retorno em breve com uma (eu espero) solução :)
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.