Our map reduce script fulfills our orders every da...
# suitescript
s
Our map reduce script fulfills our orders every day. Recently, we have had a strange bug, even though the order fulfills, we get an error message even though we have the available qty
Copy code
error that we received:   message: "You can not over-fulfill an item unless you have selected the 'Allow Overage on Item Fulfillments' preference.",
let salerodernumber = data.id;
      try {
        fulfillmentRecord.save();
      } catch (error) {
        let message = error.message;

        let errodata = {
          message: error.message,
          info: shipid,
          address: address.shipaddress1,
          phone: address.phone,
        };
        log.debug({
          title: "create error",
          details: { salerodernumber, message, errodata },
        });
b
sounds like you are fulfilling the order twice, with one attempt succeeding and one failing
s
yes, i forgot to update this thread .