I have included a “Retrieve Data from Object“ action in my workflow to get the “domain“ based on the “OnPremisesSamAccount“ for the target user, but it's failing. Why is this happening?

Please refer to the following data reference for the input list in order to obtain the required properties:
Target | Id |
---|---|
User | UPN |
Mailbox | UPN |
Mail contact | Id |
Distribution group | Id |
Security groups | Id |
Office 365 group | Guid |
Teams | Guid |
Skype for Business | UPN |