# Natural RPC call fails, protocol error

**URL:** <https://techcommunity.softwareag.com/t/natural-rpc-call-fails-protocol-error/288201>\
**Category:** Forum\
**Tags:** Natural, EntireX, Natural-on-Linux\
**Created:** [December 7, 2023, 3:59pm UTC](https://techcommunity.softwareag.com/t/natural-rpc-call-fails-protocol-error/288201 "2023-12-07T15:59:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon9160235](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@anon9160235](https://techcommunity.softwareag.com/u/anon9160235)\
**Post date:** [December 7, 2023, 3:59pm UTC](https://techcommunity.softwareag.com/t/natural-rpc-call-fails-protocol-error/288201/1 "2023-12-07T15:59:37Z")

</div>

#### _ **Product/components** used and **version/fix** level:_

Natural 9.2.1, both EntireX 10.1 and EntireX 10.9

#### _Detailed explanation of the problem:_

**Calling subprogram the following error was returned**

- Error 1014 6978: Natural RPC Server returns: VEHICLEJ 9999 NAT6978 RPC protocol error on Server, reason 3 ,10010031., NE=01,VEHICLEJ999901R\*

_after adding this subprogram to the directory SYSRPC/ SM /A the error changed to_

- Error 1014 6978: Natural RPC Server returns: VEHICLEJ 9999 NAT6978 RPC protocol error on Server, reason 3 ,10010031., NE=01,VEHICLEJ999901R\*

_To address the recommendation below MAXBUFF was increased significantly but without success._

- 3 - No space to load directory. Increase the RPC size.\*

Same issue occurred on two servers.

Note, that subprogram calls a flow on IS via Direct RPC that was also called successfully via a program generated from the same IDL generated when creating Direct RPC.

To avoid recursive looping in the subprogram, this subprogram was cloned, so it is the clone that is called via Natural RPC in IDL tester.

 ![image](https://global.discourse-cdn.com/techcommunity/original/3X/9/c/9c646452fdb460d95b73e3bee635cd7afb31542c.png)

#### _Error messages / **full error** message screenshot / **log** file:_

Latest one:

> Error 1014 6978: Natural RPC Server returns: VEHICLEJ 9999 NAT6978 RPC protocol error on Server, reason 3 ,10010031., NE=01,VEHICLEJ999901R

#### _Question related to a **free trial** , or to a **production (customer)** instance?_

Licensed

---

<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:** [January 10, 2024, 7:46pm UTC](https://techcommunity.softwareag.com/t/natural-rpc-call-fails-protocol-error/288201/2 "2024-01-10T19:46:06Z")

</div>

A NAT6978 error is reporting an EntireX error code. NAT6978 rc 3 is:

> 3: The RPC protocol header or RPC format buffer is invalid.  
> After the reason, the corresponding EntireX error number is  
> shown in the message. In the case of format buffer errors,  
> the erroneous element is appended to the error number.  
> The EntireX error code is 10010031, which states:  
> | **10010031** | **String buffer item overflow of the RPC protocol** |  
> | — | — |  
> | **Explanation** |Internal error in string buffer.|  
> | **Action** |Contact Software AG Support.|

If you haven’t already, open a support request. Otherwise, we’d need the IDL that’s causing the error to be able to suggest modifications.  
SYSRPC is used to create the client mapping for a CALLNAT ‘rpcsvc’ - it has no bearing on subprograms being called from a Natural RPC Server.  
What recursive looping were you trying to avoid? From what you have said, you are calling a subprogram (VEHICLEJ) that calls IS service VEHICLE via DirectRPC? Is there also a subprogram VEHICLE in this library IMPERIAL? Are both Natural RPC Server and the IS DirectRPC using the same Broker ID? (ETB096?)

The IDL tester is trying to call a subprogram VEHICLEJ in library IMPERIAL. Your IDL Tester settings will identify the EntireX Broker that the Natural RPC Server is using.  
 ![image](https://global.discourse-cdn.com/techcommunity/original/3X/5/1/512b45480e5a755c2780564e709182edbf980c8e.png)

---

<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:** [July 8, 2024, 7:46pm UTC](https://techcommunity.softwareag.com/t/natural-rpc-call-fails-protocol-error/288201/3 "2024-07-08T19:46:59Z")

</div>

Closed on July 8, 2024, 7:46pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
