EAssertion error raised, with message : Tablename cannot be empty

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
diaskhan
Posts: 2
Joined: Fri 13 Feb 2015 03:30

EAssertion error raised, with message : Tablename cannot be empty

Post by diaskhan » Fri 13 Feb 2015 04:22

Good morning dear Support.

I have problem with a new components of SDAC 7.0.2 14-Jan-15

Code: Select all

var
  aQry : TMSQuery;
begin

  if not Assigned(FConnection) then exit;

  aQry := TMSQuery.Create(Self);

  with aQry do
       begin

         Connection:=FConnection;

         FetchAll:=False;
         ParamCheck:=False;
         UniDirectional:=True;

         SQL.Assign(FChoicesSQL);

         FilterSQL:=ReplaceStr(FChoicesSQLFilter.Text,#13,' ');
         FilterSQL:=ReplaceStr(FilterSQL,#10,' ');
         if FilterSQL<>'' then
            Filtered:=True;


         aQry.Prepare;
         Self.Clear;

         Items.BeginUpdate;
         try
            Open;
            while not Eof do
                  begin

                     if not FChoicesIDField.IsEmpty then
                        begin
                          Items.Add(Fields[1].AsString);
                          StoredStrings[RecNo-1]:=FieldByName(FChoicesIDField).AsString
                        end
                     else
                        begin
                          Items.Add(Fields[0].AsString);
                          StoredStrings[RecNo-1]:=Fields[0].AsString
                        end;

                     Next;
                  end;
         except
            on E : Exception do
               ShowMessage(E.ClassName + ' error raised, with message : ' + E.Message);
         end;

         Items.EndUpdate;
       end;

  aQry.Destroy;
  FChoiceItemsLoaded:=True;
When this code is running on Open or Prepare method I have Exception with
EAssertion error raised, with message : Tablename cannot be empty
(D:\projects\Delphi\Dac\Sqlserver\Source\MSClasses.pas, line 1988)
Delphi 7Xe. MSDAC 7.0.2 14-Jan-15 Standart
Embarcadero® Delphi XE7 Version 21.0.17707.5020


Previously when we used a delphi xe4 and SDAC 6.7.14 15-Jul-13 Proffesional.
This problem haven't repeated.

In past future we are planned to Use Delphi XE7.
Kaspi Bank..

azyk
Devart Team
Posts: 1057
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: EAssertion error raised, with message : Tablename cannot be empty

Post by azyk » Fri 13 Feb 2015 08:04

Thank you for the information. We know about the problem and are working on solving it. We will notify you about the results as any are available.

diaskhan
Posts: 2
Joined: Fri 13 Feb 2015 03:30

Re: EAssertion error raised, with message : Tablename cannot be empty

Post by diaskhan » Mon 16 Feb 2015 04:23

Dear Support.
I want ask a question,
1.There is any stable build with out this error.

2.It's possible to use older version of SDAC??

3. How to avoid this bug ??

With best regards Diaskhan

azyk
Devart Team
Posts: 1057
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: EAssertion error raised, with message : Tablename cannot be empty

Post by azyk » Mon 23 Feb 2015 14:16

We have already fixed this problem. This fix will be included in the next SDAC build. You can follow the news about SDAC releases in the at http://www.devart.com/news .

Post Reply