I've managed to configure BN to work perfectly with time based notifications, I run the worksheets and then the email arrives, all good.
The problem I'm having is with the field change based notifications. I've set one up for Production BOMs, however rather than sending an email I find this error in the event log?
Any suggestions?
Event Type: Warning
Event Source: Business Notification
Event Category: None
Event ID: 0
Date: 02/06/2008
Time: 09:12:33
User: N/A
Computer: SERVER
Description:
Warning: EventsForClass2225e943_a031_4c84_ae1d_395ddda13f1b is unknown for this notification application.
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The error message comes from the server, which holds both NAV and BN databases.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Define XMLCancel as an XML Port
Make sure it has the event "Cancelled Order"
In the code, make XMLCancel a variable of type XML Port (CancelHead is a record variable of the same record type that XMLCancel uses at the first level)
CancelHead.GET("Document Type","No.");
CancelHead.SETRECFILTER;
XMLCancel.SETTABLEVIEW(CancelHead); //if you skip this, all the records get sent
XMLCancel."Cancelled Order";
In the Business Notification Manager make sure that you have a notification that is going to use the "Cancelled Order" event from the XMLCancel XML port. Sometimes BN will display a notification as if it's ok even though it isn't. Usually you can stop and start the notification in the BN manager and if that is successful then the notification is ok. Sometimes the notification will fail to stop/start. You should delete the old one from the BN manager and then add a new one in if that happens.
Make sure that the settings in the Business Notification Setup are there. Make sure that the records in the Property Store table (9801) are there. I have:
Key Value Encoded
BN_MessageBusUrl_0 http://bnotify/BusinessNotificationMess ... rvice.asmx No
BN_PublishRetryTime_0 10000 No
If you browse to the website there I think it gives you an error about an invalid request. It should not give you a 404.
In your IIS you should have the 2.x ASP (if I remember correctly)
Try following the steps in the Partnersource Knowledgebase article 927916: How to troubleshoot issues that may occur when you try to send e-mail messages in Business Notification in Microsoft Dynamics Navision 4.0. Obviously you need to substitute in your step of firing your notification from code instead of running it from the report. Keep in mind that your environment can be setup so that notifications from the report work while notifications fired from events in code do not. The problem is not necessarily within Navision in other words. You could be missing a patch, etc.