PROBLEM
When two rasters are merged using the IRasterGeometryProc::Merge functionality, and the result is used as input to another operation, such as creating a raster of slope, the resulting slope raster is filled with NoData values.
The returned raster object from the IRasterGeometryProc::Merge operation only holds band pointers. This means the pixel values are not written to the output raster. When attempting to use the raster object, it is not yet available, and thus the slope operation attempts to get information from data that is not there.
Get help from ArcGIS experts
Download the Esri Support App