You have created custom data provider with a query and other objects but when attempting to publish Data Provider in Clarity getting Error API-1019: Could not process the request due to internal error.
Clarity 16.4.0
Join between the query and an out of the box object is incorrect.
Join between the query and the object need to match, example Investment Key from Query to be joined with Investment Key from Investment object.