Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

(0) ShareShare
ReportReport
Posted on by 20

Hello!

I'm working on this older version of BC 14 and cannot download symbols using UserPassword. I've confirmed the user works, by using the NAV client, and web client as well. Also I've tried to download the symbols using postman (using web service access key) from the address, which also works.

But not in VS Code.

Sending request to xyz:7159/.../packages
Authorization has failed or the credentials have expired. The credential cache has been cleaned. Any access to reach Business Central would require new authorization.
The event log gives me a tiny bit more info, but I'm not really sure what this actually means.
Any ideas?
Server instance: nst
Tenant ID:
Web service call failed Basic authentication. User does not have access.
Server instance: nst
Category: Security
ClientSessionId: 00000000-0000-0000-0000-000000000000
ClientActivityId: 6352d681-9423-45ae-a530-593b5fbf3f04
ServerSessionUniqueId: 00000000-0000-0000-0000-000000000000
ServerActivityId: 0c0d572b-886e-4784-be8f-bd39e5f22e98
EventTime: 04/21/2022 06:22:36
Message No user authentication object was created from authorization value.
ProcessId: 9316
Tag: 00001KM
ThreadId: 6
CounterInformation:
  • Suggested answer
    Rehan Satti Profile Picture
    Rehan Satti 634 on at
    Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:
    I have the same issue on Business Central on premis ver 17. I found the following solution that worked for me.
  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

    Hello,

    Dynamics NAV 2018 and Dynamics 365 Business Central v14 are still both in supported phase. So I do not see any reason why you cannot raise it.

    Thank you.

  • KimNoer Profile Picture
    KimNoer 20 on at
    RE: Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

    Hello

    It's Business Central v14, and onprem - not sure Microsoft would spend a second on case like this :-(

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

    Hello,

    I assume best is to raise this issue to Microsoft support.

    Thanks.

  • KimNoer Profile Picture
    KimNoer 20 on at
    RE: Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

    Hello Marco

    Yes exactly, I've also tried to change the password a couple of times with the same result. Everything works, except the Dev Endpoint part/authentication.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

    Hello,

    Are you using the NavUserPassword that is stored on the user card in BC?

    Thanks.

  • KimNoer Profile Picture
    KimNoer 20 on at
    RE: Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

    Yes it is, here's a total dump of the server configuration-

    key                                             value                                                                  

    ---                                             -----                                                                  

    AllowSessionWhileSyncAndDataUpgrade             false                                                                  

    AmountOfSqlStatementsInDebugger                 10                                                                    

    ApiServicesEnabled                              True                                                                  

    ApiSubscriptionDelayTime                        30000                                                                  

    ApiSubscriptionExpiration                       3                                                                      

    ApiSubscriptionMaxNumberOfNotifications         100                                                                    

    ApiSubscriptionMaxNumberOfSubscriptions         200                                                                    

    ApiSubscriptionNotificationUrlTimeout           5000                                                                  

    ApiSubscriptionsEnabled                         true                                                                  

    ApiSubscriptionSendingNotificationTimeout       30000                                                                  

    AppIdUri                                                                                                              

    AzureActiveDirectoryClientCertificateThumbprint                                                                        

    AzureActiveDirectoryClientId                                                                                          

    AzureActiveDirectoryClientSecret                                                                                      

    AzureKeyVaultClientCertificateStoreLocation     LocalMachine                                                          

    AzureKeyVaultClientCertificateStoreName         My                                                                    

    AzureKeyVaultClientCertificateThumbprint                                                                              

    AzureKeyVaultClientId                           00000000-0000-0000-0000-000000000000                                  

    AzureKeyVaultKeyUri                                                                                                    

    BufferedInsertEnabled                           true                                                                  

    CalendarTwoDigitYearMax                         -1                                                                    

    ClientBuildRestriction                          WarnClient                                                            

    ClientServicesAllowedFileTypes                                                                                        

    ClientServicesChunkSize                         28                                                                    

    ClientServicesCompressionThreshold              64                                                                    

    ClientServicesCredentialType                    NavUserPassword                                                        

    ClientServicesEnabled                           true                                                                  

    ClientServicesFederationMetadataLocation                                                                              

    ClientServicesIdleClientTimeout                 MaxValue                                                              

    ClientServicesKeepAliveInterval                 00:02:00                                                              

    ClientServicesMaxConcurrentConnections          500                                                                    

    ClientServicesMaxItemsInObjectGraph             512                                                                    

    ClientServicesMaxNumberOfOrphanedConnections    20                                                                    

    ClientServicesMaxUploadSize                     350                                                                    

    ClientServicesOperationTimeout                  MaxValue                                                              

    ClientServicesPort                              7156                                                                  

    ClientServicesProhibitedFileTypes               ade;adp;asp;bas;bat;chm;cmd;com;cpl;csh;exe;fxp;gadget;hlp;hta;inf;i...

    ClientServicesProtectionLevel                   EncryptAndSign                                                        

    ClientServicesReconnectPeriod                   00:10:00                                                              

    ClientServicesTokenSigningKey                                                                                          

    CompileBusinessApplicationAtStartup             true                                                                  

    DatabaseInstance                                                                                                      

    DatabaseName                                    database

    DatabaseServer                                  databaseserver

    DatabaseUserName                                kim.noer                                                              

    DataCacheSize                                   10                                                                    

    DebuggingAllowed                                true                                                                  

    DefaultClient                                   Windows                                                                

    DefaultLanguage                                                                                                        

    DeltaServiceClientTimeout                       00:02:00                                                              

    DeveloperServicesEnabled                        True                                                                  

    DeveloperServicesPort                           7159                                                                  

    DeveloperServicesSSLEnabled                     True                                                                  

    DisableQueryHintForceOrder                      true                                                                  

    DisableQueryHintLoopJoin                        true                                                                  

    DisableQueryHintOptimizeForUnknown              false                                                                  

    DisableSmartSql                                 false                                                                  

    DisableTokenSigningCertificateValidation        True                                                                  

    DisableWriteInsideTryFunctions                  true                                                                  

    EnableALServerFileAccess                        true                                                                  

    EnableApplicationChannelLog                     true                                                                  

    EnableCloudReplicationMaintenance               false                                                                  

    EnableDataExportImport                          true                                                                  

    EnableDeadlockMonitoring                        false                                                                  

    EnableDebugging                                 False                                                                  

    EnableFullALFunctionTracing                     false                                                                  

    EnableLongRunningSqlStatementsInDebugger        true                                                                  

    EnableMembershipEntitlement                                                                                            

    EnableMultithreadedCompilation                  true                                                                  

    EnableNavEventRebindingLock                     true                                                                  

    EnableSaveFromReportPreview                     true                                                                  

    EnableSaveToExcelForRdlcReports                 true                                                                  

    EnableSaveToWordForRdlcReports                  true                                                                  

    EnableSqlConnectionEncryption                   True                                                                  

    EnableSqlInformationDebugger                    true                                                                  

    EnableSymbolLoadingAtServerStartup              True                                                                  

    EnableTaskScheduler                             true                                                                  

    EncryptionProvider                              LocalKeyFile                                                          

    ExcelAddInAzureActiveDirectoryClientId                                                                                

    ExchangeAuthenticationMetadataLocation                                                                                

    ExtendedSecurityTokenLifetime                   0                                                                      

    ExtensionAllowedTargetLevel                     Internal                                                              

    ExternalTraceLevel                              Error                                                                  

    LegacyOptionCaptionResolution                   false                                                                  

    LockoutPolicyFailedAuthenticationCount          0                                                                      

    LockoutPolicyFailedAuthenticationWindow         0                                                                      

    LongRunningSqlStatementsInDebuggerThreshold     500                                                                    

    ManagementServicesEnabled                       true                                                                  

    ManagementServicesIdleClientTimeout             02:00:00                                                              

    ManagementServicesPort                          7155                                                                  

    MaxConcurrentCalls                              1000                                                                  

    MaxRowsToExportToExcel                          MaxValue                                                              

    MaxStreamReadSize                               1000000                                                                

    Multitenant                                     false                                                                  

    NASServicesEnableDebugging                      false                                                                  

    NASServicesRunWithAdminRights                   false                                                                  

    NASServicesStartupArgument                                                                                            

    NASServicesStartupCodeunit                                                                                            

    NASServicesStartupMethod                                                                                              

    NavHttpClientMaxResponseContentSize             150                                                                    

    NavHttpClientMaxTimeout                         00:05:00                                                              

    NetworkProtocol                                 Default                                                                

    NonInteractiveSessionsLogRetainInterval         5.00:00:00                                                            

    ODataEnableExcelAddInAnnotations                true                                                                  

    ODataMaxConnections                             0                                                                      

    ODataMaxConnectionsPerTenant                    0                                                                      

    ODataServicesEnabled                            True                                                                  

    ODataServicesMaxPageSize                        20000                                                                  

    ODataServicesOperationTimeout                   MaxValue                                                              

    ODataServicesPort                               7158                                                                  

    ODataServicesSSLEnabled                         True                                                                  

    ODataServicesV3EndpointEnabled                  true                                                                  

    ODataServicesV4EndpointEnabled                  true                                                                  

    OverwriteExistingTranslations                   true                                                                  

    ProhibitedReportServerPrinters                  ["Microsoft Print to PDF","Microsoft XPS Document Writer"]            

    ProtectedDatabasePassword                       wYvKk0BuftqnqJJiN0TJMqBTVJziQPp21EGglSoAOimB2NeS91ggBYD6AJ6YcGf/FAQo...

    PublicODataBaseUrl                              xyz                                            

    PublicSOAPBaseUrl                               xyz                                            

    PublicWebBaseUrl                                xyz                                            

    PublicWinBaseUrl                                                                                                      

    ReplaceReportExecutionTimeWithClientTime        true                                                                  

    ReportAppDomainIsolation                        true                                                                  

    ReportPDFFontEmbedding                          true                                                                  

    SearchTimeout                                   00:00:10                                                              

    SecurityProtocol                                Tls12                                                                  

    ServerInstance                                  NST                                                            

    ServicesCertificateThumbprint                   666B547DF99F597C8B76137A6919E1C85D4E241D                              

    ServicesCertificateValidationEnabled            False                                                                  

    ServicesDefaultCompany                                                                                                

    ServicesDefaultTimeZone                         UTC                                                                    

    ServicesLanguage                                en-US                                                                  

    ServicesOptionFormat                            OptionCaption                                                          

    ServicesUseNTLMAuthentication                   False                                                                  

    SessionEventTableRetainInterval                 90.00:00:00                                                            

    SOAPServicesEnabled                             True                                                                  

    SOAPServicesMaxMsgSize                          1024                                                                  

    SOAPServicesPort                                7157                                                                  

    SOAPServicesSSLEnabled                          True                                                                  

    SqlBulkImportBatchSize                          448                                                                    

    SqlCommandTimeout                               00:30:00                                                              

    SqlConnectionIdleTimeout                        00:05:00                                                              

    SqlConnectionTimeout                            00:01:30                                                              

    SqlLockTimeoutOverride                          0                                                                      

    SqlLongRunningThreshold                         1000                                                                  

    SqlParametersByOrdinal                          true                                                                  

    SupportedLanguages                                                                                                    

    TaskSchedulerMaximumConcurrentRunningTasks      10                                                                    

    TaskSchedulerSystemTaskEndTime                  23:59:59                                                              

    TaskSchedulerSystemTaskStartTime                00:00:00                                                              

    TokenSigningCertificateValidationMode           IssuerNameValidation                                                  

    TraceLevel                                      Normal                                                                

    TrustSQLServerCertificate                       True                                                                  

    UIElementRemovalOption                          LicenseFileAndUserPermissions                                          

    UseFindMinusWhenPopulatingPage                  true                                                                  

    UseIncrementalCompanyDelete                     false                                                                  

    UseSimplifiedFilters                            false                                                                  

    ValidAudiences                                                                                                        

    WSFederationLoginEndpoint                                                                                              

    XmlMetadataCacheSize                            500                                                                    

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

    Is the dev endpoint active on your server instance ?

  • KimNoer Profile Picture
    KimNoer 20 on at
    RE: Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

    Oh, sure thing, here it is

           {

               "name": "UserPwdTest",

               "type": "al",

               "request": "launch",

               "environmentType": "OnPrem",

               "server": "https://xyz",

               "serverInstance": "nst",

               "authentication": "UserPassword",

               "startupObjectId": 22,

               "breakOnError": true,

               "breakOnRecordWrite": false,

               "launchBrowser": true,

               "enableSqlInformationDebugger": true,

               "enableLongRunningSqlStatements": true,

               "longRunningSqlStatementsThreshold": 500,

               "numberOfSqlStatements": 10,

               "port": 7159

           },

  • Rbansode Profile Picture
    Rbansode 5 on at
    RE: Cannot download symbols, StatusCode:Unauthorized; ReasonPhrase:Unauthorized; Token:

    Can you share the launch.json file?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans