SAN FRANCISCO -- The Arizona Diamondbacks were in trouble against the San Francisco Giants on Tuesday long before Andrew McCutchen's walk-off single off Jorge De La Rosa in the ninth inning gave the Giants a 5-4 win.
There was starter Patrick Corbin suddenly losing control in the sixth inning after being dominant through the first five.
Catcher Alex Avila's throw to second base in the eighth that skipped past Ketel Marte and allowed McCutchen to score a go-ahead run didn't help, either.
And an offense that has been so productive went so silent in key situations, stranding three runners in scoring position with one out and a fourth with two outs.
For a team that had been dominant through its first 10 games, this one had all sorts of strangeness.
Not even a tying home run by slugger Paul Goldschmidt in the top of the ninth -- his first of the season -- was enough to salvage the day.
"That's just the way the game is," D-backs interim manager Jerry Narron said. "To beat anybody you've got to keep guys off base with the middle of the order coming up, and we weren't able to do that."
Narron was filling in for suspended manager Torey Lovullo and was feeling pretty good about things before Corbin was knocked out of the game in the sixth inning after giving up three consecutive singles, two walks and a sacrifice fly.
Arizona rallied twice after that on back-to-back doubles by Jarrod Dyson and Marte in the seventh and Goldschmidt's home run in the ninth but couldn't hold on.
It didn't help that two of the team's top right-handed relievers weren't available. Archie Bradley, who got the save in Monday's game, and Yoshihisa Hirano had both pitched in back-to-back games and were given the night off.
That left Narron scrambling after Corbin left. Noel Salas retired five batters without allowing a run but Andrew Chafin and De La Rosa were tagged for one run apiece.
"We used guys that were available for us and tried to match them up the best we could," Narron said. "Just knowing where we were with the bullpen tonight it made it a little bit difficult."
De La Rosa hadn't pitched in a game since April 2 but declined to blame the lengthy layoff for his outing. The left-hander walked three of the first four hitters he faced (one intentional) before McCutchen's game-winning hit.
"I don't want to [use] excuses," De La Rosa said. "I just go out there and throw strikes and didn't do my job today."
MOMENTS THAT MATTERED
The throw that got away: The D-backs were on the verge of escaping the eighth without any damage when Avila's throw went off target and allowed McCutchen to score. San Francisco's Evan Longoria struck out as Buster Posey took off for second and Avila tried to go for the strikeout-throwout double play but missed his target.
"Just threw the ball a little-flat footed and it kind of slipped out of my hand," Avila said. "Made a terrible throw. Usually I'm pretty accurate. That's one of my strengths but I just didn't do it today."
Fast start, slow end: The D-backs got off to a strong start when A.J. Pollock doubled in Marte and Goldschmidt in the first inning but they managed only three hits after that until Goldschmidt's homer.
"To score two early in the game like that and then not being able to tack anything on until after they took the lead, that was kind of disappointing," Narron said.
SOUND SMART WITH YOUR FRIENDS
Avila's throwing error was a rarity. From 2010-17 the veteran catcher threw out 133 runners, second in the American League over that time.
MITEL REPLAY OF THE DAY
The Giants appeared to tack on a fourth run in the sixth inning when McCutchen slid into home plate and scored from second on Brandon Crawford's single to left. Narron appealed, however, and upon review the call was overturned. McCutchen's foot bounced in front of the plate and was in the air when he was tagged by Avila.
"I saw it [on video]," McCutchen said, "They replayed it like 10 times on the board. I tried really hard to keep my foot down, but I think it popped up that last little bit right when I got to the plate and that's when he applied the tag."
Robbie Ray (2-0, 5.73 ERA) pitches the finale of the three-game series at AT&T Park on Wednesday at 12:45 p.m. MST. Ray is coming off a strong start in St. Louis and is 9-1 in his last 16 appearances on the road.
Watch every out-of-market regular-season game live on MLB.TV.