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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dan80
Helper II
Helper II

Getting pretty annoyed with 'Premium'....Error: PipelineException: Invalid cast from 'System.DateTim

Second time I have tried premium and both times want to cancel it within a week as the error messages aren't helpful and google doesn't help.  Can someone out there help me before I cancel premium again??

 

I am trying to set up a machine learning model based on a dataflow.  The dataflow works great and refreshes without a hitch but as soon as I try to refresh the ML model (as part of training it) the refresh bombs out with the below message.

 

From what I can find online (Chris Webb - what a legend!), it seems to be something around privacy settings but for the life of me I cannot find how to change these, I have 'ticked' the box to allow combining of data.

 

Error: PipelineException: Invalid cast from 'System.DateTime' to 'System.TimeSpan'. . RootActivityId = 6d251ab9-90c7-42a8-8076-abd29af185a7.Param1 = PipelineException: Invalid cast from 'System.DateTime' to 'System.TimeSpan'. Request ID: 1f8d5d35-cd98-2725-5157-0acf742826cf.

 

HELP!!

1 ACCEPTED SOLUTION
Dan80
Helper II
Helper II

Looks like the issue was to do with the source data having the hour column in time format, if I converted the hour to a number then the issue appears to go away.  For now, problem solved, but still struggling to understand the error messaging.  Thanks

View solution in original post

2 REPLIES 2
Dan80
Helper II
Helper II

Looks like the issue was to do with the source data having the hour column in time format, if I converted the hour to a number then the issue appears to go away.  For now, problem solved, but still struggling to understand the error messaging.  Thanks

v-xiaotang
Community Support
Community Support

Hi @Dan80 

Based on my search, it seems you are converting DateTime to TimeSpan, but this is an invalid conversion. You need to get the difference between the two datetimes before it can be converted to timespan.
-
if this issue is urgent, I suggest that you can also open a support ticket with MSFT to seek technical support,
https://powerbi.microsoft.com/en-us/support/

 

I'm very concerned about this issue. Any question, please let me know. looking forward to receiving your reply.

 

 

 

Best Regards,

Community Support Team _ Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors