Hi,
Thank you for asking this question on the Microsoft Q&A Platform.
I am assuming and thinking on the lines of a missing OID usually means the servicePrincipal for your app does not exist in the tenant in which your trying to access.
Each tenant in which you want to access must consent to your application. This will ensure the servicePrincipal exists in their tenant and that servicePrincipal has access to the Azure API.
==
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.