cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
svishwanathan Helper III
Helper III

Re: Not a legal OleAut date..

I cannot thank you all enough...was tearing my hair apart 

 

Didnt understand why query would run on sql , refresh locally and then fail in the gateway

 

it was indeed dates

 

 

Thanks again

 

 

Evgeniy_A
New Member

Re: Not a legal OleAut date..

Solution:

I had the same issue 

Data source error:Not a legal OleAut date.. The exception was raised by the IDataReader interface. Table: ...

In my case the issue of updating data set was:


in one table with Customers data we had birthday date - in date format obviously.

some of dates were incorrectly filled with data earlier than 1/1/1900 (for example "1/30/0992"

after filtration of the filed issue disapired.


looks like it some data filed parameter - which doesnot read that type of dates.
hope that helps

muneern
Frequent Visitor

Re: Not a legal OleAut date..

Hi All,

 

I had the same problem -- but wasnt able to easily identify the root cause, since there were many dates that were at extreme ends of the range (e.g. Year 0001 or year 9999)

 

This is what I did to fix it:

  1. Added a custom column in the with the following formula:
    NewColumn = Number.From([Due Date])
  2. Convert custom column to decimal number
  3. Sort the table by this column

 

This then gave the following error, which I could use to identify the problematic records in the table:

 

Date Error.png

 

I hope this helps someone else.

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors