Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

SMTP configuration using OAuth in v22/23

vyadav
New Contributor
New Contributor

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,

 

5 REPLIES 5

Sivagami
Valued Contributor
Valued Contributor

@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?

https://docs.saviyntcloud.com/bundle/EIC-Admin-v2022x/page/Content/Chapter06-EIC-Configurations/Sett...

-Siva

vyadav
New Contributor
New Contributor

Thanks for your suggestions will check all permissions and attaching error file below..

Sivagami
Valued Contributor
Valued Contributor

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"

vyadav
New Contributor
New Contributor

Thanks to point it. We will check it once again..

Sivagami
Valued Contributor
Valued Contributor

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