c# - Amazon Feed API - The file's header row is missing or invalid -
I am trying to submit a flat file filled with products (tab delimited) if I upload media Uploading this file with & amp; Inventory page upload is correct though, if I try to use the API I get an error:
The file's header row is missing or invalid header row only uses Amazon And should not be modified or removed. To fix this error, then download the template again with vendor support and use that new copy, or insert the correct header row directly above the column headings in your existing file.
This sample code, feeds API stream client library - C #.
Submit Request Request = New Deposit (); request. Merchant = merchantId; request. Market placeIdlist = new irredist (); Request.MarketplaceIdList.Id = New list & lt; String & gt; (New string [] {marketplaceId}); Request.FeedContent = File.Open (@ "C: \ Amazon_Upload_20141104_10.txt", FileMode.Open, FileAccess.Read); Request.ContentMD5 = MarketplaceWebServiceClient.CalculateContentMD5 (request.FeedContent); Request.FeedContent.Position = 0; Request.FeedType = "_POST_FLAT_FILE_LISTINGS_DATA_"; SubmitFeedSample.InvokeSubmitFeed (service, request);
This will work through the web interface but why not through the API?
If someone else finds out that my problem was incorrect feed type
I should have _POST_FLAT_FILE_LISTINGS_DATA _
when should be _POST_FLAT_FILE_INVLOADER_DATA_
for list of feed types :
Comments
Post a Comment