Skip to Content
0

Lookup Service channels are not updated

Dec 21, 2017 at 02:07 PM

101

avatar image

We have build a mapping (it's in several scenarios, in one scenario it's a graphical map where the Lookup service is using in an UDF, in the 2nd scenario it's a java mapping) and we are consuming the Lookup Services (Lookup Service).

Then I made a mistake in the Channel configuration and I have corrected it. But for some reason the change is not been taken into account for the mapping. Looks like the channel is cached somewhere and I have not found the place where I can refresh the cache.

What I have done (and what has not helped):

- Full CPA Cache Refresh
- Checked Cache Notifications
- Redeployed the affected Graphical Map/Java Map (changed comment and activated again).

Has anybody an idea?

Looks like the behavior is not in all systems, because I have spoken to a business partner and he said, he cannot reproduce the problem in his environment.

Regards
Helmut

PS: I am on PI 7.5

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Helmut Skolaut Dec 29, 2017 at 11:24 AM
0

Hi Anurag,

it's in the last example an UDF:

Channel channel = LookupService.getChannel(System,Channel);
SystemAccessor accessor = LookupService.getSystemAccessor(channel);
InputStream inputStream = new ByteArrayInputStream(query.getBytes());
Payload QueryPayload = LookupService.getXmlPayload(inputStream);
Payload ResponsePayload = accessor.call(QueryPayload);

Looks like any change I am doing in a channel is not been used -even if I am deleting the channel and create it with same name newly - it's still using old credentials, URLs, ... Only if I am creating a new channel with a different name - than it's consuming the values of the new channel.

BR Helmut

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Dec 29, 2017 at 11:48 AM
0

Hi Helmut!

Just for case: did you also try to Stop/Start the channel?

Regards, Evgeniy.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Evgency,

even if i am deleting the channel and create it with the same name - it's still using the old values. So something is caching the connection and not look up the values from the channel.

I want to find the way to delete out the channel from the cache used by the lookup service.

As mentioned before, also a full cache refresh, change of channel and even deleting and creating it again is not solving the issue.

Regards
Helmut

0

A silly question and just in case as I saw that you already refreshed all the caches... did you check the namespace/software component of the mapping?

You might consider having a look a the traces after the activation of the objects.

Best regards,

Ariel Bravo Ayala

0

Hi Helmut!

We have such kind of issues from time to time. Deleting and creating the channel with different name often helps or even re-creating the ICo object.

Regards, Evgeniy.

0
Juan Vasquez Dec 29, 2017 at 04:24 PM
0
Hello Helmut 


Try this


Channel channel = LookupService.getChannel(CommunicationComponentString, ChannelString);
SystemAccessor accessor = LookupService.getSystemAccessor(channel);
// *** take care with namespaces in varXML
InputStream inputStream = new ByteArrayInputStream(varXML.getBytes());
XmlPayload payload = LookupService.getXmlPayload(inputStream);
SOAPOutPayload = accessor.call(payload);
InputStream inp = SOAPOutPayload.getContent();




Remeber to change your channel and activate.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Juan!

And what's the difference between your code and the code that Helmut has already provided?

Regards, Evgeniy.

0
Evgeniy Kolmakov

Hello Evgeniy

I recomend two things

Verify namespaces in the xml string

verify the channel changes are activated

regards

0

Hi Juan,

can you explain what you mean with "verify namespaces"? I don't unterstand this. My code is working in general fine- I only have an issue that a change in the channel is cached somewhere and I don't know what to do to invalid the cache.

Regards
Helmut

0

Hi Helmut

This is what I mean with namespaces

"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+ "<sap:Request-sap.com-home-cltrasp-ClaseTransporteFlow-ClaseTransporteFlow xmlns:sap=\"http://www.sap.com\" xmlns:par=\"http://www.example.org/params/\">"+

...

If the scenario is working fine (no code errors, or warnings), verify the activatin process, the cache.

Integration builder cache status.

Regards

0
Anurag Gupta Dec 29, 2017 at 10:31 AM
0

can you mention how do you use the lookup service ?

Share
10 |10000 characters needed characters left characters exceeded