Broker gateway share document types

Hi ,

I am getting error while sharing the document types in the gateway.
Please find error log for your reference.

"com.webmethods.messaging.tools.api.core.MessagingToolException: Error: Cannot set the Accept Publish documents of the gateway to “XXXXXXXXTerritory”.
at com.webmethods.messaging.tools.api.broker.resourceobjects.MessageTerritoryGatewayResourceObject.setAcceptPublish(MessageTerritoryGatewayResourceObject.java:1163)
at com.webmethods.caf.msg.msgutil.GatewayAPI.addNewDocTypes(GatewayAPI.java:1454)
at com.webmethods.caf.msg.adddocumenttypes.AddDocumentTypesDefaultviewView.addDoc_action(AddDocumentTypesDefaultviewView.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.webmethods.caf.faces.application.CAFMethodBinding.invoke----

---------

I had same problem but resolved.

First make sure the document is publishable and subscribe on both the brokers of the territory.

If it is not working it may be because the definition of the document varies on two brokers i.e. version. So you can delete/re-import the document into both brokers and try sharing the document.

I had to go through the both the steps above.

Regards
Rama Gowda