Export selection of objects as separate textfiles

Administrator
Member, Moderator, Administrator Posts: 2,506
Export selection of objects as separate textfiles
While doing an upgrade from NAV2009R2 to NAV2015 I found that the powershell cmdlet Split-NAVApplicationObjectFile was very slow. (took more than 12 hours to run)
Maybe because of the setup of the virtual machine I was working on, but that's why I decided to make this small Powershell script that will export all selected objects as separated txt files, using the same naming convention as the Split-NAVApplicationObjectFile function.
It first queries the object table with a given filter and it uses the result set to show to the user.
The user then selects the objects he wants to export. All selected objects will be exported using a call to finsql.exe -exportobjects for each found record.
So it is actually quite simple.
http://www.mibuso.com/dlinfo.asp?FileID=1646
Discuss this download here.
While doing an upgrade from NAV2009R2 to NAV2015 I found that the powershell cmdlet Split-NAVApplicationObjectFile was very slow. (took more than 12 hours to run)
Maybe because of the setup of the virtual machine I was working on, but that's why I decided to make this small Powershell script that will export all selected objects as separated txt files, using the same naming convention as the Split-NAVApplicationObjectFile function.
It first queries the object table with a given filter and it uses the result set to show to the user.
The user then selects the objects he wants to export. All selected objects will be exported using a call to finsql.exe -exportobjects for each found record.
So it is actually quite simple.
http://www.mibuso.com/dlinfo.asp?FileID=1646
Discuss this download here.
0
Comments
-
There must be something with the VPC, really. Split of 7000 objects takes just few seconds on my PC.0
-
Hi Kamil,
I suppose so, I had almost 6000 objects, the first 5900 went through very fast, but it took ages for the last part to be processed.
Anyway, it was a nice way to learn some more about Powershell.
greetings, Remco0 -
Were you using the latest version?
The initial version of the Split Cmdlet had severe performance issues in some environments (mine too), but that has been fixed. There were also some other cmdlets with bugs. The new versions were released with NAV 2015 Cumulative Update 2.
http://blogs.msdn.com/b/nav/archive/2014/10/03/merging-application-objects-using-windows-powershell-in-microsoft-dynamics-nav-2015.aspx?PageIndex=2#commentsKai Kowalewski0
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