cancel
Showing results for 
Search instead for 
Did you mean: 

User-defined message search (AE) - no results

Former Member
0 Kudos

Hello experts,

I have a problem and I don't know how to proceed.

I have defined user-defined search in Adapter Engine on PI 7.31. I have defined a rule with an Xpath, I have sent a proper test message and tested my rule successfully. I have run the indexing job successfully, although that should not be necessary if the rule was already active. Now I try to find my test message via the monitor using my newly defined criteria, and the search always returns without results. I used a message that I stripped down to just one small record and copied an pasted the value I am looking for. I tried to search with wild cards, all without success. What could be the reason?

I have defined prefix and everything seems to be correct, but still the search doesn't work. The only thing I noticed was that the test only works when I switch to "Inbound". Is this somehow relevant? Is there some hard way to check whether the indexing really worked?

Any help is appreciated.

Regards,

Jörg

Accepted Solutions (1)

Accepted Solutions (1)

gagandeep_batra
Active Contributor
0 Kudos
Former Member
0 Kudos

Hello Gagan,

thanks for replying, but yes, I have found plenty of configuration documents. I am quite sure I've done that correctly, since the test of my rule works fine. I also doubt I have done anything wrong with message selection. It is pretty straightforward: Select predefined criteria, enter search value, take a look at proper time frame and execute. Only that my search results are always empty, although I know that there is a message with my search criteria.

Regards,

Jörg

gagandeep_batra
Active Contributor
0 Kudos

Hi Jorg,

Can put the Screen shot of you configuration and  search criteria and &message details

Regards

gagan

Former Member
0 Kudos

OK, I give you configuration, filter and a screen that shows that the system recognized my user-defined variable. I copied and pasted this value, but the search doesn't work.

I searched my logs and traces, nothing.

Any idea?

Regards,

Jörg

Former Member
0 Kudos

Hi Jörg 🙂

To say it upfront, I probably don't have a solution for your problem, because in my case it works fine :-). I found it a bit tricky sometimes to define the filter and criterias right, but after that is correct and the test by entering a message id works, I am able to find the messages (which were processed after the filter creation and activation!).

Since I see in your screenshot of the message monitor that the tab "User defined attributes" shows up with an extracted value, I'm pretty sure the indexing works and you should be able to find messages by your attribute "VKNummer".

I guess you have also selected the correct status of the message that you are looking for (either by status or status group)? Do other payload searches work? I just tested it, I need to use the * wildcard to search for fractions of the value. That works fine.

Did you try the same with a shorter value and without dots? Sounds strange I know, but I had a weird behaviour recently where the value to be extracted was very long (about 100 characters) and contained some special characters. The extractor crashed during the message processing every time when it tried to execute it. Don't know if it was the lenght or the special characters. I just deactivated the rule as I didn't really need it and and msg processing was fine again. Of course, in your case the extraction is not the problem since the tab is there, but maybe it's worth a try anyway.

Br,

Philippe

Former Member
0 Kudos

Hello Philippe,

thanks for the reply, I tried you approach, but unfortunately without success. It can't be message status. In message search I can do the following: I search for messages from last hours, I find my test message. Then I activate the "user-defined attributes" checkbox and enter my criteria - no hits. Since this is a search help I assume the criteria are fine. On the value side I tried shorter numbers, without letters, wildcards, the result is always the same.

The screen is misleading, since I executed the search and afterwards ticked the box with my criteria. If I hit "Search" again now, the result list is empty.

Search in ABAP works, by the way.

I think I'll have to open an OSS message for this one, thanks for your help.

Regards,

Jörg

markus_schalk
Participant
0 Kudos

Dear Jörg,

i just tried to use dots in one of our udscs and it worked out well. This is likely not the cause of the problem. XPath seems to be correct as well, otherwise the message would not show up with the VKNummer you specified.

First of all try to search for V2150*, an see if this helps. If not, I would raise a message in support portal.

Are you sure your messages are getting staged or logged?

Regards,

Markus

markus_schalk
Participant
0 Kudos

Dear Jörg,

which release are you using?

Maybe your are facing this error:

Note 1596012 - User-defined search for Web services messages does not work

Regards,

Markus

Former Member
0 Kudos

Hello Markus,

as you can see in my screenshot I can see the messages in regular monitoring, so they are persisted. As soon as I switch on the selection for user-defined criteria the search fails. I tried giving all kinds of wildcards, none worked.

The note you mention does not apply, unfortunately, since it refers to the ABAP part. I'm using PI 7.31 SP07. I have searched through the notes, and there are some even more relevant ones, but the problem there was mainly that either the test functionality or the index job didn't work. This is not the case here, both work fine.

I was hoping that I missed something obvious or that someone else had made this experience, but I think I'll have to open an OSS message for that. It might be some issue with SWC installed on this particular system.

Regards,

Jörg

markus_schalk
Participant
0 Kudos

Dear Jörg,

we are on SP07 as well, and never faced problems with the UDS yet. Keep us up to date, what the root cause for your problem was, when SAP gets in touch with you. Fingers crossed that you solve this issue soon!

Regards,

Markus

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Jorg,

The Message Id that you are using for search is of a message before creating the extractors or after??

I can see that you have already run the indexing job and ideally it should show the message.

Can you just try with some other message which was created after your filter was active.

Also I am not sure of the version you are using, But in PI 7.1 we have checked these boxes to retrieve the messages.

Thanks

Gaurav Ranjan

manigram
Active Participant
0 Kudos

HI,

Please check whether your payload consist of any namespace or not, if message is under namespace you have to define path prefix.

Go to message mapping--> test tab->click SRC icon and check the namespace.

Regards,

Manigandan

Former Member
0 Kudos

Hello Manigandan,

I used namespace and prefix as documented. Since test and value extraction work in design time and runtime I assume that it is probably not because of the prefix or any other filter configuration.

Regards,

Jörg

manigram
Active Participant
0 Kudos

Hi,

Take the xpath from sender message type.

Send one test mesage and go to adapter engine --> message log tab and see what is the log returning "Applying extractor ".

Check the log .

Regards,

Manigandan

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Jorg,

Have you checked the same using end to end testing instead of a test message? Is End to End testing also with no results?

Thanks and Regards,

Sridhar

Former Member
0 Kudos

Hello,

there is no mapping, sender and receiver message type are the same. I will try checking this extractor log, but I think I know the result, since extraction on message level works fine. My problem is the search for that attribute, and I don't find anything about the search in the logs. I think I'll look for a proper log to be configured so that I get some more information. This is also why I believe that end-to-end-testing will not change anything. Extraction works, it is the message search routine that I'm having problems with.

I'll keep you posted.

Regards,

Jörg

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Jorg,

Can you delete the filter criteria and recreate with search criteria details and check if it works...

Also can you please recheck the XPATH expression value is correct?

Thanks and Regards,

Sridhar