cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Re: Communication Channel External Control Error

07-10-2015 12:47 PM
ridvan_polat Participant
1023 views 0 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi Guys,

I am making a scenario which can starts and stops the communication channels depending on some cases.

Referenced these documents;

Controlling a Communication Channel Externally - Process Integration Monitoring - SAP Library

Now, I'm able to get action=status, but when trying to stop or start any channel, getting following error response;

com.sap.aii.af.service.administration.impl.WrongAutomationModeException: The channel is configured to use an automation mode not compatible with the type of the current principal (WSUSER). The channel was not stopped. Change the channels automation mode and repeat the administrative action.

I couldn't find any solutions neither on scn nor sap notes.

Kindly ask for your help.

Ridvan Polat

0 Likes
View Entire Topic
Former Member
0 Likes

Hi Ridvan,

Are you sure the WSUSER has the roles that are pointing in your first link?

If you assure that you have checked the External Control activated, may be could be your PI version.

Have you tried to use this service (directly from wsnavigator)?:

You can find its URL in the Service Registry:

Regards.

ridvan_polat
Participant
0 Likes

Hi IƱaki,

Maybe you're right, it may be because of PI version, it is 7.11.

I've also checked services you mentioned, but there is no IChannelAdmin service.

I found these two services and I'm able to consume them, but I can only get channel status with these.

I need to change channel status (stop/start).

Regards,

Ridvan Polat

Former Member
0 Likes

HI Ridvan,

However, your exception is clear and it is no throwing nothing relative that the service doesn't exist or it can't be reached. Have you tried to call you first attempt from WSNavigator?,.

And in the first link that you have shared, in the prerequisites said that you have to assign the roles in NWA, not only in the ABAP side, are you sure the roles has been assigned in your user or the WSUSER pointed in the exception?.

Regards.

ridvan_polat
Participant

Hi IƱaki,

Yes, I've consumed with the wsnavigator tool.

I also noticed that there is no wsuser on java/abap stacks.

I was using my own user with giving 'xi_af_channel_admin_modify' role.

I've created wsuser on java stack and gave the action in a role. Now it works fine.

Thank you for your help.

Regards,

Ridvan Polat

Former Member
0 Likes

Hi Ridvan,

I'm glad your issue is solved, thank you for the feedback.

Regards.