Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Rastislav
Posts: 15
Joined: Tue 03 Apr 2018 10:18

Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Post by Rastislav » Fri 28 Jan 2022 15:09

Hello,
I have this code, where error occured with IBDAC 8.0.2 version.
I must downgraded to IBDAC 7.4.4 where all is OK.
Can you please check it and fix it ?
Thanks

Code: Select all

    qKI.SQL.Text:='SELECT pcI, SUM(CENAO), SUM(CENAS), SUM(HM), SUM(HMBAL), SUM(CELKPOCET), SUM(VYRPOC), SUM(NAKO*ICELKKS), SUM(NAKS*ICELKKS), SUM(CENAO*ICELKKS), SUM(CENAS*ICELKKS), SUM(NAKO), SUM(NAKS)' 
                +' FROM BWIO'
                +' WHERE PCI=10001562 AND NOT INULY'
                +' GROUP BY PCI';
    qKI.Open;

    Pocet:=qKI.RecordCount;
    if Pocet>0 then begin
       qKU.SQL.Text:='UPDATE I SET CENA=:0, HM=:1, HMBAL=:2, OPEALL=:3, OPEVYR=:4, NAKL=:5 WHERE PC=:6';
       qKU.Params[0].DataType:=ftCurrency;
       qKU.Params[1].DataType:=ftCurrency;
       qKU.Params[2].DataType:=ftCurrency;
       qKU.Params[3].DataType:=ftInteger;
       qKU.Params[4].DataType:=ftInteger;
       qKU.Params[5].DataType:=ftCurrency;
       qKU.Params[6].DataType:=ftInteger;
       qKU.Params.ValueCount:=Pocet; // specify the array dimension:

       qKI.First; i:=0;
       while not qKI.Eof do begin
         Inc(i);
         qKU.Params[0][i-1].AsCurrency:=qKI.Fields[1].AsCurrency+qKI.Fields[2].AsCurrency;
         qKU.Params[1][i-1].AsCurrency:=qKI.Fields[3].AsCurrency;
         qKU.Params[2][i-1].AsCurrency:=qKI.Fields[4].AsCurrency;
         qKU.Params[3][i-1].AsInteger:=qKI.Fields[5].AsInteger;
         qKU.Params[4][i-1].AsInteger:=qKI.Fields[6].AsInteger;
         qKU.Params[5][i-1].AsCurrency:=qKI.Fields[11].AsCurrency+qKI.Fields[12].AsCurrency;
         qKU.Params[6][i-1].AsInteger:=qKI.Fields[0].AsInteger;

         qKI.Next;
       end;
       qKU.Execute(Pocet);
    end;
    qKU.Params.Clear;
    qKI.Close;

pavelpd
Devart Team
Posts: 109
Joined: Thu 06 Jan 2022 14:16

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Post by pavelpd » Thu 03 Feb 2022 10:36

Hi there!

We did some research on the code snippet you sent, using IBDAC 8.0.2, and were unable to reproduce the error you mentioned.
Please create a sample demonstrating the error you indicated, including all the necessary scripts for creating and populating database objects, and send it to us via the e-support form https://www.devart.com/company/contactform.htm
Also, what database are you using FireBird or Interbase, and what version?

Rastislav
Posts: 15
Joined: Tue 03 Apr 2018 10:18

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Post by Rastislav » Wed 09 Feb 2022 15:39

I am using Firebird 3.0.7. I am sorry but it is part of my bigger application and I have not enought time for creating test application. Menwhile I "solved" it by downgrading to 7.4.4 where all is working ...

pavelpd
Devart Team
Posts: 109
Joined: Thu 06 Jan 2022 14:16

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Post by pavelpd » Thu 10 Feb 2022 10:52

Hi all,

Thank you for the info provided!
We have reproduced the issue and we are currently investigating its origin.
We will inform you about the results shortly.

pavelpd
Devart Team
Posts: 109
Joined: Thu 06 Jan 2022 14:16

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Post by pavelpd » Fri 11 Feb 2022 15:07

Hi,
We've reproduced the issue and fixed it. The fix will be included in the next build of our product.
As a workaround, we can send you a nightly IBDAC build including the required changes.
Please specify your license number, IDE version and send us via this contact form: https://www.devart.com/company/contactform.html

Rastislav
Posts: 15
Joined: Tue 03 Apr 2018 10:18

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Post by Rastislav » Mon 14 Feb 2022 09:10

Hello Pavel,
thank you for fix, I can wait to final version ...
Best wishes

pavelpd
Devart Team
Posts: 109
Joined: Thu 06 Jan 2022 14:16

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Post by pavelpd » Fri 18 Feb 2022 12:59

Hi there!
You are always welcome.

Should you have any product related questions, do not hesitate to ask!

Alfonso Presa
Posts: 2
Joined: Sat 07 Apr 2018 01:27

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Post by Alfonso Presa » Wed 30 Mar 2022 07:44

Hi, same problem here. Can you please send me the workaround too?
BTW it should be nice to hear a first answer that wouldn't be "we can reproduce the issue, we need a demo code and db script". I have reported a bug that remains intact since version 7.5 and I have not been able to use any new version on android because of that.

Thansk in advance,

pavelpd
Devart Team
Posts: 109
Joined: Thu 06 Jan 2022 14:16

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Post by pavelpd » Thu 07 Apr 2022 09:15

Hi Alfonso!
To receive a nightly IBDAC build, please specify your license number,
IDE version and send us via this contact form:
https://www.devart.com/company/contactform.html

Also during the week we expect the IBDAC release with this fix included.

Post Reply