--- title: "Upload File Data or File Reference" slug: "upload-file-data-or-file-reference" updated: 2025-08-29T19:54:56Z published: 2025-08-29T19:54:56Z canonical: "documentation.decisions.com/upload-file-data-or-file-reference" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Upload File Data or File Reference | Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 9.12.0 | | **Location** | Integration > MS OneDrive | The **Upload File Data or File Reference** step allows a user to upload specific file data or a specific file reference from a local file to OneDrive. ### Prerequisites - This step requires the [MS OneDrive module](https://documentation.decisions.com/docs/msonedrive) to be [installed](https://documentation.decisions.com/docs/installing-modules-decisions) before it will be available in the toolbox. - A [dependency](https://documentation.decisions.com/docs/project-dependencies) must be created after installing the module in order for the the steps to be properly used. --- ## Properties #### Settings | Property | Description | Data Type | | --- | --- | --- | | Token | Establishes a connection to MS OneDrive. | String | | Type To Upload | Establishes what type of file to upload. | String | #### Inputs | Property | Description | Data Type | | --- | --- | --- | | File Data | The file data from the specified local file. | FileData | | Parent Folder Id | ID of the Folder the new folder will be under. | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Error Info | Returns information as to why an error occurred. | OneDriveErrorInfo | | Result | Returns complete result information. | OneDriveFile | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-08-06_12h21_46.png) --- ## Common Errors ### Could Not Find Token With Token Id If the token that was used to access OneDrive is not present or expired, the step will cause an error. To correct this, ensure the token used in this step is properly configured and active. #### Exception Message: ```csharp DecisionsFramework.Data.ORMapper.EntityNotFoundException: Can not find token with TokenId="" at Decisions.MSOneDrive.AbstractStep.FindAccessToken(String id) at Decisions.MSOneDrive.AbstractStep.Run(StepStartData data) ``` --- Related Information Related Articles: [MS OneDrive](https://documentation.decisions.com/docs/msonedrive)