Forum Discussion
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
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
- mlsx4Memorable Member
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