Error when Backup up in folders with special characters.

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
luapfr
Posts: 37
Joined: Thu 11 Apr 2013 13:11

Error when Backup up in folders with special characters.

Post by luapfr » Wed 09 May 2018 14:24

I am trying to backup a Database but it is giving the following error:

exception class: EIBCError
exception message: I / O error during "CreateFile (open)" operation for file "D:\Emporio do Pão\Data.Fdb" Error while trying to open file The system can not find the path specified.

This error only occurs in Folder where you have accents or special characters how do I resolve this ?

If I back up a folder with no special characters then the backup is done without problems.
I tested by IBExpert to make the Backup of this folder with special character and had no problems.

Code: Select all

  With IBCBackupService1 do begin
   Options := [];

  // Server := Ed_serverName.text;
   ClientLibrary := 'C:\Windows\System32\FBCLIENT.DLL'; // 'gds32.dll';
   LoginPrompt := False;

   NBackupLevel := 0;
   UseNBackup := True;

   Params.Add('user_name=SYSDBA');
   Params.Add('password=masterkey');

   Try
    Showmessage('test');
    Active := True;
    Verbose := True;
    Database := Edit1.Text; //Pchar('D:\Banco de Dados\Emporio do Pão\DATA-EXPERT.DAE'); // Edit1.Text;
    BackupFile.Add('D:\bbb.fbk');
    ServiceStart;

   While not Eof do Begin
    Application.ProcessMessages;
    Memo_ProcessoGDB.Lines.Add(GetNextLine);
   End;

   Finally
    Active := False;
    Params.Clear;
    BackupFile.Clear;
   End;

  End;

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Error when Backup up in folders with special characters.

Post by ViktorV » Thu 10 May 2018 06:59

Unfortunately, we cannot reproduce the issue on the latest version IBDAC 6.1.7.
Check, please, make sure that you are using the client library supplied with InterBase (Firebird) distribution to which you are trying to connect.
In order for us to be able to give you a detailed answer, we need to have a sample demonstrating the specified behavior. Therefore, please compose a full sample demonstrating the described behavior and send it to us using the contact form https://www.devart.com/company/contactform.html including the scripts for creating database objects.
Note, if the sample has a large size, please place it on free filehosting and send us the link using the contact form https://www.devart.com/company/contactform.html

Post Reply