Before note 2116991, program UJA_REFRESH_DIM_CACHE can only refresh cache tables, not rebuilding. If cache tables is corrupted or missing, you may need to delete and rebuild them through ABAP backend.(See internal note 2008285)
Now, UJA_REFRESH_DIM_CACHE can rebuild the cache tables by implementing 2116991.(BPC 10.X)
Best regards,
Chuan