Hello SAAD,
Do you have any Entity access rules? Maybe that you constrain the access only to the member that created the entity.
If you changed the access rules recently clear the cache, clean Mendix deployment directory and re deploy.
Also debug the issue to see what the retrieve is getting if you are doing it in a microflow.
Let me know if this worked or more information about the issue.