Data Reader load 1st row only
Hi Board Platform, is there way to force a Data reader to load only the 1st row of a file?
Answers
-
Hi Gary,
Is this a sql or ASCII reader and can it be done via an extract and re-load?
1 -
After reading in the file, you can try and extract it with a layout and adding a Counter, then reading back the file with an ETL Validation Condition that only if the Counter column is 1, then read in the record. Let me know if it works!
1 -
To build on what Scott was asking here. If you are using SQL, you can build a function into your SQL select statement to only bring in one line by using TOP 1 in your select statement and as long as it is a valid record based on the configuration of the data reader, it will load into your cube/entities.
1 -
Perhaps, a query like this will work where you'll order a column and then select row 1. Although, there are a number of ways this can be done.
SELECT *
FROM (SELECT column1 FROM table1 ORDER BY column1)
WHERE ROWNUM = 1;0
Categories
- All Categories
- 1.8K Forums
- 1.7K Platform
- 106 Academy
- 280 Resources
- 3 Community Captains
- 1 About Community Captains
- 1 Meet the Community Captains
- 1 Topics & Thought Starters
- Board Manual
- 50 Best Practices
- 41 How-To Guides
- 25 Board Advocacy Program
- 157 Blog
- 4 Groups Hub
- 4 About Groups
- New Community Members
- DACH
- Japan
- Academy
- 2 Board Academy
- 7 ILT/VILT Course Catalogue
- 13 e-Learning Course Catalogue
- 4 Academy Forum
- 1.1K Idea Exchange
- 305 Partner Hub
- 2 Solution Sales Toolkits
- 91 Support
- 14 FAQ's
- Customer Support Portal
- 54 Support Articles
- BEAP