LinkedObject - SQL Views - Error when adding a new field
AngelaMills
Member Posts: 29
I created a view in MS SQL 2008 and then created a NAV table with the LinkedObject set to yes (has all the same field names and table name as the SQL view). Everything worked great. However, when I added a new field to the SQL view and then added the same field to the NAV table, I get the following error..
"The x table does not exist as the required object name of x in this database". Is it possible to add a new field or do I have to start all over? Thanks for the help. Angela
"The x table does not exist as the required object name of x in this database". Is it possible to add a new field or do I have to start all over? Thanks for the help. Angela
0
Comments
-
Are you running multiple companies with data per company = no?David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
I changed it to "no" and now I get the following error: Table Data x does not exist.0
-
Did you check if the user has permission to execute view ?0
-
I am the user and I have administrator rights for both NAV and MS SQL. I was able to execute the view from SQL. Do you have any other thoughts or ideas? thanks for the help.0
-
Generally unless there is a specific reason otherwise, its best to set "common to all companies" to YES.
Adding a new field the way you mention is definitely possible, but it just needs one small mistake for it not to work. Me I have a couple of ways of doing this. If the SQL table already exists, you can create the script, and use a text editor to build the Navision fields that way. Or if its all from scratch you can just create the table in Navision, then create the SQL script, delete the Navision table, and then re-import it as a linked table. Also you can create the table in Navision, copy it to excel and then create the SQL script from there. I do it these ways, because it just seems every time I have an issue like yours its actually just some silly typo.David Singleton0 -
Is "Common to all companies" the same as "DataPerCompany"?0
-
AngelaMills wrote:Is "Common to all companies" the same as "DataPerCompany"?
Yes0 -
The reason I asked the question is, if you have multiple companies with data percompany = yes, you need multiple views and if you add a field to one, you have to add it to all the views.David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
Thank you for the update. That makes sense. I only created one SQL view for the company I wanted a NAV table. In the demo database, there are three NAV companies. Do I need to create 3 SQL views for each company even though I only want the view for one company? thanks0
-
AngelaMills wrote:Thank you for the update. That makes sense. I only created one SQL view for the company I wanted a NAV table. In the demo database, there are three NAV companies. Do I need to create 3 SQL views for each company even though I only want the view for one company? thanks
Yes, you need to create the view for all companies. It must be handled like any other table in NAV... ;-)0 -
Thank you. This has been very helpful.0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 327 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

