and more in a single search tool across platforms. Read the announcement here. |
04/10/2023 11:51 AM
Hi Team,
We have set up SMTP configuration using OAuth in v22/23. Facing issue while reading approval response through mail.
Error :- Exception in readAndGetEmailOauth
Attaching log file here. Your response will be much appreciated.
Thank you,
04/10/2023 01:19 PM
@vyadav - Can you share the log file? Don't see it attached in the post.
In the meanwhile, does your OAuth App created in Azure portal have all the API permissions listed in documentation?
-Siva
04/11/2023 04:47 AM
04/12/2023 02:34 PM
Thanks for the logs. I see NumberFormatException in logs.
What are the values you are trying to pass in your receive email config. Are any values left blank?
324 [quartzScheduler_Worker-10] DEBUG ecm.ReceiveMailService - Exception in readAndGetEmailOauth : \n" |
{log":"java.lang.NumberFormatException: For input string: \"\"\n" |
{log":"\u0009at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)\n" |
{log":"\u0009at java.lang.Integer.parseInt(Integer.java:592)\n" |
{log":"\u0009at java.lang.Integer.parseInt(Integer.java:615)\n" |
{log":"\u0009at com.saviynt.ecm.ReceiveMailService.getEmailToProcess(ReceiveMailService.groovy:844)\n" |
{log":"\u0009at com.saviynt.ecm.ReceiveMailService.readAndGetEmailOauth(ReceiveMailService.groovy:581)\n" |
{log":"\u0009at IncomingMailARSJob.execute(IncomingMailARSJob.groovy:160)\n" |
{log":"\u0009at org.quartz.core.JobRunShell.run(JobRunShell.java:199)\n" |
{log":"\u0009at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)\n" |
04/13/2023 06:09 AM
Thanks to point it. We will check it once again..
04/14/2023 01:43 AM
Most probably - Process Emails Received In Last X Hours would have been left blank in your OAuth Receive Email Configuration.
The value you enter here will be used to decide how many days of emails needs to be read by Microsoft Graph API in case of OAuth. I know that the title of the config says hours but internally Saviynt considers it as days and passes along to microsoft graph API. Put the value as 1 if you want to process last 24 hrs emails for approvals.
Hope this clarifies.
-Siva