Dataiku DSS icon

Dataiku DSS

Use the Dataiku DSS API

Actions364

Overview

This node integrates with the Dataiku DSS API, allowing users to perform a wide range of operations on various Dataiku DSS resources. Specifically for the Library resource and the Delete File operation, it enables deleting a file from a project's library by specifying the project key and the file path.

Common scenarios where this node is beneficial include automating the management of files within Dataiku DSS project libraries, such as cleaning up obsolete or temporary files programmatically as part of data workflows or project maintenance tasks.

For example, you can use this node to delete a script or configuration file from a Dataiku DSS project library after it has been processed or replaced, ensuring the project environment stays clean and up-to-date.

Properties

Name Meaning
Project Key The unique identifier of the Dataiku DSS project containing the library file to delete.
Path The relative path of the file within the project's library that should be deleted.

Output

The output of the node is a JSON array containing the response from the Dataiku DSS API after attempting to delete the specified file. Typically, for a successful delete operation, the API returns a status indicating success (e.g., HTTP 204 No Content). If the deletion fails, the output will contain error details.

No binary data output is produced by this operation.

Example output on success:

[
  {
    "Status Code": "204 No Content"
  }
]

Dependencies

  • Requires an active connection to a Dataiku DSS instance.
  • Requires valid API credentials (an API key) for authentication with the Dataiku DSS API.
  • The node expects the Dataiku DSS server URL and user API key to be configured in the credentials.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that the Dataiku DSS API credentials are properly set up in n8n.
  • Project Key or Path Missing: The node requires both the project key and the file path to be provided. Omitting either will cause an error.
  • File Not Found: If the specified file path does not exist in the project library, the API may return a 404 error.
  • Permission Issues: Ensure the API key used has sufficient permissions to delete files in the target project.
  • Network or Server Errors: Check connectivity to the Dataiku DSS server and verify the server is reachable.

Links and References

Discussion