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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.