Where do you call it? On a page (Datasource microflow or a button)? It needs to be in the context of an object it needs as parameter.
If you use it in a microflow, you need to pass an object that is expected (or pass empty but usually there is a reason why it needs a parameter object).
It sounds like the activity to call this microflow, does not support all the required attributes.
@Andreas Blaesius I am calling it on a button. What exactly mean by need to be in the context of an object it needs as parameter. can you send me some sample project for login Salesforce