Its generally not a good idea. Even the water parameters needed for those fish varies a lot, amazon fish = acidic side and african fish = alkaline side.
But ive been able to ( and some others ) mix frontosas with rays . Just dont expect your fronts to breed.