Developer forum

Forum » Integration » Error installing code unit on BC

Error installing code unit on BC

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

When we follow the installation instructions on installing the code unit for BC (https://doc.dynamicweb.com/documentation-9/integration/integration-framework/erp-plug-in-units/dynamics-365-business-central) we get this error:

Has anyone seen that before?

When we try to manually install the code unit we get this error:

Same question: has anyone seen this before?

Both are showstoppers for installing it, so any insight anyone can provide would help!

Thanks!

Imar

 


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Imar,
I remember long time ago we have found the problems with Spanish BC versions, so the Spanish and other BC versions had a different public methods
in the same base System code units, the Spanish have one set of parameters and others another one.
And that was causing the problems for having one app working for every BC version, so we decided to skip supporting the Spanish version,
it was 3 years ago when Dan approved it. Dan also send our report to Microsoft explaining the problem but I don't know if it was fixed
by MS or not.
By the way, I can not read the text in the first image.
Are you installing to BC OnPrem or to the Cloud? Which BC version do you use?
BR, Dmitrij

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Dmitrij,

Thanks for your reply. The error message on the first screenshot reads "The extension 'Dynamicweb Plug-in Unit by Dynamicweb 1.2.0.27' is not synchronized". We get it when we execute the Install-NAVApp command. Does that ring a bell?

>> so we decided to skip supporting the Spanish version,

So is the "Culture is not supported" error coming from our code unit because it encountered a Spanish BC?

>> Are you installing to BC OnPrem or to the Cloud? Which BC version do you use?

OnPrem, version BC20 CU0.

Is there a way to look at the code unit's code without installing it? For example, the NAV code has the entire code unit also as a text file. That would help reading and understanding the code before it's even installed.

Thanks!

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Imar,
can you try this set of commands to install the app, so after Publish, call Sync-NAVApp and then Install-NAVApp:
Publish-NAVApp -ServerInstance BC170 -Path "C:\Dynamicweb\Dynamicweb_Dynamicweb Plug-In Unit_1.2.0.10.app" –SkipVerification
Sync-NAVApp -ServerInstance BC170 -Tenant 'default' -Name 'Dynamicweb Plug-In Unit'
Install-NAVApp -ServerInstance BC170 -Name ”Dynamicweb Plug-In Unit”

Maybe it can help to install the app.

>> So is the "Culture is not supported" error coming from our code unit because it encountered a Spanish BC?
No, it is not present in the source code and there is no other specific setting in the source code saying that is not available for Spanish.
So I am not sure why this message is shown, maybe it is kind of some "internal" BC OnPremise server error.

BR, Dmitrij

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thnaks once again Dmitrij. We're going to try Sync-NAVApp now.

Imar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

They tried it and it's still not working unfortunately. I got this back from them just now:

"We raised a support ticket  at Microsoft, and they suggested checking in the app source files if there is something referring by mistake to en-ES (especially a .xlf translation file)."

Could that be the case? I know you said there's no check for Spanish but could there be other references? Any other suggestions on how to proceed?

Thanks!

Imar

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Imar,
I'll try to install the Spanish BC OnPrem image and test installing of our codeunit app there and get back to you once I'll have the results.
BR, Dmitrij

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

That sounds great, thanks!

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

I've just tried on the Version: ES Business Central 21.0 (Platform 21.0.46384.46844 + Application 21.0.46256.46853):

OnPrem docker image and it was installed just fine, maybe smth has changed btw 20 or 21 versions or maybe the codebases of BC differs btw
docker image and real BC OnPrem server installaion. Can you provide your full BC version string, like mine above?
So I can try to get exactly the same BC image and try with it

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

They are running on a Belgian verson 20:

Thanks for hanging in there with me Dmitriy!

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Imar,
I have reproduced the error using the BC20 BE but having to run the commands I sent you previously solved the problem, see below:


So I after the Install command I got an error then called Sync command and the called Install command again, it installed just fine.
Configuring connector service and running the requests showed me correct responses:

So I suggest you to try the install commands again, I used the last 1.2.0.27 runtime package for BC19/BC20.
Maybe try this sequence:

1)Uninstall-NAVApp -ServerInstance BC -Name 'Dynamicweb Plug-In Unit'
2)Unpublish-NAVApp -ServerInstance BC -Name 'Dynamicweb Plug-In Unit'
3) Sync-NAVApp -ServerInstance BC -Tenant 'default' -Name 'Dynamicweb Plug-In Unit' -Mode Clean
4) Publish-NAVApp -ServerInstance BC -Path "C:\Dynamicweb\Dynamicweb_Dynamicweb Plug-In Unit_1.2.0.27.app" -SkipVerification
5) Sync-NAVApp -ServerInstance BC -Tenant 'default' -Name 'Dynamicweb Plug-In Unit'
6) Install-NAVApp -ServerInstance BC -Name ”Dynamicweb Plug-In Unit”

Pay attention to correct "tenant"

BR, Dmitrij

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

They reported back that the issue remains the same. I have now created a Care case for this. Thanks!

 

You must be logged in to post in the forum