Troubleshooting

In this article

Troubleshooting Web Replication using Azure Storage

Error #1 - System.Convert.FromBase64String failed


Troubleshooting Web Replication using Azure Storage

When running the WEBREPLICATION job (or similar, using codeunit 99009521 - LSC Web Repl. Functions), you might get an error.

The error can be displayed immediately, or you might need to check the error by opening the Web Replication Request Queue page and from there access the Distribution Queue.

In the Web Replication Distribution Queue page you can see the last error in the Last Error field.

Known Errors

Error #1 - System.Convert.FromBase64String failed

The Web Replication job fails with the following error:

A call to System.Convert.FromBase64String failed with this message: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

The job is run from a scheduler job using codeunit 99009521 (LSC Web Repl. Functions).

Explanation

The Account Key in the Azure Storage setup is not correctly constructed, for example it was copied with a trailing space (or a leading space).

How to fix
  1. Open the Web Replication Azure Storage Setup page and go to the Storage Account FastTab.
  2. Delete the value in the Account Key field.
  3. Copy the key again from the Azure Portal and paste it without any leading or trailing spaces.
  4. Run the scheduler job again and check the job log to confirm the error no longer occurs.