File upload to Sharepoint

Hello,

Describe the problem/error/question

I need to pick some One Drive files to upload them to Sharepoint into specific folders.
The last Node Sharepoint Upload file doesn’t take the binary sent by last node.

What is the error message (if any)?

Provided parameter is not a string or binary data object.

Specify the property name of the binary data in input item or use an expression to access the binary data in previous nodes, e.g. “{{ $(_target_node_).item.binary[_binary_property_name_] }}”

Please share your workflow

Share the output returned by the last node

NodeApiError: Provided parameter is not a string or binary data object. at RoutingNode.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/routing-node.ts:258:11) at processTicksAndRejections (node:internal/process/task_queues:105:5) at ExecuteContext.versionedNodeType.execute (/usr/local/lib/node_modules/n8n/src/node-types.ts:60:18) at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1093:8) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1274:11) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1699:27 at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2315:1

Information on your n8n setup

  • n8n version: 1.116.2
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • Operating system: Debian/Win11

When uploading a file to Sharepoint, you don’t have to use JS expressions – it requires the name of input field only(refer to image).

For default, binary data is put in a field called ‘data’. That’s why the the placeholder suggests data. But you are also able to change the field name. Here is an example:

1 Like

Hello @Mookie_Lian

Many many thanks !

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.