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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.