NAS automation problem

kryanker
Member Posts: 14
Hi anyone,
Help
!!!
My office are using NAV 5.0 as our support log tracking system. I had customized a function to send out an email with attachment every morning. The email attachment is the excel file which generated by a running report in NAV. NAS will be perform the schedule running for this function.
On earlier state the function is still running fine. But, while user start to complain didn't receive the email and I check on Job Queue Log Entries. It was an error message showing as below:
This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={A378E78B-5DB6-45E9-B598-9ED74A7CCCE1}
1.0:{30E9A1F9-9B22-4D26-91CF-C6CC2D9BC2D9}:'Navision Attain Hash 1.0'.BSTRConverter.
Check
I had tried many times re-register the control on that server and restart NAS but the results are still same. This error message was only show on NAS running, it was working fine if I manually run for this function.
My Variables:
BSTRConverterAttachFileName Automation 'Navision Attain Hash 1.0'.BSTRConverter
My processing codes:
It is not seem to be coding problem because it work fine when I run it manually. I was suffering to run the function manually every morning in order to get the email delivered to user.
Please give some advice. thanks [-o<
Help

My office are using NAV 5.0 as our support log tracking system. I had customized a function to send out an email with attachment every morning. The email attachment is the excel file which generated by a running report in NAV. NAS will be perform the schedule running for this function.
On earlier state the function is still running fine. But, while user start to complain didn't receive the email and I check on Job Queue Log Entries. It was an error message showing as below:
This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={A378E78B-5DB6-45E9-B598-9ED74A7CCCE1}
1.0:{30E9A1F9-9B22-4D26-91CF-C6CC2D9BC2D9}:'Navision Attain Hash 1.0'.BSTRConverter.
Check
I had tried many times re-register the control on that server and restart NAS but the results are still same. This error message was only show on NAS running, it was working fine if I manually run for this function.
My Variables:
BSTRConverterAttachFileName Automation 'Navision Attain Hash 1.0'.BSTRConverter
My processing codes:
BSTRConverterAttachFileName.ResetBSTR; BSTRConverterAttachFileName.AppendNextStringPortion(AttachFileName); OAttachments := OSendMail.Attachments; OAttachment := OAttachments.Add(BSTRConverterAttachFileName);
It is not seem to be coding problem because it work fine when I run it manually. I was suffering to run the function manually every morning in order to get the email delivered to user.

Please give some advice. thanks [-o<
0
Comments
-
kryanker wrote:Please give some advice. thanks [-o<No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Have you verified that the necessary component is being found by the system? Try using File Monitor or Process Monitor (both on technet) to verify that the necessary binary is indeed read.“This posting is provided "AS IS" with no warranties, and confers no rights.”0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions