Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Invalid object name 'XXXX.dbo.company$xxxxx'

$
0
0
Hi,

We just ran into an interesting problem with one of our clients, on a Nav 2015 environment. In a newly created company the users received the following error message:
The following SQL error was unexpected
Invalid object name 'xxx.dbo.company$xxxxx'

We spent some time finding the problem and would like to explain what went wrong, so if you receive the same error you may find this post useful.

It appeared that the newly created company had a trailing space in its name, so 'company '. All the SQL tables had this space as well, however Dynamics Nav generates the SQL statement WITHOUT space. Hence the error. It couldn't find any of the Nav tables.

We ended up renaming the company via PS:

Rename-NAVCompany –ServerInstance 'DynamicsNAV90' -CompanyName 'Name with space' -NewCompanyName 'Name without space' -Verbose

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>