Posts

NAV 2016 - Object Merging/Joining using Power shell

Image
1. Create Folder Structure like below. Export all object whatever need to merge in a single TXT file. Like Base.TXT/CustomerObject.TXT 2. RUN NAV 2016 Development Shell using RUN as Administrator. 3. Run Below command in Development Shell. Merge-NAVApplicationObject -OriginalPath "C:\NAV 2016\ORIGINAL" -TargetPath "C:\NAV 2016\TARGET" -ModifiedPath "C:\NAV 2016\MODIFIED" -ResultPath "C:\NAV 2016\RESULT" 4. Wait for the  process to complete. 5. Then Check the RESULT folder to check the merging status. For conflict file better to use third party merging tool (Araxis/Compare IT) & merge the conflicted file. 6. After merging the conflicted files using below command to join all objects. Join-NAVApplicationObjectFile -Source "C:\NAV 2016\RESULT\COD*.txt" -Destination "C:\NAV 2016\all-codeunits.txt" 7. It can be used in the lower version of NAV also. But need to use in NAV 2016 administration shell