How can I import data directly from Excel sheet?
If we copy daa from excel to notepad we have to arange all data.But if we have very big data then what can we do?
There exist some ways to do it. Easiest of them is, I think, save your Excel sheet in some kind of CSV file and create simple dataport to import it. You can also use Excel automation, but it needs a bit more knowledges.
Navision has a tool called Excel Mapping tool. With this you can import and export directly from any table.
This tool is under Setup Checklist
When i am mapping and import the data it shows me error
"Message is for c\cal programer"
Could not invoke the member name.The OLE control or outomation server returned an unknown error code
If you're trying to import a csv file using a dataport. You need to make sure you're: 1) Populating the tables primary field (in this case the No.) 2) and that the field is unique in the csv and on the table.
e.g. 1000,Account Name,Search Name,Account Type etc etc
There is a strange thing about this mapping tool that it gives error in few cases and in few it runs perfectly. Try the following steps , it might help:
Create a Code, define the table number, and give a new file name. Specify a mapping group. First Data Row as 5 (It should be 5 though I do not know the reason but if I change it, it gives error). From the function run "Insert Fields from Table" and do not select auto coloumn. Delete the fields not required by you. Then click "Line" button and select Auto Coloumn. Click Function and select "Export Definition". Ensure that no excel worksheet is open at that time. Once the definition is exported open the file and copy paste all your data in this sheet. After you are done on the mapping form select the file name again (Do remember to do it ) and then import. I hope there will be no problem. Also the computer you are using should have Microsoft Office with Excel installed on it.
Most pobably you installed Excel after the Navision client. Sometimes it matters.
Deinstall Navision, clean installation folder, and reinstall it once more. Do not copy installation from another comuter, just make fres install from CD.
I'll try to explain a little bit better, what to do about the error:
"Message is for c\cal programer"
Could not invoke the member name.The OLE control or outomation server returned an unknown error code"
This error comes from an option field, where you have the text for the option instead of the code. Code is 0,1,2...n.
Try to replace the text in your table with the code instead, before importing your excel-file to NAV.
If you don't know, which fields are option-fields, start with "export definition". In the first row, where you have an option field in a column, you will see at red triangle in the excel-file, meaning a remark. Open the remark and you will see the option list.
One thing more. If you don't get anything imported, it's probably because the code name in the form in NAV is not the same as the sheet name in excel.
The code is referring to the sheet name in excel. You can have more than one sheet in an excel file, and import each sheet to NAV, just by changing the code name to the same as the sheet name, you wan't to import.
Go to the table ExcelBuffer and look for the automation var you will find type unknown replace it by MS Office Excel 11.0 I think.
You may use Excel 2007 and the automation defined on this ExcelBuffer Table is for Excel 2000 something like that, all you have to do is to change the right version.
Comments
But actually there is no no. in G\L account table.
This tool is under Setup Checklist
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
When i am mapping and import the data it shows me error
"Message is for c\cal programer"
Could not invoke the member name.The OLE control or outomation server returned an unknown error code
So you need to make sure each record in the the *.csv file you're importing from has a unique account no.
hope I've helped.
Export the table to Excel from Cronus to see the format. Import using a similar format.
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
I there any other option in installation of excel .I already install excel as typical installation.
e.g. 1000,Account Name,Search Name,Account Type etc etc
http://ssdynamics.co.in
But by using mapping tool I got the same error like
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Create a Code, define the table number, and give a new file name. Specify a mapping group. First Data Row as 5 (It should be 5 though I do not know the reason but if I change it, it gives error). From the function run "Insert Fields from Table" and do not select auto coloumn. Delete the fields not required by you. Then click "Line" button and select Auto Coloumn. Click Function and select "Export Definition". Ensure that no excel worksheet is open at that time. Once the definition is exported open the file and copy paste all your data in this sheet. After you are done on the mapping form select the file name again (Do remember to do it ) and then import. I hope there will be no problem. Also the computer you are using should have Microsoft Office with Excel installed on it.
http://ssdynamics.co.in
http://ssdynamics.co.in
Try to avoid importing option fields. Just remove the mapping to that field
Regards
Aksma
Most pobably you installed Excel after the Navision client. Sometimes it matters.
Deinstall Navision, clean installation folder, and reinstall it once more. Do not copy installation from another comuter, just make fres install from CD.
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
"Message is for c\cal programer"
Could not invoke the member name.The OLE control or outomation server returned an unknown error code"
This error comes from an option field, where you have the text for the option instead of the code. Code is 0,1,2...n.
Try to replace the text in your table with the code instead, before importing your excel-file to NAV.
If you don't know, which fields are option-fields, start with "export definition". In the first row, where you have an option field in a column, you will see at red triangle in the excel-file, meaning a remark. Open the remark and you will see the option list.
The code is referring to the sheet name in excel. You can have more than one sheet in an excel file, and import each sheet to NAV, just by changing the code name to the same as the sheet name, you wan't to import.
http://ssdynamics.co.in
You may use Excel 2007 and the automation defined on this ExcelBuffer Table is for Excel 2000 something like that, all you have to do is to change the right version.
Hanen TALBI