LeapFrog Software Report Extraction: Case Study
Much of the manual data entry in business is caused by a file format that no import tool understands. This case study, told by a consultant who uses TextPipe nearly every day, shows how a few minutes of filter building removed weeks of keying.
Client
David Johnson, President, Leapfrog Software, LLC. He is a database applications developer who builds systems for clients with financial reporting needs.
The challenge
One of his clients had received more than 8,000 separate text files of financial reports from an outside company. A staff member was dutifully opening each one, picking out five pieces of information and keying them into the application. The developer asked for a copy of the files in the hope they could be loaded programmatically.
They could not be loaded with common utilities, because the reports were laid out for people to read, not for import. The values sat in different places on a page, surrounded by headings, spacing and other text.
The solution
After a few minutes with TextPipe, he had built a filter that extracted the key data from all of the reports into a single tab-delimited file. That file was then bulk-copied into the database. The approach follows a common pattern:
- Run the filter over the whole folder of report files as a single job.
- Use pattern matching, such as EasyPattern expressions, to locate each of the five values wherever it appears on the page.
- Discard everything else and write one tab-delimited line per report. See CSV and delimited file handling.
- Load the result with the database's bulk copy tool.
He notes he could have used Perl, Awk, Visual Basic or another programming tool, but it is much easier to come up with a quick TextPipe solution.
The results
- Labor saved: in the developer's estimate, this one use of TextPipe probably saved the client an entire month of labor.
- Return on cost: he says it paid for itself a hundred times over on this job alone. These are the customer's own estimates.
- Accuracy: data is copied by the machine, so keying errors across 8,000 files are no longer a risk.
- Everyday use: he uses TextPipe just about every day for different tasks.
When to look for a filter before keying data
The signal in this case was simple: a person was repeating the same short routine, open a file, find a few values, type them in, thousands of times. Any task that fits that description is a candidate for extraction. It is worth asking for a copy of the files and spending a short time on a filter before starting the keying, because the cost of building the filter is the same for 80 files as for 8,000. Check the output against a handful of source reports before loading the full result, and keep the saved filter in case the outside company sends another batch.
Related reading
The financial software vendor case study shows a different kind of search across thousands of files, and the banking and finance page covers larger organizations. The data mining and data conversion solution pages explain the method. If the source documents were Word files rather than text reports, WordPipe can update them in bulk, and our guide to batch processing Word documents explains how.