cancel
Showing results for 
Search instead for 
Did you mean: 

PI skipping log entries in custom log file

mayur_patel6
Participant
0 Kudos

Hello Experts,

I am working on a JMS to IDOC scenario and I have a small User Define funtion for my mapping where I am writing a log entry to a custom log file. So, whenever my mapping gets executed it should write a log entry in a custom log file with the interface number and message id.

Now, this morning i dropped three messages on my MQ queue and I only have two of them in the custom log file. But when i went in PI SAP GUI SXMB_MONI I could see all three messages as successful. This has been happening on random basis, sometimes it skips 1 out of 3 messages or 4 out of 8 etc. We have an APP Server in front of PI but I am not sure if that is causing the problem.

Thanks,

Mayur

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

It is possible that when there are multiple messages in short span of time, the log file is opened up by one of the mapping and therefore is locked for other mapping being executed at the same time. Therefore only one of the mapping could write an entry to it.

This is just the logical explaination I could think of

Regards,

Prateek

mayur_patel6
Participant
0 Kudos

that was my initial thought but then if you look at default_trace.trc file it contains entries milliseconds apart. So, I am not sure if i have to make some kind of adjustment in the Config Tool.

thanks,

Mayur

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey

Could you please check the trace in sxmb_moni and see if it gives you any information about what happened to the log file.

Thanks

Aamir

mayur_patel6
Participant
0 Kudos

Hi Aamir, thanks for the reply. I looked in several Trace entries in sxmb_moni but i don't see much info. I don't think it is a problem of file locking becuase default.trc file has several entries within milliseconds apart. default.trc file is PI's trace file where it records all its transactions. I compared the setting between two files and controllers in config tool and they are same. Please let me know if you have any other idea.

Thanks,

Mayur

mayur_patel6
Participant
0 Kudos

We found the solution.

Since we have an App server and an integration server. I have to create seperate controllers in both application server and main pi integration server using configtool. Becuase some of my messages we using our application server to run the mapping program.

Thank you all for your help.

- Mayur