Fixed TOOLS-2535.
App factory data sources query error is fixed.