- Print
- PDF
Error Message: '403 Forbidden' When Downloading Files from Lasernet Archive
When attempting to download a file from the Lasernet Archive, the following error occurs:
Error
The remote server returned an error: (403) Forbidden
This typically occurs when the filename contains special characters such as:
Apostrophes (')
Ampersands (&)
Commas (encoded as %2c)
Non-ASCII characters (ø, æ, å, and others)
Cause
This behavior stems from standard Dynamics 365 Finance and Operations file handling logic, not from Lasernet FO Connector.
Lasernet leverages Dynamics’ internal components (such as FileUploadTemporaryStorage) to manage file downloads. When filenames include URL-encoded characters, these components may not process the request correctly, resulting in a 403 error.
This behavior has also been observed if special characters are included in the following standard features:
Task recorder
Trace functionality
Product configuration models
Workaround
To mitigate this issue, we recommend the following:
Remove special characters from filenames.
Use StrRemove() or StrReplace() to sanitize filenames before upload.
Avoid free-text in filenames.
Avoid using customer names or other free-text fields in filenames, especially if they may contain special or non-ASCII characters.
StrRemove(SalesTable.customerName(), "æÆøØåÅßüäö',")
Solution
This issue has been escalated to Microsoft, and the following versions are expected to include fixes that address this behavior:
PU69 10.0.45 7.0.7690.38
PU70 10.0.46 (latest available)
If you are currently using one of these versions (or later) and still encounter this error in standard Dynamics 365 Finance and Operations modules (such as Task recorder), we recommend raising a support ticket with Microsoft referencing this behavior.
Additional Notes
The issue is reproducible in environments using Service Fabric.
Files are successfully uploaded to Azure and can be previewed, but downloads fail.
XML files may still be downloadable, while PDFs fail.
For Lasernet CE Connector users - The CE printing dialog will display the following error:
Error
Screen is not a valid printer destination when the report is batched