Thursday, November 21, 2013

How to Create New Company in NAV2013R2 using NAV 2013 R2 administration Shell


Create New Company 
  • Open NAV 2013 R2 Adminstration Shell (Start -> All programs -> NAV 2013 R2 Adminstration Shell ) and enter
  •  New-NAVCompany -ServerInstance DBSRV -CompanyName 'Sample CRONUS'
  • DBSRV is my Server Instance name, replace it by your server Instance
  •  Sample CRONUS Subsidiary is the company which I'm going to create, replace by your company name
  • http://msdn.microsoft.com/en-us/library/dn182571%28v=nav.71%29.aspx

Thanks
Marshal. J

Monday, November 11, 2013

The Call to the member Responsetext msxml3.dll returned following error message. unspecified error - Dynamics NAV

Hi,

you may face following error when trying to hit external web service from Dynamics NAV using
'Microsoft XML, version 2.0'.DOMDocument automation variable.



if you try to get response from external web service before you send request to that particular web service you will face above error. to resolve this you should send request before get response from.below example shows you how to reproduce the error.


Variables Used
Name        DataType       Subtype                                                                         Length
XmlDoc    Automation    'Microsoft XML, version 2.0'.DOMDocument   
HTTP        Automation    'Microsoft XML, version 2.0'.XMLHTTPRequest   

Website Used to hit
http://coinmill.com/AED_INR.html#AED=10

Run below code it will throw an error which is in screen shot, remove the // in 6th line and run again


IF ISCLEAR(XmlDoc) THEN
  CREATE(XmlDoc);
IF ISCLEAR(HTTP) THEN
  CREATE(HTTP);
HTTP.open('POST','http://coinmill.com/AED_INR.html#AED=100',FALSE);
//HTTP.send;
IF HTTP.status = 200 THEN
  MESSAGE('Success');

Sunday, November 10, 2013

There are no NAV Serve Instance Available for this database - Dynamcis NAV 2013R2

Hi
You may face below error when trying to start NAV 2013R2  from developer environment.






Step1
Go to Developer Environment->File->Database->Information and check the server instance and database name,



Step 2
Start Microsoft NAV 2013 Administration and select the Service Instance and check the database name is as same as the database name in Step1, if  database names are different the you will face the above error which mentioned in first screen shot.







To resolve this go to Tools-Options and mention the computer name of the machine which runs NAV server and NAV server Instance  name



and start client from developer environment :)


Thanks
Marshal