# Invalid Unbounded Array

**URL:** <https://techcommunity.softwareag.com/t/invalid-unbounded-array/76841>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [May 30, 2008, 2:17am UTC](https://techcommunity.softwareag.com/t/invalid-unbounded-array/76841 "2008-05-30T02:17:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgoodwin](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jgoodwin](https://techcommunity.softwareag.com/u/jgoodwin)\
**Post date:** [May 30, 2008, 2:17am UTC](https://techcommunity.softwareag.com/t/invalid-unbounded-array/76841/1 "2008-05-30T02:17:38Z")

</div>

I’m attempting to expose a legacy Natural subprogram as a .NET web service. I’ve used the IDL to generate .NET C# code and I’ve copiled it into an assembly, however, when I try and execute the generated code I receive “Invalid Unbounded Array” at the service.Send method. Can anyone help me out on this? I’ve attached the IDL and generated C# code. Also, below is the code I’m using to call the generated code.

* * *

SoftwareAG.EntireX.NETWrapper.Generated.i00013n1.Groups.BillDetailBrowseByCBillId.SendInfo sendInfo =  
new SoftwareAG.EntireX.NETWrapper.Generated.i00013n1.Groups.BillDetailBrowseByCBillId.SendInfo();  
SoftwareAG.EntireX.NETWrapper.Generated.i00013n1.Groups.BillDetailBrowseByCBillId.I00013n1In inParms =  
new SoftwareAG.EntireX.NETWrapper.Generated.i00013n1.Groups.BillDetailBrowseByCBillId.I00013n1In();

```
        SoftwareAG.EntireX.NETWrapper.Generated.i00013n1.Groups.BillDetailBrowseByCBillId.I00013n1Out outParms;
        SoftwareAG.EntireX.NETWrapper.Generated.i00013n1.Groups.BillDetailBrowseByCBillId.ErrorOut errorOut;

        sendInfo.ClientId = "1jg";
        sendInfo.ClientUserId = "test";
        sendInfo.LocalHost = "testbox";

        inParms.CBillId = 5;
        inParms.MaxRecCnt = 10;
                   
        Broker broker = new Broker("xxxxxx.AFG:18161");
        Service service = new Service(broker, "RPC/NATT10SV/CALLNAT", "SERVRLIB");
        BillingServices billingService = new BillingServices(service);
        billingService.BillDetailBrowseByCBillId(sendInfo, inParms, out outParms, out errorOut);

        Response.Write(outParms.RecCnt);

```

[i00013n1.txt](https://techcommunity.softwareag.com/uploads/short-url/cWNKp15NwF62MxDnFSw85ORXyf0.txt) (2.04 KB)  
[i00013n1.cs.txt](https://techcommunity.softwareag.com/uploads/short-url/kHM3K2ulZfGf9fBSyAU2gs74Ft5.txt) (8.49 KB)

---

<div class="post-metadata">

**Author:** ![Andreas\_Seidel](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@Andreas\_Seidel](https://techcommunity.softwareag.com/u/Andreas_Seidel)\
**Post date:** [September 17, 2008, 1:59pm UTC](https://techcommunity.softwareag.com/t/invalid-unbounded-array/76841/2 "2008-09-17T13:59:42Z")

</div>

It is a bug not a feature.  
C# Templates were wrong if you use variable Arrays.

Take the Hotfixes for Eclipse EXX734 or EXX80.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:49pm UTC](https://techcommunity.softwareag.com/t/invalid-unbounded-array/76841/3 "2021-04-02T14:49:31Z")

</div>

Closed on April 2, 2021, 2:49pm UTC


