PRB: Import Wizard's Scan Option Doesn't Scan Beyond Record 50ID: Q139873 3.00 WINDOWS kbtool kbprb The information in this article applies to:
SYMPTOMSAfter you select the Scan All Records option in the Import Wizard, only the first 50 records are actually scanned.
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONBy selecting the Scan All Records option in the Import Wizard, you might assume that the data is scanned and the structure of the file being imported is verified before the import actually occurs. This is not the case.
Steps to Reproduce BehaviorCAUTION: For the purposes of this demonstration, you should close all critical data and applications other than Visual FoxPro to ensure that the results of this demonstration have no effect on other data or applications should an error occur. This demonstration requires that the Customer table from the Testdata database be present, intact, and available for your use. To demonstrate that the above situation is actually what the Import Wizard is doing, follow these steps: 1. Use the Customer table from the Testdata database. 2. In the Command window, enter the following line of code:
3. Open Testtext.txt in Notepad. If your text is wrapping, turn Word wrap
4. Scroll down to the 51st record, the first field of which should be
5. Save and close the file.
6. On Visual FoxPro's Tools menu, click Wizards, and then click Import. 7. Click the three-dot button located next to the Source File text box. 8. Locate Testtext.txt on your hard disk, select it, and then click OK. 9. Click the Next button in the Import Wizard dialog box. Note that the 10. Click the Option button.
11. In the Import Wizard Options dialog box, click Scan All Records, and 12. Click Next, click Next, and then click Finish in the Wizard's dialog
13. Browse the newly created table, and go to record 51. The data will not
14. In the Command window, enter the following line of code to erase the
To further demonstrate the fact that the Import Wizard doesn't scan the
text file being imported, perform the following steps:
1. Using Notepad, edit Testtext.txt, and repair record 51 by inserting the 2. Move up to record 49 and remove the first comma. The first field in this
3. Save and close the file.
4. On the Visual FoxPro Tools menu, click Wizards, and then click Import. 5. Locate Testtext.txt on your hard disk, select it, and then click OK.
6. Click Next. You will receive an error stating the records in this file Additional reference words: 3.00 VFoxWin import fail
KBCategory: kbtool kbprb
KBSubcategory: FxtoolWizother
|
Last Reviewed: November 21, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |