shubham
07/25/2023, 10:03 AMtap-amazon-sp
? There is an option to provide a 'report_name' config. But when I run meltano select tap-amazon-sp --list --all
, I don't see the name of that report or it's tables anywhere. How do I fetch there reports (especially GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL
)?pat_nadolny
07/26/2023, 1:51 PMshubham
07/26/2023, 3:25 PMHotglue
variant. The default values that are specified are similar to GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL
. Do you know any way of fetching these reports via meltano?user
07/26/2023, 3:27 PMshubham
07/26/2023, 3:41 PMselect
extra, or all the tables available (in --list --all
) but not the report. @pat_nadolnyuser
07/26/2023, 3:46 PMuser
07/26/2023, 3:48 PMmeltano config tap-amazon-sp
to output your config to make sure it looks like you'd expectuser
07/26/2023, 3:48 PMshubham
07/26/2023, 4:05 PMversion: 1
default_environment: dev
project_id: a8c7383d-e8b6-465c-9be9-197f40e7955c
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-amazon-sp
variant: hotgluexyz
pip_url: git+<https://gitlab.com/hotglue/tap-amazon-seller.git>
config:
flattening_enabled: false
flattening_max_depth: 1
marketplaces:
- IN
processing_status:
- IN_QUEUE
- IN_PROGRESS
- DONE
report_types:
- GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL
role_arn: xxxxxx
sandbox: false
start_date: '2023-07-01T00:00:00.000000Z'
select:
# - orders.AmazonOrderId
# - orders.LastUpdateDate
# - orders.EarliestShipDate
# - orders.SalesChannel
# - orders.OrderStatus
# - orders.NumberOfItemsShipped
# - orders.OrderType
# - orders.IsPremiumOrder
# - orders.IsPrime
# - orders.FulfillmentChannel
# - orders.NumberOfItemsUnshipped
# - orders.HasRegulatedItems
# - orders.IsReplacementOrder
# - orders.IsSoldByAB
# - orders.LatestShipDate
# - orders.ShipServiceLevel
# - orders.MarketplaceId
# - orders.PurchaseDate
# - orders.SellerOrderId
# - orders.PaymentMethod
# - orders.IsBusinessOrder
# - orders.OrderTotal
# - orders.OrderTotal.*
# - orders.OrderTotal__CurrencyCode
# - orders.OrderTotal__Amount
# - orders.PaymentMethodDetails
# - orders.IsGlobalExpressEnabled
# - orders.LastUpdateDate
# - orders.ShipmentServiceLevelCategory
- orderitems.*
metadata:
'*':
key_properties: __null__
# schema:
# orderitems:
# AmazonOrderId:
# type: '["string", "null"]'
# OrderItems:
# type: '["array", "null"]'
# stream_maps:
# orders:
# __alias__: orders
# orderitems:
# __alias__: orderitems
user
07/26/2023, 4:54 PMselect:
- reports.*
It looks like the tap reads those report types in as a single reports
stream. I dont see that stream selected in your configurationshubham
07/26/2023, 6:09 PMtap_amazon_seller.utils.InvalidResponse: [{'code': 'Unauthorized', 'message': 'Access to requested resource is denied.', 'details': ''}]
which is strange as none of the other configs were changed and they work for other entities like orders, orderitems.
Anyways, I'll debug this and see if I get the report. Thanks for your response!