UniConnection error "not a valid path"
Posted: Mon 23 Aug 2021 05:09
I am attempting to do direct access on a dBase file using UniDac components. In working through the UniDac example from the blog posting (https://blog.devart.com/delphi-component-for-dbf.html), I receive the "is not a valid path" error when I try to connect.
I am using UniDac trial version 8.4.4 with Delphi 10.4 on a 64-bit Windows 10 system.
I have followed the example in the blog as follows:
1. I drop TUniConnection, TUniQuery, TUniDataSource, TDBFUniProvider, TDBGrid and TButton components onto the form.
2. I set the UniConnection component provider to DBF provider, dBaseIII format, and set direct access to True.
3. I enter the database path d:\mytest.dbf, which is a known and tested dbf file. (The file is not open elsewhere.)
I then get the error "d:\mytest.dbf is not a valid path."
I have tried using other dBase formats, other dBase files, and other paths, but I always get the same error.
Can you tell me what might cause this error and how to fix it?
I am using UniDac trial version 8.4.4 with Delphi 10.4 on a 64-bit Windows 10 system.
I have followed the example in the blog as follows:
1. I drop TUniConnection, TUniQuery, TUniDataSource, TDBFUniProvider, TDBGrid and TButton components onto the form.
2. I set the UniConnection component provider to DBF provider, dBaseIII format, and set direct access to True.
3. I enter the database path d:\mytest.dbf, which is a known and tested dbf file. (The file is not open elsewhere.)
I then get the error "d:\mytest.dbf is not a valid path."
I have tried using other dBase formats, other dBase files, and other paths, but I always get the same error.
Can you tell me what might cause this error and how to fix it?