NAV2009R2 RTC - Weird automation error (outlook)

sander7
Member Posts: 10
Hi,
At a client of mine, i have implemented functions for mailing pdf's to their customers.
When doing that, a record is created in a log-table, the pdf is created and stored in a BLOB, and in the very end of the process, first i have a COMMIT, and then a call to a function that takes the log-record as parameter is done, to have the actual mail created and shown to the user.
In Classic this all works fine, both in client on the server, and in client on the user PC.
In RTC i get the following error (also both in client on the server and user PC):
Microsoft Dynamics NAV
This message is for C/AL programmers: Unable to create an instance of Automation Server {0006F03A-0000-0000-C000-000000000046} with CLSID = 0006f03a-0000-0000-c000-000000000046 Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005..
OK
Now the funny thing is, that i can press OK to the error, then navigate to the mail-log page, find the record just created, and from there do a call to the EXACT same function, and everything works fine.
Has anyone any suggestions to why i see this behavior?
And of course how i can fix it.
Regards
Alexander
At a client of mine, i have implemented functions for mailing pdf's to their customers.
When doing that, a record is created in a log-table, the pdf is created and stored in a BLOB, and in the very end of the process, first i have a COMMIT, and then a call to a function that takes the log-record as parameter is done, to have the actual mail created and shown to the user.
In Classic this all works fine, both in client on the server, and in client on the user PC.
In RTC i get the following error (also both in client on the server and user PC):
Microsoft Dynamics NAV
This message is for C/AL programmers: Unable to create an instance of Automation Server {0006F03A-0000-0000-C000-000000000046} with CLSID = 0006f03a-0000-0000-c000-000000000046 Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005..
OK
Now the funny thing is, that i can press OK to the error, then navigate to the mail-log page, find the record just created, and from there do a call to the EXACT same function, and everything works fine.
Has anyone any suggestions to why i see this behavior?
And of course how i can fix it.

Regards
Alexander
Regards,
Alexander Pallesen
Freelance Navision Developer
Alexander Pallesen
Freelance Navision Developer
0
Answers
-
When using the CREATE function to create an instance of the automation server, make sure you set the OnClient parameter to TRUE. See the following link for more details...
https://msdn.microsoft.com/en-us/library/dd355255.aspx0 -
Hello Kishorm.
I also getting above error,although i have Passed TRUE OnClient Parameter,in NAV 2013R2..
Give me some Idea..
Kind Regards0
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