As a Business Central developer we have from time to got used to using xrec and rec as container for previous value and current new value.
However, there are certain scenarios when xrec doesn’t work as intended.
Read the rest of this entry »As a Business Central developer we have from time to got used to using xrec and rec as container for previous value and current new value.
However, there are certain scenarios when xrec doesn’t work as intended.
Read the rest of this entry »Are you running OnPrem and you get a lot of warnings “Tag: 0000G92 – Sales Header must not be temporary” or “Tag: 0000G95 – Sales Header must not be temporary” in the event viewer like this?
Like many companies nowadays we have bunch of customers with different Business Central versions that we need to support.
On top of this many of us tries to “create money while we sleep” by creating stand alone apps that we could reuse/resell to new customers and perhaps eventually put them on AppSource in the next step.
This means that we need to support/maintain our standalone apps in multiple versions.
Read the rest of this entry »We were setting up a new customer with Microsoft Business Central OnPrem and I tried to download the symbols from the customer remotely.
I knew the NST and firewall was configured but I still got the following error message when I ran AL:Download Symbols:
[2023-02-02 10:37:32.45] Using reference symbols cache path: c:\GIT\algo\BC21.alpackages
[2023-02-02 10:37:32.46] Sending request to https://<CompanyURL>.com:7389/<BC INSTANCE NAME>/dev/metadata?tenant=default
[2023-02-02 10:37:32.54] Error: The SSL connection could not be established, see inner exception.
Cannot determine the frame size or a corrupted frame was received.
[2023-02-02 10:37:32.54] Error: An error occured while processing the request.
Request ID: a8739f78-4316-4c39-ad9b-1353bddbee16
Session ID: 00721ee7-41e7-4f25-b1fc-354139dba1a6
If you are targeting a cloud instance, supply these IDs if contacting Microsoft support.
[2023-02-02 10:37:32.54] Sending request to https://<CompanyURL>.com:7389/<BC INSTANCE NAME>/dev/metadata?tenant=default
[2023-02-02 10:37:32.64] Error: The SSL connection could not be established, see inner exception.
Cannot determine the frame size or a corrupted frame was received.
[2023-02-02 10:37:32.64] Error: An error occured while processing the request.
Request ID: 6294518c-9186-4d82-bc5b-3dcf89a8c8be
Session ID: 00721ee7-41e7-4f25-b1fc-354139dba1a6
If you are targeting a cloud instance, supply these IDs if contacting Microsoft support
It turns out our technician had forgotten to enable the setting DeveloperServicesSSLEnabled to true.
Once activated it worked with downloading the symbols
.
.
We had a scenario were we did an OnPrem installation for a customer (BC 19.x). We had set up three NST, one for web clients, one for job queue and one for API. We had a Cronus database as a base were we created a new empty company besides the cronus company.
When we wanted to get posted invoices via API we couldn’t find any even though we had posted several invoices(!). First we thought something was wrong with the API NST but we could reach other companies and it became even weirder when we tried to access invoices in the cronus company, then it worked!
So why the hell did it work against the Cronus company in the same database with the same NST BUT NOT for our newly created company!? 🤔
Read the rest of this entry »Do you want to know how to compile your Business Central app manually as VS Code does? Then you will get started with this blog post.
Read the rest of this entry »I recieved the following error when trying to build my Business Central App:
A package with publisher ‘Microsoft’, name ‘Application’, and a version compatible with ‘13.0.0.0’ could not be loaded.
Compile-AppInNavContainer : App generation failed At C:\Install\BuildAgent\vsts-agent-win-x64-2.146.0\_work\3\s\PowerShell\BuildAgent\Compile-App.ps1:24 char:5 + Compile-AppInNavContainer -containerName $containerName ` + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Compile-AppInNavContainer
PowerShell exited with code ‘1’.
The scenario I had was an onprem extension version 13 that should be run on a cu 3 which relies on imported CSIDE objects.
What I did to solve the problem was to follow my checklist for CSIDE objects not includes in symbols.
Do you want to go hybrid where you mix your Business Central extensions with CSIDE objects and have problems with getting these objects included in symbols? Then you will find a checklist here that hopefully helps you to solve that issue.
Read the rest of this entry »Apparently you have to turn off the property “Load User Profile” in the IIS application pool manually or you will be given the following error message:
Error accessing Website Microsoft Dynamics NAV 2017 Web Client
Type: Microsoft.Dynamics.Nav.Types.NavSecurityNegotiationException
Message: The Service Principal Name (Delegation) configuration has been set incorrectly. Server connect URL: “net.tcp://localhost:7046/DynamicsNAV365/Service”. SPN Identity: “DynamicsNAV/localhost:7046”
The X.509 certificate CN=XXXX, OU=PositiveSSL, OU=Domain Control Validated is not in the trusted people store. The X.509 certificate CN=XXXX, OU=PositiveSSL, OU=Domain Control Validated chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. The revocation function was unable to check revocation because the revocation server was offline.
Tips and news for AL programmers
Dynamics 365 Business Central
Thoughts about Dynamics 365 Business Central, Git, Azure DevOps, PowerShell, Automated Testing, Visual Studio Code...and maybe some other stuff
MVP & MCT Microsoft Dynamics 365 Business Central, Powershell, Azure, SQL Server
DevOps starts with culture!
Reflections from the ERP field
Reflections from the ERP field
Reflections from the ERP field
Learn something new... - then Teach someone!
Reflections from the ERP field
Micosoft Dynamics NAV Performance Testing & Optimization
Reflections from the ERP field
Design Patterns, Performance, Clean Code
Ideas in the cloud
Reflections from the ERP field
Reflections from the ERP field
- Sharing my experience in the Dynamics NAV world
Reflections from the ERP field
Its Really Fun to Work with Microsoft Dynamics Nav / D365 Business Central