Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Getting error while running python script

Dear Community users,

i am getting error while writing python script in powerbi desktop 

below is my input and  i need Forecast for next 365 days .

my date is in datetime format

Dhrutivyasa070_1-1690191408814.png

 

Dhrutivyasa070_0-1690191386407.png

below is my error : 

DataSource.Error: ADO.NET: Python script error.
<pi>ValueError: time data "2022-10-03T00:00:00.0000000" doesn't match format "%d/%m/%Y %H:%M:%S", at position 0. You might want to try:
- passing `format` if your strings have a consistent format;
- passing `format='ISO8601'` if your strings are all ISO8601 but not necessarily in exactly the same format;
- passing `format='mixed'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.
</pi>

 

Thanks in advance!

1 REPLY 1
mlsx4
Memorable Member
Memorable Member

Hi @Dhrutivyasa-070 

 

Your date is in format year month day(%y%m%d) and it is expected day month year (%d%m%y). 2022 would never be an acceptable value for a day 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.