Hi @Avinash176 ,
When you publish to Power BI Service, did you configure the data source credential successfully in the dataset setting?
Reference: OData refresh problem in Power BI Service
Community Support Team _ Caitlyn
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.