Issue with Import-NAVApplicationObjectLanguage
DenSter
Member Posts: 8,307
Don't really know what's going wrong here. I'm working on a US localization of a HUGE add-on (more objects than standard NAV), trying to use as much Powershell as possible. To minimize differences, I exported all non-ENU languages, with the intention to import them back in after merging the objects. I used the Export-NAVApplicationObjectLanguage command to create the language files, and Remove-NAVApplicationObjectLanguage to delete the languages except the ENU one.
After finishing the merge, I want to import the languages back in using the Import-NAVApplicationObjectLanguage command, but that gives me an unhanded error message that I don't understand (see below). Now I would get if the language files would depend on specific line numbers in the text files that would get screwed up by the merge, but I am getting the same error message on the original object files.
Even the object files that I exported the languages from will not import the same language files back in.
What do I need to do to successfully import language files back into my merged objects?
WARNING: UnhandledErrorMessage
Import-NAVApplicationObjectLanguage : Illegal characters in path.
At line:1 char:1
+ Import-NAVApplicationObjectLanguage -Destination C:\Tempie\Target\*.txt -Languag ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-NAVApplicationObjectLanguage], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException,Microsoft.Dynamics.Nav.Model.Tools.Cmdlets.ImportNavApplicationObjectLanguage
After finishing the merge, I want to import the languages back in using the Import-NAVApplicationObjectLanguage command, but that gives me an unhanded error message that I don't understand (see below). Now I would get if the language files would depend on specific line numbers in the text files that would get screwed up by the merge, but I am getting the same error message on the original object files.
Even the object files that I exported the languages from will not import the same language files back in.
What do I need to do to successfully import language files back into my merged objects?
WARNING: UnhandledErrorMessage
Import-NAVApplicationObjectLanguage : Illegal characters in path.
At line:1 char:1
+ Import-NAVApplicationObjectLanguage -Destination C:\Tempie\Target\*.txt -Languag ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-NAVApplicationObjectLanguage], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException,Microsoft.Dynamics.Nav.Model.Tools.Cmdlets.ImportNavApplicationObjectLanguage
0
Best Answer
-
I think you cannot have * sign in destination path. Only folder or maybe directly one file name.5
Answers
-
I think you cannot have * sign in destination path. Only folder or maybe directly one file name.5
-
You are right Phenno. I was looking at the source path actually. I had copied the source path to the destination and forgot to remove the wildcard. the Destination only accepts a folder, as you correctly pointed out. After removing the wildcard from the Destination it added the language without a problem.0
-
Nice
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
- 610 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