We have a sent functionality having "Appian Group" in the To field. Group have users and it is working fine in our DEV and SIT environment.But the problem is, not working and getting this error in UAT and PROD environment alone.
I gone through some existing threads and they suggested to use toemailrecipient() function. We didn't use, but it is working good in DEV and SIT. So, please suggest what could be teh problem with higher environments.
Problem: An error occurred in executing an Activity Class.
Details: No valid recipients resolved
Recommended Action: Examine the activity class to correct the error and then resume.
Priority of this problem: High Priority
Discussion posts and replies are publicly visible
Does this group have any members on UAT/PROD?
Yes, it sync with AD group and AD group have user in it. But in DEV and SIT, there is no AD group sync and it have users added to the Appian group directly
As per my understanding, AD group is in sync with Appian groups. Because, there are 3 roles in the application and all their segregation of access is reflected based on 3 AD groups. Field level accesses are reflected based on AD group members. The email will be sent to the members of 1 of the AD group. If access reflected, why it is not resolving the email. Please advice
This inherently has nothing to do with AD. You need to check the Appian group itself and verify whether or not there are members in it. The error in question doesn't care about the source of the group's membership, just whether there are any actual appian users in it (they can be direct or indirect members, but either way, they have to show up when you view the group itself).
I checked through my Infra support and found that the Appian users are created as indirect user in the Appian group from AD group in both UAT and PROD. So, users are present in the Appian group which used in the Tofield in the Send email step. But still it sends the error email.
By any chance are you fetching only direct members of the group. and in Lower enviornments users are direct members and in higher enviornments they are not.
As per the logic, Email will be sent to Appian Group1. Users will be added in Appian Group2 either directly or through AD group Sync. Then, Group 2 will be added to Group1. So, in all 4 environments, members are indirect only. Still having the Issue.
Is there anything in the logs?
Then, could it be that the initiator of that process does not have permission to see the members of these groups? Did you check the group security settings?
One more finding:Email configured to send email to Appian grp1 (in TO field). Appian grp2 is a member of Appian grp1 and in sync with AD. There is a member in Appian grp2 as direct and indirect to Appian grp1.1) If I add a direct member to Appian grp1, I am able to get the email successfully.2) Instead, If I reconfigured to use Appian grp2 in TO field which already have a direct member added through AD sync, it is NOT working.I don't where it is getting break
One more finding:Appian group provisioned with AD groups showing members when I opened from "All Objects" under application. If I opened the same group under SSO_AllUsers, I can't find any members inside. Will that be causing this issue? If so, how to fix this?
As far as I remember, email will be sent to both direct and indirect members of the group