Page 1 of 1

EAssertion error raised, with message : Tablename cannot be empty

Posted: Fri 13 Feb 2015 04:22
by diaskhan
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..

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

Posted: Fri 13 Feb 2015 08:04
by azyk
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.

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

Posted: Mon 16 Feb 2015 04:23
by diaskhan
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

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

Posted: Mon 23 Feb 2015 14:16
by azyk
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 .