How to Create an Amazon Order Rerun File
Situation: your Amazon AMTU order file contains items that are not properly referenced in the item master. That amazon request will fail to generate a Venture sales order and complain loudly to the Venture admin via email.
Usually the problem is easily identified — maybe an assembly or new item that your merchandising manager neglected to create in Venture. Amazon errors are usually pretty good and point you right to the problem.
Once the problem is fixed, you can regenerate an Amazon order file and run it again to save the energy and errors associated with hand keying orders. Here’s how:
How to Create an Amazon Order Rerun File
venture-scripts/amazon/mk_order_rerun_file
For parameters, it takes the amazon order file name and one or more amazon
order IDs. For example, for the latest rerun batch I used this command line:
venture-scripts/amazon/mk_order_rerun_file ORDER380643853.txt 104-9147014-4205555
I could have added more order IDs if there had been additional errors. When
the program finished it will display instructions on how to proceed. From
the example run:
Rerun file ‘rerun/RERUN380643853.txt’ has been created. To edit this
file run:
cd /usr/local/amtu/DocumentTransport/production/reports
vi rerun/RERUN380643853.txt
When errors have been corrected perform the following steps as user
‘venture’ to process the order(s):
cd /usr/local/amtu/DocumentTransport/production/reports
mv rerun/RERUN380643853.txt .
From this point, the normal Amazon AMTU process will pick up and process the order file.