Dataiku DSS icon

Dataiku DSS

Use the Dataiku DSS API

Actions364

Overview

The "Run Macro" operation of the Dataiku DSS node allows users to start a run of a macro within a specified project on a Dataiku DSS instance via its API. This operation is useful for automating and orchestrating complex workflows or repetitive tasks defined as macros in Dataiku DSS projects.

Typical use cases include:

  • Triggering data processing or transformation macros programmatically.
  • Integrating Dataiku DSS macros into larger automation pipelines.
  • Running parameterized macros with custom query parameters.

For example, a user might want to run a macro that refreshes datasets or triggers a sequence of recipes in a project automatically from an n8n workflow.

Properties

Name Meaning
Project Key The unique identifier of the Dataiku DSS project where the macro resides.
Runnable Type The type/category of the runnable macro (e.g., macro).
Query Parameters Optional key-value pairs to pass as query parameters when running the macro.
Request Body JSON object representing the request body payload sent with the macro run request.

Output

The output of the "Run Macro" operation is the JSON response returned by the Dataiku DSS API after starting the macro run. This typically includes information about the initiated run, such as run ID, status, and metadata related to the macro execution.

If the API returns binary data (not typical for this operation), it would be provided as binary output, but for running macros, the output is JSON.

Dependencies

  • Requires a valid connection to a Dataiku DSS instance.
  • Requires an API authentication token credential for the Dataiku DSS API.
  • The node uses HTTP requests to communicate with the Dataiku DSS REST API endpoints.
  • Proper permissions on the Dataiku DSS project and macro are necessary to execute the macro.

Troubleshooting

  • Missing Credentials: If the API credentials are not set or invalid, the node will throw an error indicating missing or invalid credentials.
  • Missing Required Parameters: The node validates required parameters like Project Key, Runnable Type, and Run ID. Omitting these will cause errors.
  • API Errors: Errors returned by the Dataiku DSS API (e.g., unauthorized, not found, bad request) will be surfaced as node errors with descriptive messages.
  • Network Issues: Connectivity problems to the Dataiku DSS server will result in request failures.
  • Invalid Query Parameters or Request Body: Malformed JSON or unsupported parameters may cause the API to reject the request.

To resolve issues:

  • Ensure all required fields are correctly filled.
  • Verify API credentials and permissions.
  • Check network connectivity to the Dataiku DSS server.
  • Review the API documentation for correct usage of query parameters and request body.

Links and References


This summary focuses specifically on the "Macro" resource and the "Run Macro" operation as requested.

Discussion