Hello @Shreyash Choudhary ,
Thanks for the question and using MS Q&A platform.
The above error is because your Dynamics entity is missing alternate key defined which is required when you do an upsert.
To overcome this issue, you will have to define an alternate key for your entity. To do so, please follow this documentation for detailed steps:
Hope this info helps. Do let us know how it goes.
Thanks