cancel
Showing results for 
Search instead for 
Did you mean: 

Rest Adapter - Receiver channel error

NishantChavan
Participant

Hi Experts,

I am doing SAP to Salesforce integration. I am trying to post some data on salesforce. Here is the error I am getting on the receiver channel-

"Message processing failed. Cause: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted".

I have gone through note# 2305614 - HIERARCHY_REQUEST_ERR error in Receiver REST Adapter and unchecked box "Strip operation from Message (Outer Element) however still I am getting error. This error is not from SalesForce because I have TCPGTW and the message is not reaching gateway.

Please suggest.

Thanks,
Nishant

Accepted Solutions (0)

Answers (3)

Answers (3)

kottiyil_ramnath
Participant

Hi,

Basically this error would come if you enable strip operation from receiver rest adapter.

If you have unchecked it, then try whether you have any cache issue. Try refreshing the cache and try again.

Regards,

Ram

former_member629447
Participant

It worked for my case. However, the Root Node (basically the Message Type MT_*) was present in the output JSON Payload. So, I used the checkbox 'Strip Outer Element' instead.

former_member83124
Discoverer
0 Kudos

Thanks, I too faced this issue and now fixed as per "cathyliyu987" solution.

0 Kudos

Hi cathyliyu987,

I used the checkbox 'Strip Outer Element' too ,but have a error "HIERARCHY_REQUEST_ERR".

how did you solve it without unchecked the checkbox of outer element.

Regards.

former_member629447
Participant
0 Kudos

Hi @ali_ismael

Apologies, I didn't visit SDN for a while. Not sure you if you are still looking into this. However, to let you know, In my case, I unchecked the checkbox for 'Strip Operation from Message (Outer Element)' and I checked the checkbox 'Strip Outer Element'. This solved the issue of the Hierarchy exception message and also the Root Node getting into the output payload. See the below screenshot for my setup:

Hope it helps.