You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/spec_oss.json
+7
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,13 @@
205
205
}
206
206
}
207
207
}
208
+
},
209
+
"wait_to_avoid_fatal_errors": {
210
+
"title": "Wait between requests to avoid fatal statuses in reports",
211
+
"type": "boolean",
212
+
"description": "For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See <a href=\"https://docs.airbyte.com/integrations/sources/amazon-seller-partner#limitations--troubleshooting\" target=\"_blank\">Troubleshooting</a> section for more details",
Copy file name to clipboardExpand all lines: airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/spec.json
+7
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,13 @@
197
197
}
198
198
}
199
199
}
200
+
},
201
+
"wait_to_avoid_fatal_errors": {
202
+
"title": "Wait between requests to avoid fatal statuses in reports",
203
+
"type": "boolean",
204
+
"description": "For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See <a href=\"https://docs.airbyte.com/integrations/sources/amazon-seller-partner#limitations--troubleshooting\" target=\"_blank\">Troubleshooting</a> section for more details",
Copy file name to clipboardExpand all lines: docs/integrations/sources/amazon-seller-partner.md
+54-13
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,8 @@ To pass the check for Seller and Vendor accounts, you must have access to the [O
61
61
7. For `Start Date`, enter the date in `YYYY-MM-DD` format. The data added on and after this date will be replicated. This field is optional - if not provided or older than 2 years ago from today, the date 2 years ago from today will be used.
62
62
8. For `End Date`, enter the date in `YYYY-MM-DD` format. Any data after this date will not be replicated. This field is optional - if not provided, today's date will be used.
63
63
9. You can specify report options for each stream using **Report Options** section. Available options can be found in corresponding category [here](https://developer-docs.amazon.com/sp-api/docs/report-type-values).
64
-
10. Click `Set up source`.
64
+
10. For `Wait between requests to avoid fatal statuses in reports`, enable if you want to use wating time between requests to avoid fatal statuses in report based streams.
65
+
11. Click `Set up source`.
65
66
66
67
<!-- /env:cloud -->
67
68
@@ -76,7 +77,8 @@ To pass the check for Seller and Vendor accounts, you must have access to the [O
76
77
5. For Start Date, enter the date in YYYY-MM-DD format. The data added on and after this date will be replicated. This field is optional - if not provided, the date 2 years ago from today will be used.
77
78
6. For End Date, enter the date in YYYY-MM-DD format. Any data after this date will not be replicated. This field is optional - if not provided, today's date will be used.
78
79
7. You can specify report options for each stream using **Report Options** section. Available options can be found in corresponding category [here](https://developer-docs.amazon.com/sp-api/docs/report-type-values).
79
-
8. Click `Set up source`.
80
+
8. For `Wait between requests to avoid fatal statuses in reports`, enable if you want to use wating time between requests to avoid fatal statuses in report based streams.
81
+
9. Click `Set up source`.
80
82
81
83
<!-- /env:oss -->
82
84
@@ -171,24 +173,63 @@ Information about rate limits you may find [here](https://developer-docs.amazon.
171
173
|`array`|`array`|
172
174
|`object`|`object`|
173
175
176
+
## Limitations & Troubleshooting
177
+
178
+
### Failed to retrieve the report
179
+
180
+
```
181
+
Failed to retrieve the report 'YOUR_REPORT_NAME' for period 2024-01-01T12:01:15Z-2024-01-15T12:01:14Z.
182
+
This will be read during the next sync. Report ID: YOUR_REPORT_ID. Error: Failed to retrieve the report result document.
183
+
```
184
+
185
+
Requesting reports via Amazon Seller Partner API can lead to failed syncs with error above "Failed to retrieve the report...".
186
+
187
+
One of the reasons why users face this issue is that report requests were made too often.
188
+
189
+
**Solution 1:**
190
+
191
+
To overcome it you can force use sleeping between requests to avoid fatal statuses while requesting reports.
192
+
193
+
Steps:
194
+
1. Go to the Set Up page of the connector.
195
+
2. Open optional section.
196
+
3. Enable `Wait between requests to avoid fatal statuses in reports` toggle.
197
+
198
+
Disadvantages of this approach is that syncs with waiting between requests are much slower than without it. So it is better to create a separate connection only for stream that usually fails with "Failed to retrieve the report..." error. This will help you to avoid affecting streams that worked as expected.
199
+
200
+
:::note
201
+
202
+
For now the waiting logic only work for the following streams:
203
+
- GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL
204
+
- GET_AFN_INVENTORY_DATA
205
+
- GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA
206
+
207
+
:::
208
+
209
+
**Solution 2:**
210
+
211
+
Create a separate connection for streams which usually fail with error above "Failed to retrieve the report..." and disable sync of these streams in the first connection with streams which don't fail because of the error. Adjust the sync time of these two connection to do not overlap. It's recommended to have a time break between syncs in the connections.
| 4.3.6 | 2024-07-01 |[40590](https://github.com/airbytehq/airbyte/pull/40590)| Add log message when data only accessible to seller accounts, add report id in log message for fatal report status, add check for start date. |
| 4.3.6 | 2024-07-01 |[40590](https://github.com/airbytehq/airbyte/pull/40590)| Add log message when data only accessible to seller accounts, add report id in log message for fatal report status, add check for start date. |
| 4.3.2 | 2024-06-13 |[39441](https://github.com/airbytehq/airbyte/pull/39441)| Update state handling for incremental streams |
232
+
| 4.3.1 | 2024-06-04 |[38969](https://github.com/airbytehq/airbyte/pull/38969)|[autopull] Upgrade base image to v1.2.1 |
192
233
| 4.3.0 | 2024-05-24 |[#00000](https://github.com/airbytehq/airbyte/pull/00000)| Extend the report_options spec config with a `stream_name` attribute |
0 commit comments