HomeForum
Welcome, Guest

How to verify the layout of a file before import
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to verify the layout of a file before import

How to verify the layout of a file before import 1 year, 5 months ago #1246

  • Luc
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0
Hello,

I am evaluating your tool and it looks very good.
But I do not seem to find a way how to verify the layout of a file
before doing an import.
Sometimes the layout of a file provided by our customer changes without
any warning. How can we check this with your tool? I deliberately
changed some columns in a file and apparently the tool doesn't take
that
into consideration and imports the wrong data in the wrong column.

Best regards

Luc

Re: How to verify the layout of a file before import 1 year, 5 months ago #1247

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2174
  • Karma: 12
Luc
You can create another transformation dedicated to checking file structure.

Assuming that your files is delimited and first line has field names.
Double click on the reader set header lines to Zero. Click restrictions set number of lines to read to 1.
That will make transformation read first line with field names.
Than add validator and check field names.

In the package add two transformations. One will,check the file structure if nothing is wrong second will load the data.

In theory it could be done with one transformation.
I can build for you an example if you wish

Mike

Re: How to verify the layout of a file before import 1 year, 5 months ago #1248

  • Luc
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0
Hello Mike,

Thanks for the quick response.
Yes I would like to see how it can be done in one transformation.
One more question about the first way of working (2 transformations). The transformation dedicated to checking the file structure, do you have to validate each field then?
And what about the writer part since I only want to check the structure and not write it to any database? Am I correct that in each transformation a writer section is obliged?

Looking forward to your example

Best regards

Luc

Re: How to verify the layout of a file before import 1 year, 5 months ago #1249

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2174
  • Karma: 12
Here is the tutorial

Make sure that you are using latest version

www.dbsoftlab.com/online-tutorials/advan...doing-an-import.html


Mike
  • Page:
  • 1
Time to create page: 0.16 seconds

Testimonials

Development team listens to it's customers and implements new features in days sometimes hours.

Paul Gibb,
MPS

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