# NAT0935 Conflicting number of parameters Run Time error

**URL:** <https://techcommunity.softwareag.com/t/nat0935-conflicting-number-of-parameters-run-time-error/59278>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [April 23, 2005, 2:37am UTC](https://techcommunity.softwareag.com/t/nat0935-conflicting-number-of-parameters-run-time-error/59278 "2005-04-23T02:37:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wallstreetguy](https://avatars.discourse-cdn.com/v4/letter/w/f04885/32.png) [@wallstreetguy](https://techcommunity.softwareag.com/u/wallstreetguy)\
**Post date:** [April 23, 2005, 2:37am UTC](https://techcommunity.softwareag.com/t/nat0935-conflicting-number-of-parameters-run-time-error/59278/1 "2005-04-23T02:37:26Z")

</div>

I am making an RPC call to Natural Subprogram from [ASP.NET](http://ASP.NET).

I get the following run time error when I invoke the program.

I did check it calling with 8 parameters, it works fine. When I pass  
9 parameters it throws me following runtime error.  
When Calling with 8 parameters Natural program is changed to accept 8 parameters  
When Calling with 9 parameters Natural program is changed to accept 9 parameters

## Run Time error

## SoftwareAG.EntireX.NETWrapper.Runtime.XException: 10140935: BRKN3339 9999 NAT0935 Conflicting number of parameters (Subprogram BRKN3339/MOSAICSD/1/17). Lib=MOSAICSD,Pgm=BRKN3339,(NATURAL Error Info: Program=BRKN3339,Error=0935,Line=9999,Status=O,Level=01).

## Call in [ASP.NET](http://ASP.NET) goes something like this

using SoftwareAG.EntireX.NETWrapper.Runtime;  
using SoftwareAG.EntireX.NETWrapper.Generated.brkn3339;  
…  
…

Broker broker = new Broker(“XXX.XXX:4000”);  
Service srvc = new Service(broker,“XXX/XXXX/XXXXX”,"MOSAICSD ");  
srvc.Timeout=120;  
MOSAICSD bclient = new MOSAICSD(srvc);

// Invoke the program

## bclient.BRKN3339(‘List of parameters go here seperated by comma’);

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [April 23, 2005, 11:49pm UTC](https://techcommunity.softwareag.com/t/nat0935-conflicting-number-of-parameters-run-time-error/59278/2 "2005-04-23T23:49:22Z")

</div>

when you change and restow the subprogram for 9 parameters, is the Natural RPC server picking up the new version? That is, is the server running with a local buffer pool or a global that is not shared with the region where the subprogram was stowed from?

If this is the problem, you can restart the server to get a fresh local buffer pool and pick up the new instance. Longer term, you may want to either use a global buffer pool shared with your development environment or set up a subprogram / rpc call to the API function USR0340 to flush the buffer pool for you (without restarting the RPC server).

If you are using a local buffer pool for your Natural RPC Server, be sure to use the LBPNAME=localbp in the NTOS macro as the allows the NTASKS threads of the server to share the same local buffer pool.

---

<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:39pm UTC](https://techcommunity.softwareag.com/t/nat0935-conflicting-number-of-parameters-run-time-error/59278/3 "2021-04-02T14:39:44Z")

</div>


