Skip to main content
simply more productive

The Data Specialist

Thanks to our intuitive transformation designer, you can convert data effortlessly to a variety of formats without knowing how to program. It’s not only efficient, it’s also easy to use.
Flowheater Download

Column mismatch

  • FlowHeater-Team
  • Topic Author
  • Offline
  • Admin
  • Admin
More
13 years 9 months ago - 5 months 1 week ago #2009 by FlowHeater-Team
Column mismatch was created by FlowHeater-Team
Translated submission in the German forum. You can read the original entry here .

Sometimes CSV or TXT files lack a few column separators (the table contents are thereby shifted one column to the left). Is there an option of some sort where you can define the column count and whenever it is less, skip the whole row?

ali

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Last edit: 5 months 1 week ago by FlowHeater-Team.

Please Log in to join the conversation.

  • FlowHeater-Team
  • Topic Author
  • Offline
  • Admin
  • Admin
More
13 years 9 months ago #2010 by FlowHeater-Team
Replied by FlowHeater-Team on topic Re:Column mismatch
Hi Ali,

You can achieve this using the If-Then-Else Heater together with the Filter Heater.

1. Drag both heaters onto the Designer window
2. Connect the last CSV text file field as input to the If-Then-Else Heater
3. Connect the output of the If-Then-Else Heater to the Filter Heater
4. Double click on the If-Then-Else Heater
5. Set the condition to "= NULL"

This procedure will filter out any row where there is an insufficient number of separators.

How does that work? When the TextFile Adapter reads a CSV file in, fields are undefined if they are unavailable. This unavailability is detected by the conditional test described above. If one or more field separators are missing in the row, the last field is always set to NULL.

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in to join the conversation.

Time to create page: 0.269 seconds

FlowHeater - The Data Specialist

Efficient data integration and transformation with FlowHeater – the perfect solution for a seamless transfer of your data.

Rechtliches

Support & Contact

Kontaktinformation

Telefon:0951 / 99339792 E-Mail:This email address is being protected from spambots. You need JavaScript enabled to view it.

Copyright © 2009-2024 by FlowHeater GmbH. All rights reserved.