Building a successful import process involves more than just correct configuration; it also requires a solid workflow to prevent common errors. This guide outlines best practices for testing, data validation, and file management to help you create more robust and reliable imports.
Always Test with a Small File First
Before running an import with thousands of rows, create a small test file with just 5-10 representative rows of data. Running a manual import with this small file allows you to quickly verify your entire setup.
- Benefit: It's much easier to check the results on a handful of records and examine a small cache file. This allows you to catch errors in configuration, mapping, or data transformation before they affect a large amount of data.
- Common Pitfall: Running a large, untested import for the first time, which can lead to widespread incorrect data, thousands of unwanted new records if misconfigured, or a long wait just to find out a simple header was misspelled.
Validate Your Data Before You Upload
The Import Module expects clean, consistently formatted data. Most import failures that are not related to configuration are due to problems within the source file itself.
- Best Practice: Before uploading, open your file and check for common issues:
- Consistent Date Formats: Ensure every single date matches the format you specified in the configuration.
- Clean Identifiers: Look for extra spaces, special characters, or inconsistent formatting in your Identifier Column.
- Correct Repeater Formatting: If importing into repeaters, double-check that your values are separated by actual tab characters and that alignment is correct for blank values.
- Common Pitfall: Assuming the data exported from another system is perfectly clean. Data exports often contain hidden characters, mixed date formats, or other inconsistencies that will cause errors during the import.
Organize Your SFTP Folders
A well-organized SFTP site makes managing your import files much easier. Instead of placing all files in a single directory, group them into folders based on their purpose, the form they populate, or the system they come from.
- Best Practice: Use a clear and consistent folder structure. For example:
- /imports/IEP/
- /imports/ReportCards/
- /imports/Assessments/
- Common Pitfall: Placing dozens of unrelated import files in the same folder. This can lead to confusion, make it difficult to find the correct file, and increase the risk of pointing a configuration to the wrong source.
The module offers several ways to handle one-to-many data relationships. Choosing the correct one is key.
- Use a Repeater when... you have a list of similar items that can have a variable number of entries for each person (e.g., emergency contacts, medications).
- Use Indexed Expressions when... you have a fixed number of related entries that need to go into separate, static fields on your form (e.g., Guardian 1, Guardian 2, Guardian 3).
- Use Record Matching when... you have multiple, distinct records for the same person that are identified by a unique key (e.g., report cards for different school years or terms).
- Common Pitfall: Trying to use indexed expressions to populate a repeater, or trying to use the repeater method to populate fixed guardian fields. These features solve different problems and are not interchangeable.