Documenting for future inquirers. I have a Yanmar 3JH4E with the Kanzaki KM35P gearbox (transmission if you prefer). The oil dipstick broke off at the threads with the threads left behind in the gearbox! Apparently this is a common occurrence because the parts guy said they send them out regularly. I puzzled over how to back the threads out when the replacement arrived. I found the start key had an ear shaped just right to wedge in the remaining threads and back them out. Be careful not to drop plastic bits into the gearbox. The replacement is part # YAN-177070-02450. The engine and gearbox codes up above will help you find a parts manual by web search.
Pics below.
Pics below.