The text 'generatesymbolreference Database=xxx ServerName=xxx' is too long

airam
Member Posts: 91
hi, I'm trying to run the below command
.\finsql.exe Command=generatesymbolreference, Database="Demo Database BC (14-0)", ServerName="xxx"
but i'm getting the below error
Microsoft Dynamics NAV Development Environment
The text 'generatesymbolreference Database=Demo Database BC (14-0) ServerName=xxx' is too long. Text can have a maximum length of 47 characters.
OK
any ideas pls?
.\finsql.exe Command=generatesymbolreference, Database="Demo Database BC (14-0)", ServerName="xxx"
but i'm getting the below error
Microsoft Dynamics NAV Development Environment
The text 'generatesymbolreference Database=Demo Database BC (14-0) ServerName=xxx' is too long. Text can have a maximum length of 47 characters.
OK
any ideas pls?
0
Answers
-
actually all commands from BC Shell are giving me the same error...0
-
You have to use spaces after the commas. Without spaces everything is handled as a value to command.Cheers
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.0 -
thanks for your feedback, however I am already using spaces after the commas.. I tried with spaces before, after, no spaces, no commas .. all giving an error0
-
Oh, well. Now I see your ./ in front of finsql.exe. Can you please try to run the command in a Command Shell instead of PowerShell? I remember you have to mask the command in PS. If you need it in PowerShell, please refer to Microsoft.Dynamics.Nav.Ide.psm1 and see how RunNavIdeCommand is implemented or use the PowerShell wrapper directly.Cheers
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.1 -
hi, I'm trying to run the below command
.\finsql.exe Command=generatesymbolreference, Database="Demo Database BC (14-0)", ServerName="xxx"
but i'm getting the below error
Microsoft Dynamics NAV Development Environment
The text 'generatesymbolreference Database=Demo Database BC (14-0) ServerName=xxx' is too long. Text can have a maximum length of 47 characters.
OK
any ideas pls?
I had the same when I use in direct way from Powershell like this:Export-NAVApplicationObject -DatabaseName $DBName -Path $ExpNAVAppObjectFilePath -Confirm -DatabaseServer $DBServer -ExportToNewSyntax -ExportTxtSkipUnlicensed -Filter $ExpObjectFilter -LogPath $pLogPath -Force
but after I tried the Waldo's powershell script to run the Command indirect way, that is works:$exportfinsqlcommand = """$NAVIDE\finsql.exe"" command=exportobjects,file=$ExpNAVAppObjectFilePath,servername=$DBServer,database=$DBName,Logfile=$pLogPath" $Command = $exportfinsqlcommand cmd /c $Command
https://waldo.be/2014/06/04/nav-2013-r2-export-objects-with-powershell-3/0
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