21
Views
3
Comments
Solved
Execution Stops even when Abort Transaction is Set to No in Exception Handler
Application Type
Reactive

Hello All,

Context:
I'm consuming Microsoft Graph API for a list of collaborators in a showroom where it fetches their schedule using GetSchedule method. There are different errors that I get with REST API.
1. ErrorDataSourceOperationFailed and MailboxNotEnabledForRESTAPI - invalid/incorrect email or mailbox is not valid (this might be due to person just joined the organization or left the organization)
2. ErrorAccessDenied - when collaborators have not been assigned to certain groups (groups come for internal SAP HANA data)


When I call GetSchedule method (created as integration service), it ends after returning first error. It never goes to next collaborator's email to fetch schedule or return error. 
I have set Abort Transaction to No, it still stops continuing the execution.
i have added multiple user exception

1. API is for any api related error (error mentioned in point 1 above)
2. Access denied - point no 2 error above
3. Validation is for empty collaborators returned when API is being called.

CurrentEmailList shows the current collaborators' emails (which is of count 5). But the execution has stopped after getting this Access Denied error and it doesn't move to next step. 


Also, I want to get list of email giving error when API is called. I can't assign email value when exception is called. This has been also a nightmare. I tried creating a counterList which is appended with indexes of emails giving error through API and then I can fetch them through EmailList - which is list of all collaborators currently being fetched with API. but it didnt work. 


MSCalendar_GetSchedules is the action which uses GetSchedule method from MicrosoftCalendar API. On Right you can see the structure of the response. I have added Error json as well. (reference : link)

Solution

Whoever wants to know how I solved this one, please go to this link. I had to raise another question as it was sunday when I raised this question and no one was available. And I think, once the question is old enough with less views or no reply, no one finds it until someone from MVP or Champion replies (strange).


Regards,

Aman

Hi Aman Devrath ,

My experience with Graph is more related to accessing email accounts data but I would expect to be the same for calendar.

When that error occurs for my context was missing permissions on Azure to the application.

-API permissions

Type: Application

MS Graph 2.0: mail.readwrite

mailbox access

Check for your on azure, for your application if the permissions needed are granted.

calendar: getSchedule

at least one of these are needed

ApplicationCalendars.ReadBasic, Calendars.Read, Calendars.ReadWrite


Hope that it helps you

Hi @Alexandre Yip ,

Thanks for the help. 

Permissions are all okay for my application. The errors are perfect what I am getting. Current behaviour is what is required. But I want to handle these exceptions. To handle these exceptions, I have custom messages and a server action to run which disables that particular user. But the execution stops after 1st exception. it doesn't move ahead with the transaction.

Aman

Solution

Whoever wants to know how I solved this one, please go to this link. I had to raise another question as it was sunday when I raised this question and no one was available. And I think, once the question is old enough with less views or no reply, no one finds it until someone from MVP or Champion replies (strange).


Regards,

Aman

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.