Drop the pan ...
They are both Identical and right next to each other toward the back
Disconnect the wire clips then the Clips that hold the solenoids in.
Pull out the solenoids slowly as One is spring loaded but Slow is the key !!! you cannot screw up if you take your time and Pull them out SLOW...
Replace the retaining clips , .. Wires and pan If you have not done this before, have a transmission shop do it the sometime you service the transmission and replace the boost valve also which is around $45.00. The boost valve controls the amount of transmission line pressure. A worn boost valve will have a lower transmission line pressure which will promote in transmission failure. I Would take the Sonoma to another transmission shop and have them scan the ECM for any DTC codes related to the transmission, the extra labor to replacing the solenoid and boost valve is around an extra 10 min so it should only coast you around $120.00 plus parts for this repair. Good luck and keep me posted.
Also note that many problems that show up as transmission issues are actually PCM or electrical, and may be external to the transmission. Try a different PCM, and check for chafing where the cables come out of the PCM. Secondly, put a line pressure gauge ($55 shipped on Ebay, or visit a local trans shop) on the pressure test port and go for a drive to verify proper line pressure. Base pressure at idle in P,N,OD should be around 70psi and around 140psi in R. Max line pressure should be at least 190psi at WOT in 1st or 2nd, 225psi is optimum. If base pressure is low, trans or pump is worn out. If max pressure is low, check EPC solenoid. If reverse is slow to engage, and line pressure does not come up to at least 130psi in reverse, replace the boost valve with a Transgo 0.500" boost valve (easy fix in pan).
1-2 shift does not happen at WOT until you let off the gas: Best case: try replacing the TPS. Middle case: leak in the 2nd gear apply circuit (servo assembly or 1-2 accumulator). Double check by using the pressure gauge and watch for a big drop when the PCM commands 2nd gear. Worst case: poor line pressure rise.
1-2 Shift shudder at WOT; delayed or abnormal 1-2 shift; There's a problem ONLY on the 1-2 shift: 1-2 accumulator piston cracked or stuck cocked in the bore. Check the yellow spring inside the accum housing for breakage. Also, if the accumulator housing walls are scored, the housing must be replaced. Easy fix in the pan.
1-2 shift is delayed and harsh, may not shift into OD: Check TPS for smooth and linear electrical response over the entire range of motion. If not, replace.
Trans shifts into gear harshly, car feels sluggish off the line, No 1st, 4th or TCC lockup available, Manual 2nd, 3rd and Reverse are only available gears, CEL is on: Transmission is either in limp-home mode or has lost electrical power. If there are lots of error codes in the PCM, check the underhood fuse that powers the transmission, and if it pops again, look for a short in that circuit like an O2 sensor harness touching exhaust. Otherwise, check PCM codes for a particular fault in the transmission causing the PCM to put it in limp-home mode.
No 1st or 4th available; trans shifts 2nd to 3rd by itself in D or OD and locks the converter : ShiftA solenoid failed. Easy fix in the pan. Or a wiring problem from PCM to trans.. or PCM.
Car goes into gear but feels very sluggish like the brakes are dragging, but it will roll easily (starts out in 4th gear), you manually shift to 2 to get it moving, once it's moving you put it back in OD and the car shifts 3rd to 4th on its own and locks the converter at the appropriate time: ShiftB solenoid failed: Easy fix in the pan. Or a wiring problem from PCM to trans.. or PCM
Transmission does not shift automatically, only manually. Swap in a known-good PCM, check wiring, check other sensors such as VSS and TPS.