Adobe Experience Platform Execute
In this article
Overview
Use the Adobe Experience Platform Execute Snap to execute queries, this includes selecting and joining data across datasets. You can query the Data Lake via SQL-like statements using the query service.
Prerequisites
- Valid client ID.
- The SQL Statement you want to execute.
Support for Ultra Pipelines
Works in Ultra Pipelines.
Limitations
None.
Known Issues
None.
Snap Input and Output
Input/Output | Type of View | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
|
| Ensure to provide input, which is the SQL statement to execute query. |
Output | Document |
|
| The output document contains the SQL query execution result. |
Snap Settings
Parameter Name | Data Type | Description | Default Value | Example |
---|---|---|---|---|
Label | String | Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline. | Adobe Experience Platform Execute | Adobe Experience Platform Execute_23 |
SQL Statement | String | Enter the SQL queries to execute in the Adobe Experience Platform. See SQL overviewformore information on writing the queries for Adobe Experience Platform | N/A | SELECT employeedataset._snaplogicinc.employeeid AS EmployeeID, employeedataset._snaplogicinc.ename AS EmployeeName, employeedataset._snaplogicinc.esalary AS EmployeeSalary, employeedataset._snaplogicinc.deptid AS DepartmenttID, departmentdataset._snaplogicinc.Dname AS DepartmentName, departmentdataset._snaplogicinc.Dlocation AS DepartmentLocation FROM employeedataset INNER JOIN departmentdataset ON employeedataset._snaplogicinc.deptid = departmentdataset._snaplogicinc.deptid ORDER BY 1 |
Snap Execution | Drop-down list | Select one of the three following modes in which the Snap executes:
| Execute only | Validate and Execute |
Troubleshooting
Error | Reason | Resolution |
---|---|---|
Please check query | The SQL query entered in the Query field is not valid. | Ensure that the query in the SQL Statement field is valid” or something like this. |
Examples
Obtain Employee Details
This example demonstrates the process to retrieve employee details from Employee Data Set table using Adobe Experience Execute Snap. Use Mapper Snap to transform incoming data and send the output to JSON Formatter Snap to read the document and write the JSON binary data to output. Finally, use File Write Snap to write JSON file output to an end point.
In this example, we will execute a SQL query to retrieve employee data through Adobe Experience Execute Snap.
First, provide inputs to the Adobe Experience Platform Execute Snap Settings fields. You will retrieve the data on the basis of the given SQL Statement on running the Pipeline.
AEP Query Snap | Output |
---|---|
Now, we connect Mapper Snap to transform incoming data for mapping and transfer the output to JSON Formatter Snap.
Mapper | Output |
---|---|
In the next step, we connect JSON Formatter Snap to read JSON document data from Mapper Snap, and formats and writes it as JSON binary data to its output view.
JSON Formatter |
---|
Finally, we connect File Writer Snap to the Pipeline to write JSON file output to an end point. Enter a name in the File name field and run the Pipeline. You will find a JSON file with a record of employee details.
File Writer | Output |
---|---|
Downloads
Important Steps to Successfully Reuse Pipelines
- Download and import the Pipeline into SnapLogic.
- Configure Snap accounts as applicable.
- Provide Pipeline parameters as applicable.
Snap Pack History
See Also
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.