Business Notification: Field change based Notification Error
twm414
Member Posts: 3
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.
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
-
Are you "firing" the event though NAV client or NAS (Application server)? Is this event log on the client PC or server PC (which server, DB or BN?)?0
-
I am "firing" the event through the NAV client, I set up the notification, and subscribed the user to it. When I meake the change to the Production BOM I expected to see an email.
The error message comes from the server, which holds both NAV and BN databases.0 -
Check the BN Configurator if the event is in "Started"state...0
-
I'm going to use XMLCancel as my example XML port that uses the record "CancelHead", a custom table that I added.
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.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
