PerTenantExtensionCop Error PTE0006

Encryption key functions must not be invoked.

Description

Encryption key functions must not be invoked.

This rule validates that your extension does not invoke the following methods because they are only supported on-premises:

Note

This applies only to on-premises versions of Business Central. For online versions, encryption is always enabled and you cannot turn it off.

How to fix this diagnostic?

You must remove the references to the encryption key methods from your AL code.

PerTenantExtensionCop Analyzer
Get Started with AL
Developing Extensions