web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error running SSRS report after adding a datasource under SysQuery form on report parameter form using Select button

(0) ShareShare
ReportReport
Posted on by 11,633

When trying to run Accrued purchases report in AX 2012, I modified SysQuery by clicking on Select button and then adding a datasource by right clicking on the table and selecting 1:n option. After doing this, I am unable to run the report and continuously getting the below error:

Cannot select a record in Purchase orders (PurchTable).

The SQL database has issued an error.

SQL error description: [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string.

SQL statement:

I tried everything to resolve this issue, but no luck. When I set the Dynamic filter for the datasource to False in Visual Studio and redeploy the report, the report runs fine. So I suspect adding the datasource under SysQuery form produced this issue. I am trying to remove the datasource I added, but each time I open the SysQuery form using Select button, the datasource is showing there. I also deleted the record from SRSReportQuery table and delete, redeploy the report, cleared cache but still I am getting this error.

Can anyone please let me know how to resolve this error?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Please let us know which table you are selecting while adding table through 1:n relation..

    I think there is some relation issue with the selected table and PurchTable.

    Please verify and update with more details

  • syed baber Profile Picture
    11,633 on at

    Hi Nitesh,

    See the below image:

    As you can see I'd added PurchLine data source under PurchTable datasource, but I don't want this now. I want to remove this and revert back to default. When I right click, delete the datasource, it disappears but when I open the SysQuery form again, I can see the same datasource again. Please tell me how to remove this modification from SysQuery form and revert back to the original SysQuery.

  • Verified answer
    syed baber Profile Picture
    11,633 on at

    Hi,

    I managed to resolve the issue by clearing the usage data, delete records from SRSReportQuery table, restart AOS, restart SQL server reporting services.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans