Recent

Author Topic: [SOLVED] EDatabaseError: Missing (compatible) underlying dataset, can not open  (Read 2811 times)

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Hi, the issue is the mentioned in the subject of this post.

First I can't share the code since is propietary and don't know how to replicate the code. I can share you only this small subset, and hopefully this can help to understand the problem:

Code: Pascal  [Select][+][-]
  1. if not Assigned(Promociones) then
  2.      exit;
  3.   if (not tblRenglones.IsEmpty) and (not Clientes.IsEmpty) then
  4.     try
  5.       if Assigned(Promociones) and not Promociones.Active then
  6.       try
  7.          Promociones.Active := True;
  8.       except
  9.          exit;
  10.       end;

Promociones: Promotions in spanish
Clientes: Customers in spanish, basically that is not empty and there is no problem with that
lblRenglones is not empty basically there is no problem with that

Promociones: TBufDataset;

Basically the code goes until this line:

Code: Pascal  [Select][+][-]
  1. Promociones.Active := True;

And then the exception appears.

My question is why if there is a try..except that does not works and exception it's fired exactly in that line (7 of snippet)?

If you need more details please ask and I will try to provide them.
« Last Edit: February 19, 2018, 04:57:36 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: EDatabaseError: Missing (compatible) underlying dataset, can not open
« Reply #1 on: February 19, 2018, 04:57:21 pm »
Solved, database version problem.

 

TinyPortal © 2005-2018