A tasting room’s inventory has to agree in two places: on the shelves, and in the platform that sells the wine. At this winery a Google Sheet does the comparing. Staff count every bottle by shelf location, a script pulls each wine’s available-for-sale number from Commerce7, the winery sales platform, and the difference shows up in one column.
In August 2024 the pull stopped working, and the developer who had built that connection was unavailable. The owner sent this:
“hey could you look at a script you helped edit for me, Tab Commerce7> download product and inventory, error code “TypeError: Cannot read properties of undefined (reading ‘sku’)” this script should access my pos Com7 and and update all of my product info on tab “Com7 SKUs” and then it updates the inventory info on tab “Com7 Inventory” Can you tell me if the error is in the google doc or my pos Commerce7”
Dan had helped edit that script years earlier, before Allen App Tools existed, which is why the email landed with us.
Two causes, found and fixed
The error had two separate causes. Commerce7’s API had started returning some products without variants, and the code assumed every product had them. And on August 1 the inventory tab had been renamed, so the script couldn’t finish its run. We made the code handle products without variants and stopped it from depending on one tab name. Five days after the first email it ran clean, and the owner wrote back, “This works great, thank you.”

Screens in this post are mockups with made-up names and numbers. The client’s real data stays private.
Then the platform changed its login
In December 2024, Commerce7 retired the old way outside tools signed in. The owner pasted us the new error: “Basic authentication is discontinued. Create a public or private app instead.” We moved the connection to app credentials and added automatic retries, because the same change also lowered how many requests outside tools could make. It was fixed within a day: “Awesome, this is great, thank you for the help”.

The paperwork around the wine
Along the way we tightened the sheets around shipping and the monthly count. Bills of lading used to be saved as PDF snapshots. Now the Record button creates each one as an editable Google Doc, filed in the right folder. For the monthly bottle count, a trimmed product download fills in each wine’s alcohol bracket and bottles per case straight from Commerce7.

What the owner says it did
This is a rescue story, and the numbers say so honestly: asked how long a bill of lading takes, the owner gave the same answer for before and after. The win was getting a broken system running again fast, twice, by people who could read both the code and the platform’s changes and fix the actual cause. In the owner’s own note on our results form: “Clean quick work, We were up and running in a few days.”

Integrations break from the outside
Two of the three causes came from the platform itself: an API that changed what it returns, and later a retired login method. The third was a renamed tab, the kind of everyday change any team makes. That’s normal. Any connection between two systems needs a hand now and then, which is why we keep upkeep simple and hourly, and why it pays to have someone who already knows your setup. If your sheets talk to a sales platform through a script nobody on staff can read, this post on being the integration yourself is worth five minutes, and so is the one on inventory that lives in one spreadsheet.

Dealing with something like this?
Got it. You'll get an email back.
