HomeForum
Welcome, Guest

Import which continually rejects records with bad dates
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Import which continually rejects records with bad dates

Import which continually rejects records with bad dates 1 year, 1 month ago #2635

  • Joe
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Karma: 0
Good morning,

I have an import which continually rejects records with bad dates. I would like them to capture this data and deal with it afterwards, but it appears they are is always rejected, even if I set the error function to use a default date 01/01/1111.


Is they any way to accept these records and include them in the output table?

Thanks

Re: Import which continually rejects records with bad dates 1 year, 1 month ago #2636

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2191
  • Karma: 12
The problem is that SQL server can handle data from January 1, 1753, through December 31, 9999 only for Datetime fields.

That leaves you only with two options

1 change field type to varchar
2 Use rejected records file (set batch size to 1 for sql server connection) and correct the data in the rejected records file and load it

Hope that helps,
John

Re: Import which continually rejects records with bad dates 1 year, 1 month ago #2637

  • Joe
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Karma: 0
John, thanks for the follow up and suggestions.

Regards,
Joe
  • Page:
  • 1
Time to create page: 0.16 seconds

Testimonials

"Using Active Table Editor is the easiest way of editing lookup tables  I've ever seen. A free 30-day trial is available on their Web site; the only issue is that when the 30 days are up, you're going to want to buy it."
- Moo Ling, Software Enginier

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top