Q.My Apricot Tree Is Oozing Yellow Stuff, Why?
Q. # 1: My appricot tree started oozing some yellow sticky stuff, about 3-4 years ago. What is it? I have tried 3 different things. It is getting worse. It flowers, but it never has fruit. It is about 8 years old.
Q. # 2: I was told 2 years ago I needed a male tree. I bought one, it died. Bought # 2, it died. Why? We have been flooded for the past 6 years. Eastern part of ND.

Certified GKH Gardening Expert
Sounds like your tree may be infected by peach tree borers, which also affect apricot trees. Here is an article that you may find helpful: https://www.gardeningknowhow.com/edible/fruits/peach/peach-tree-borer.htm
Also, you don't need a male tree. Apricots can self pollinate, though having more than one tree does increase its chances for fruiting. This article will help with non-fruiting issues: https://www.gardeningknowhow.com/edible/fruits/apricots/apricot-tree-not-fruiting.htm
I would also have the soil in that area tested. For the trees to die like that or not be healthy, there could be something in the soil, or missing from it, that is affecting the overall health and growth of your trees.