I am trying to install an extension on a development database, when I get the error "Cannot install the extension {name} by {company} {version} because a newer version was already installed."
I uninstalled / unpublished the versions I found with Get-NAVAppInfo (non was higher than what I was installing).
I tried to both publish and install with both VSCode and just powershell - same result.
I have also raised the version number a couple of times. It shows the updated version number in 'Extension Management', but installation still not allowed.
Running multitenant...
I made a cronus database (without multitenant), copied the objects from my development base and published/installed the extension on the cronus. This works as expected!
Any ideas, that won't throw away the data?
BC130.28871
0
Answers
I just jump into this issue.
Simply produce a new GUID and replace the id in the app.json.
Using SQL query : SELECT NEWID()
p.s. Do NOT generate a new GUID as the previous response suggests.
Can the error be right? The data version matters. Get-NavAppInfo - tenant xxx - tenantspecificproperties contains the data version. Probably raising the version can do.
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.
$ServerInstance = 'BCProd'
Get-NAVTenant -ServerInstance $ServerInstance | ForEach-Object {
$tenant = $_.Id
write-host $tenant
Get-NAVAppInfo -ServerInstance $ServerInstance -Tenant $tenant
}
I'm thankful for your suggestions, and I'm sure at the time I found a solution (and should have updated my thread)....
Trying to recall what happened, but it is long gone from memory
Very sure I kept my guid, since I like my data to stay in the extension!