Skip to main content
Question

Error when trying to populate the datasource.

  • March 11, 2026
  • 3 replies
  • 27 views

Forum|alt.badge.img+7

Hello,

 

I'm converting my Crystal Reports to DevExpress. 

In DevExpress Report Designer my report is working well. I get a fine preview report. But when I put the report into the SF (changing the report type en uploading the .rpex file) and trying it in the windows GUI i get the next message:

Error when trying to populate the datasource. The following exception was thrown: 
Query xxxxxx failed to execute.

The query is correct. I have tried it in the SSMS also and no errors.

What can be the problem here. Other reports went well and I have to convert more reports.

The full message is:

Error when trying to populate the datasource. The following exception was thrown: 
Query xxxxx failed to execute.

Stack trace:
   bij Thinkwise.Reporting.DX.DevExpressReportExecuter.RunDevExpressReportCommandInChildProcess(DevExpressReportCommand devExpressReportCommand, Stream exportStream)
   bij Thinkwise.Reporting.DX.DevExpressReportExecuter.PrintPreview(TSFReportView report, String reportFilePath, Boolean isMandatory, IApplicationLogicConnection connection, TaskReportParameterRow paramRow)
   bij Thinkwise.TSFComponents.TaskReport.PrintPreviewReportInvocation.EndInvoke()
   bij Thinkwise.Shared.AsyncUtils.<>c__DisplayClass1_0.<Invoke>b__0(Object x)
   bij Thinkwise.Shared.AsyncUtils.Invoke(SynchronizationContext sc, Action action)
   bij Thinkwise.TSFComponents.TaskReport.TaskProgressWorker.backGroundWorker_DoWork(Object sender, DoWorkEventArgs e)

 

3 replies

Forum|alt.badge.img+2
  • Moderator
  • March 11, 2026

Hello Marco,


It is difficult to know what is actually causing that error, especially as you are using the windows 2 tier gui. (which is end of life)

A question that comes to mind though:
The credentials used for the report is the same as the user that is logged in, not the one that is present in the report.
Can you verify if that user has rights to that specific table?


 


Forum|alt.badge.img+7
  • Author
  • Sidekick
  • March 11, 2026

As far as i know they are the same. But when not i am very sure that both have enough rights. I already have made other reports and they go smoothly. I will try to use the same user for both and will put the result as reply.

Thanks so far.

Marco


Forum|alt.badge.img+7
  • Author
  • Sidekick
  • March 11, 2026

No. It is with the same windows account. And still got the error message.