NAV 2017 CU2 integration with CRM On Premise
remi
Member Posts: 3
Hi,
Does anyone succesfully connected NAV 2017 CU 2 with CRM On-Premise (with latest updates) ?
It worked on NAV 2017 before installing cum. updates. However, since the CU 1 and 2 installed (these cum. updates contain changes in CRM authentication), i cannot make it work. I have changed connection string (as the standard one only works with CRM online) to the string that correctly works from .NET. However when i connect to CRM and run any table, or try to execute any command on linked CRM table, i am getting a strange error:
Microsoft Dynamics NAV
An error occurred when communicating with Microsoft Dynamics CRM.
Detailed description: Object reference not set to an instance of an object.
OK
Here is the sample code that I use to try connection:
REGISTERTABLECONNECTION(TABLECONNECTIONTYPE::CRM,ConnectionName,'Url=http://lab-crm2016/EGA-DEV;Domain=labnet;UserName=appserver@labnet.loc;Password=xxx;AuthType=IFD');
SETDEFAULTTABLECONNECTION(TABLECONNECTIONTYPE::CRM,ConnectionName);
CRMAccount.FINDFIRST;
It looks like the tableconnection is established (no error), however running the CRMAccount.FINDFIRST; gives me that strange error. The same error i get if I run any CRM table from object designer, or if i click "Try connection" from CRM Connection Setup. I have also tried various other connection strings, but without success.
Pls. help if you have any idea.
Thanks, Michal
Does anyone succesfully connected NAV 2017 CU 2 with CRM On-Premise (with latest updates) ?
It worked on NAV 2017 before installing cum. updates. However, since the CU 1 and 2 installed (these cum. updates contain changes in CRM authentication), i cannot make it work. I have changed connection string (as the standard one only works with CRM online) to the string that correctly works from .NET. However when i connect to CRM and run any table, or try to execute any command on linked CRM table, i am getting a strange error:
Microsoft Dynamics NAV
An error occurred when communicating with Microsoft Dynamics CRM.
Detailed description: Object reference not set to an instance of an object.
OK
Here is the sample code that I use to try connection:
REGISTERTABLECONNECTION(TABLECONNECTIONTYPE::CRM,ConnectionName,'Url=http://lab-crm2016/EGA-DEV;Domain=labnet;UserName=appserver@labnet.loc;Password=xxx;AuthType=IFD');
SETDEFAULTTABLECONNECTION(TABLECONNECTIONTYPE::CRM,ConnectionName);
CRMAccount.FINDFIRST;
It looks like the tableconnection is established (no error), however running the CRMAccount.FINDFIRST; gives me that strange error. The same error i get if I run any CRM table from object designer, or if i click "Try connection" from CRM Connection Setup. I have also tried various other connection strings, but without success.
Pls. help if you have any idea.
Thanks, Michal
0
Answers
-
I am not sure but if you want to connect to the CRM from NAV, SSL certificate must be installed at your CRM server.
You may also try running CRM at port 80 and and type your local ip instead of domain name.Best Regards:
Zaid Tariq
Dynamics NAV/365 BC Developer at Dynamics 360
please like / agree / verify my answer, if was helpful.0 -
Hi Zaid,
Thanks for reply - SSL is not required, before cumulative update NAV 2017 connected to that CRM site without problems. Seems like something happened with cum. update 1 or 2.
Best regards,
Michal0 -
Not 100% sure, but wasn't that the reason for recalling CU2? Have you tried CU3 already?Cheers
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.0 -
Just upgraded to CU3, but result is the same - the same error
0 -
hi remi,
it seems to be a problem with a modification in your application.
I hardly believe that MS releases multiple updates in which the CRM-connection doesn't work.
The error you get is related to a .Net-variable.
Check this link to understand the reason behind the error:
http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-i-fix-it
Cheers,
HannesMy blog - https://www.HannesHolst.com/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
