What ever you do, there is always way to learn something. Buddah once said ““When the student is ready, the teacher will appear”. So Google his here for my teacher.
So today I decided to learn Business Central. And here is my first blog post.
While making my notes, these punjabi folk song comes in my mind, Also note it down.
jangal bele phiran dhoondendi ( I am searching my beloved rivers and forest)
ranjhan mere sange ( My beloved is with me in my mind)
nee menda dil ranjhan rawal mange ( My heart seeking you)
ranjhan rawal mange ( beloved name folk name)
majhian aaiyan meda dhol na aaya ( My fellows come back but my beloved not)
heer kookay vich jhange ( Heer calling her beloved name in forest madly)
lets go back to point.
On demo instance of Business Central allows only two demo companies. I created many.
And after fourth Company. Business Central stop working.
Its quite different form F&O. I found following error message
‘Your program License doesn’t permit support maximum N non-demonstration companies’
So my first search how to remove companies with powerShell so here are my notes for my future self.
first step to import commendlet module that comes to Business Central. Location is some where in c:\program files folder \ Business central\ Service
After finding that path Following command works
Import-Module ‘C:\Program Files\Microsoft Dynamics 365 Business Central\180\Service\NavAdminTool.ps1’
So it imported what next
Now I need list of Companies in local instance. For getting companies “Get-NAVCompany” command.
PS C:\WINDOWS\system32> Get-NAVCompany
cmdlet Get-NAVCompany at command pipeline position 1 Supply values for the following parameters: ServerInstance: bc180
so I get following list. And interestingly there are a lot of … Name there. And I created them.
Now I have to delete the Companies step by Step. On local installation as demo. There is no need of Tenant So following statement works for me.
Remove-NAVCompany -ServerInstance BC180 -CompanyName ‘Test Bab Jii’
Remove-NAVCompany -ServerInstance BC180 -CompanyName ‘Test my company’
Remove-NAVCompany -ServerInstance BC180 -CompanyName ‘CRONUS Pakistan’
After deleting These companies. BC instance started to work fine.