- 4 Minutes to read
- Print
- DarkLight
- PDF
Action Rivers FAQ
- 4 Minutes to read
- Print
- DarkLight
- PDF
Introduction
This FAQ is designed to help users troubleshoot and configure their REST connectors and actions in a structured way.
# Technical FAQ
1. How can I retrieve all the data in the data
array from a REST connector response?
To retrieve all the data from the data
array in your REST connector response, you should access the array directly by referencing response.data
. This will allow you to loop through and process each object contained in the array.
2. What are date variables in a REST API?
Date variables in a REST API can be used to pass dynamic dates as parameters in API requests. These variables can be used to specify time ranges or specific dates for filtering or retrieving data.
3. How do I update the date in a REST source?
To update the date in a REST source, you can modify the API request parameters to include the desired date. This can be done by setting the date field in the request payload or as a query parameter, depending on the API's structure.
4. How does the "Exit the process if got the value" feature work?
The "Exit the process if got the value" feature is designed to stop a running process if a specific value or condition is met. This can help optimize the process flow by preventing further execution once the desired result is achieved.
5. How can I enable retry for a REST action river?
To enable retries for a REST action in a river, you can configure retry settings in the action's configuration panel. Typically, you'll define the number of retries and set conditions under which retries should occur (e.g., for specific HTTP status codes).
6. What does the error RVR-LOGIC-400: Action process failed
mean?
This error occurs when there is an issue with populating variables during a REST action execution. The specific message Could not find variable: connection.console_region
indicates that a required variable was not found or properly configured.
7. What does the error RVR-NTS-RST-001: The response content type is not supported
mean?
This error indicates that the response from the API was not in the expected format. If the response was expected to be a list but returned something else, you may need to adjust the API request or configure how the response is handled.
8. What is "Replace Invalid Characters for Target Tables/Columns Names"?
This is a feature that automatically replaces characters in table or column names that are not valid for the target database or data destination. It ensures that the names are compatible with the database's naming conventions.
9. How can I configure the header to send the API access key and secret in a custom REST action?
To send the API access key and secret in the headers, you need to correctly configure the headers in the REST action setup. Ensure that the header names and values match the API’s requirements, typically using Authorization
or custom header fields like x-api-key
.
10. How do I create a connection for an API that is not listed?
For APIs not listed in the available connectors, you can use a custom REST connector. This allows you to manually configure the API’s base URL, authentication, and endpoints to interact with the API as needed.
11. Is there a way to dynamically get yesterday's date as a variable to use in a REST action API call?
Yes, you can dynamically generate yesterday's date using a date function or expression in the API parameters. Most systems allow for date manipulation, such as subtracting one day from the current date to get yesterday’s value.
12. Can a customer add a time period to the run river
API?
Yes, it is possible to add a time period to the run river
API by including the desired time range as a parameter in the API request. This allows for greater control over the data retrieval or processing period.
13. What is the syntax for headers location in a REST API action?
The headers location in a REST API action can typically be specified in the request configuration under the "Headers" section. Headers are defined as key-value pairs, where the key is the header name (e.g., Authorization
) and the value is the corresponding data.
14. Does using the data location field in a REST API affect performance?
Yes, using the data location field can influence the performance of a REST API request. Specifying the correct data location can streamline data retrieval, while incorrect or inefficient configurations may lead to slower processing times.
15. How do I work with a dynamic date range in a REST API?
To work with dynamic date ranges, you can set date parameters that change based on a certain logic (e.g., start_date
and end_date
that adjust automatically to the current week, month, or a custom time period). This is often achieved through expressions or variables.
16. What is a dynamic date range?
A dynamic date range refers to a period of time that adjusts automatically based on the current date or a specific calculation. For example, it could represent "the last 7 days" or "the current month" without needing manual input.