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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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