Call to CreateNewPhysicalDocumentFromTemplate fails for Onsite

Status: Reported

Description
DataBridge makes a call to endpoint CreateNewPhysicalDocumentFromTemplate that fails with the following error:

Error calling SuperOffice endpoint https://xxxxxxxxx/SuperOffice/api/v1/Agents/Document/CreateNewPhysicalDocumentFromTemplate. Der Zugriff auf den Pfad "\\helsinki\backup$\bristol\SO_ARC\SOASO\2025.1" wurde verweigert. ---> System.Exception: {  "Error": true,  "ErrorType": "UnauthorizedAccessException",  "Message": "Der Zugriff auf den Pfad \"\\\\asdf\\asd$\\abasd\\SO_ARC\\asdf\\2025.1\" wurde verweigert.",  "FriendlyMessage": "",  "ErrorSource": "mscorlib",  "InnerError": {    "ErrorType": "SoException",    "Message": "Service call Document.CreateNewPhysicalDocumentFromTemplate failed",    "ErrorSource": "SuperOffice.Services.Implementation",    "InnerError": {      "ErrorType": "Exception",      "Message": "Error occurred at creating the physical document 2025.1",      "ErrorSource": "SoDataBase",      "InnerError": {        "ErrorType": "UnauthorizedAccessException",        "Message": "Der Zugriff auf den Pfad \"\\\\adfas\\asfd$\\asdf\\SO_ARC\\asdf\\2025.1\" wurde verweigert.",        "ErrorSource": "mscorlib",        "InnerError": null      }    }  } }
We were able to reproduce the issue in our own Onsite installation.

First time we make the call:

Error calling SuperOffice endpoint https://correctURl/sales/api/v1/Agents/Document/CreateNewPhysicalDocumentFromTemplate. Cannot create directory D:\SuperOffice\SO_ARC1033\2025.1 because a file already exists with that name. ---> System.Exception: {  "Error": true,  "ErrorType": "InvalidOperationException",  "Message": "Cannot create directory D:\\SuperOffice\\SO_ARC1033\\2025.1 because a file already exists with that name.",  "FriendlyMessage": "",  "ErrorSource": "SoDataBase",  "InnerError": {    "ErrorType": "SoException",    "Message": "Service call Document.CreateNewPhysicalDocumentFromTemplate failed",    "ErrorSource": "SuperOffice.Services.Implementation",    "InnerError": {      "ErrorType": "InvalidOperationException",      "Message": "Cannot create directory D:\\SuperOffice\\SO_ARC1033\\2025.1 because a file already exists with that name.",      "ErrorSource": "SoDataBase",      "InnerError": null    }  } }
All other times we make the call:

Error calling SuperOffice endpoint https://so1033.infobridge.com/sales/api/v1/Agents/Document/CreateNewPhysicalDocumentFromTemplate. Access to the path 'D:\SuperOffice\SO_ARC1033\Remco\2025.1' is denied. ---> System.Exception: {  "Error": true,  "ErrorType": "UnauthorizedAccessException",  "Message": "Access to the path 'D:\\SuperOffice\\SO_ARC1033\\user\\2025.1' is denied.",  "FriendlyMessage": "",  "ErrorSource": "mscorlib",  "InnerError": {    "ErrorType": "SoException",    "Message": "Service call Document.CreateNewPhysicalDocumentFromTemplate failed",    "ErrorSource": "SuperOffice.Services.Implementation",    "InnerError": {      "ErrorType": "Exception",      "Message": "Error occurred at creating the physical document 2025.1",      "ErrorSource": "SoDataBase",      "InnerError": {        "ErrorType": "UnauthorizedAccessException",        "Message": "Access to the path 'D:\\SuperOffice\\SO_ARC1033\\user\\2025.1' is denied.",        "ErrorSource": "mscorlib",        "InnerError": null      }    }  } }

This call works as expected for Online.

Which version of OnSite? Tested on 10.2.5, 10.3.3 and 10.3.9

Can the customer create a document using the same template in the application? Yes

When the folder was created manually, does it have the same accessrights as other folders in SO_ARC? Yes, but this is not relevant for the customer. There the folder was already created by SuperOffice

Was the wrongly created files deleted when creating the folder? Yes, because these have the same name as the folder.

Also please note that creating a file via the SetDocumentStream endpoint works as expected

Kommentarer
Detaljer
Problemet id 71284
Registrert 23 jan. 2025
Sist endret 14 feb. 2025
Alvorsgrad High
Område Sales
Status Reported
Målversjon
Type Bug