Add web service to PI Notifications using code

Discussion created by chriswallace on Aug 14, 2014
Latest reply on Aug 18, 2014 by chriswallace

Hello vCampus!


We have recently added a new Web Service delivery endpoint to more than 1000 existing Notifications. To save time, we did so using code.


These Notifications were created using Notification templates (roughly 120) and are running fine, sending to Email delivery endpoints without error.


However, we are getting an error when the Web Service is called:


"Object reference not set to an instance of an object"


We have identified the cause to be related to the passing of attribute values to the web service. Static values work fine.


As a workaround we have to go to each Notification, remove the attribute and add it again - which is quite a time consuming process.


I have also noticed similar behavior when making a change to a notification instance that was created using a template.


Has anyone experienced a similar issue, or know of a feasible workaround?


Thanks in advance.