cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic trigger subscription in SAP DM

sayuj_nair
Explorer
0 Kudos

Hello Experts,

Im trying to create a automatic trigger subscription in SAP DM. 

Im trying to fetch the processing state of the machine via production connector. I created a production process to fetch the current data from the indicator tag value. But it is all possible via manual trigger via a POD Plugin. 

Now, Im trying to create a automatic trigger, which triggers a POD message as soon as the processing state of the machine turns to error. 
But I cant check why my automatic trigger is not working when the processing state changes to error. 

sayuj_nair_0-1710347647307.png

sayuj_nair_1-1710347725739.png

Could anyone please help me out, where am I making the mistake here. 
Thank you in advance for your help. 

KR,
Sayuj.

Accepted Solutions (1)

Accepted Solutions (1)

rahul_kumar_04
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sayuj , 

Do you see any entry against this production process in "Monitor Production Process" which covers the production process flow,

a. if yes, then trigger condition is passing right >  do you see any specific error in Monitor Production process ? 

b. if no, then trigger condition is not getting passed ? check the tag value of processing state ? is it "Error" ( case sensitive)  or "0".

Thanks

rahul

sayuj_nair
Explorer
0 Kudos

Hi Rahul,
Thank you for your reply. No I cant see any entry in Monitor app. The trigger is not happening at all. 

I checked the value it is "error". I checked it multiple times with the tag value but it doesnt trigger the condition.
Also I tried to manually start the production process and check the value in POD. It gives the same output - "error"

Tag Value.
sayuj_nair_0-1710402095098.png

Manual Output in POD.

sayuj_nair_1-1710402147750.png

KR,
Sayuj.

 

rahul_kumar_04
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sayuj ,

Can you redeploy the indicator subscription with Quick deploy inside Automatic manage trigger and check again?

Also check if notification is getting generated correct in production connector, check the production connector app ( control center ) logs and see if any notification or error.

Thanks

Rahul

 

 

sayuj_nair
Explorer
0 Kudos

Hi Rahul,

Thank you for your reply. I could see a lot of error in the production connector log. 

Error 1 

sayuj_nair_0-1710458388268.png

 

Error 2 

sayuj_nair_1-1710458563897.png

Are you aware of these errors? Thanks again for your help.

KR,
Sayuj.

rahul_kumar_04
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sayuj ,

From Error 2 it seems data conversion issue meaning the tag value returning a string value as "finished" and in expression its expecting tagvalue as boolean , check if there specific expression which you have maintained while in subscription in DM or for testing just model a boolean tag in Keepware and model an indicator in DM and subscribe to this tag and check if change in Boolean tag sends a notification to DM ,just a sanity check , if issue still presists open an incident for SAP standard support ?

Thanks

Rahul

sayuj_nair
Explorer

Hi Rahul,
It was due to the JWT token. Once the new JWT token in BTP was created the error was solved and the connection was established properly. 
Key rotation in BTP was the solution for this error. 

KR,
Sayuj.

Answers (0)