Problem

You receive an error like:

A connection to the database 'Various\AfasOnline' could not be established...
The remote server returned an error: (401) Unauthorized.
CODE

Despite having followed the instructions on https://documentation.invantive.com/2017R2/afas-online-data-model/webhelp/index.html.

This note explains how to resolve this AFAS connection problem.

Solution

The AFAS connector in versions up to at least 17.31 requires that the user is granted privileges on the ProfitVersion connector.

AFAS is considering extending their API platform to make it easier to always bundle pre-requisites with an app.