-
Notifications
You must be signed in to change notification settings - Fork 275
Description
I am trying to take a custom and make it an Extension. I need to use a GB database. I have successfully been able to convert and connect the database to the RTC (see #395 ). The next challenge is to run the HelloWorld extension against it.
I have successfully run the HelloWorld extension against the Demo Database.
Next step, change the "Navision-main" service to use my database. I changed the service and restarted it.
Clearly there are some problems, see below.
Questions:
- Why is the extension failing to compile?
- Why does changing locale cause problems downloading the symbols?
When I run the example I get this the following error.
Error Could not publish the package to the server. See Visual Studio Code debug console for more details Close Open launch.json
Debug Window
[2017-07-20 10:46:37.81] Publishing package to http://localhost:7049/navision_main/dev/apps?tenant=default
[2017-07-20 10:46:37.92] Error: The request failed with code 422, reason: Extension compilation failed
error AL1024: A package with publisher 'Microsoft', name 'System', and a version compatible with '10.0.0.0' could not be loaded.
(1,48): error AL0247: The target Page "Customer List" for the extension object is not found
Output Window
Microsoft (R) AL Compiler version 0.7.11459
Copyright (C) Microsoft Corporation. All rights reservedSuccess: The package is created.
The customer list page is in the database and is compiled.
Event Viewer shows
Server instance: Navision_main
Category: Development
ClientSessionId: 00000000-0000-0000-0000-000000000000
ClientActivityId: 00000000-0000-0000-0000-000000000000
ServerSessionUniqueId: 57dc93b6-873d-439b-8dea-9d0d58d566e7
ServerActivityId: 73ead87b-cc1c-4e2b-9025-40b0db9450df
EventTime: 07/20/2017 09:53:04
Message Failed request -- Method:POST; Url:http://localhost:7049/navision_main/dev/apps?tenant=default; StatusCode:422; ReasonPhrase:Unprocessable Entity; ResponseBody: {"Message":"Extension compilation failed\r\nerror AL1024: A package with publisher 'Microsoft', name 'System', and a version compatible with '10.0.0.0' could not be loaded.\r\n(1,48): error AL0247: The target Page "Customer List" for the extension object is not found\r\n"}
ProcessId: 8752
Tag: 00000LY
ThreadId: 49
CounterInformation:
launch.json unchanged
{
"version": "0.2.0",
"configurations": [
{
"type": "al",
"request": "publish",
"name": "Local server",
"server": "http://localhost",
"serverInstance": "navision_main",
"tenant": "default",
"windowsAuthentication": true,
"startupObjectId": 22
}
]
}
app.json unchanged
{
"id": "02ed1bbd-6bc7-4f4b-8844-7dfbb200e252",
"name": "ALProject1",
"publisher": "Default publisher",
"brief": "",
"description": "",
"version": "1.0.0.0",
"compatibilityId": "1.0.0.0",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"capabilities": [],
"dependencies": [],
"screenshots": [],
"platform": "10.0.0.0",
"application": {
"version": "10.0.0.0",
"locale": "W1"
}
}
Noting the locale is set to W1 in app.json I change it to be GB as that is what my database is. Now I get the following when I try and run the extension. The package is not even created.
app.json updated
{
"id": "02ed1bbd-6bc7-4f4b-8844-7dfbb200e252",
"name": "ALProject1",
"publisher": "Default publisher",
"brief": "",
"description": "",
"version": "1.0.0.0",
"compatibilityId": "1.0.0.0",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"capabilities": [],
"dependencies": [],
"screenshots": [],
"platform": "10.0.0.0",
"application": {
"version": "10.0.0.0",
"locale": "GB"
}
}
Error Could not download symbols. Please see the Visual Studio Code output log for more details. Try again Close
The output folder shows:
[2017-07-20 10:35:53.56] Using reference symbols cache path: c:\Users\evodev1\Documents\AL\ALProject1\packages
[2017-07-20 10:35:53.61] Downloading from http://localhost:7049/navision_main/dev/packages?publisher=Microsoft&appName=GB&versionText=10.0.0.0 ... Error (NotFound)
[2017-07-20 10:35:53.61] Could not download reference symbols
Event log shows:
Server instance: Navision_main
Category: Development
ClientSessionId: 00000000-0000-0000-0000-000000000000
ClientActivityId: 00000000-0000-0000-0000-000000000000
ServerSessionUniqueId: 00000000-0000-0000-0000-000000000000
ServerActivityId: 00000000-0000-0000-0000-000000000000
EventTime: 07/20/2017 09:35:53
Message Failed request -- Method:GET; Url:http://localhost:7049/navision_main/dev/packages?publisher=Microsoft&appName=GB&versionText=10.0.0.0; StatusCode:NotFound; ReasonPhrase:Not Found; ResponseBody:
ProcessId: 8752
Tag: 00000LY
ThreadId: 22
CounterInformation: