Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Using In Operator on Reporting Select Tab Creates T-SQL Syntax Error

(0) ShareShare
ReportReport
Posted on by 85

I'm running DSL 2011 with Feature Pack 1.

After migrating, we're having a problem with our SSRS based reports. When we try to use the IN operator on the Select Tab, it creates invalid SQL by adding extra single quotes around the parenthesis and the values.

E.g., when the query should be some.field IN ('test'), it is some.field IN '(''test'')' instead, which is invalid SQL. This causes System Message 6201, Error 56018 ... "Incorrect syntax near '('test')'.

Anyone else seen this? Is there any way for me to fix it?

Thanks

*This post is locked for comments

  • Kathryn Warner Profile Picture
    on at
    RE: Using In Operator on Reporting Select Tab Creates T-SQL Syntax Error

    I too am getting this error.  Will they ever address this bug? 

    I am trying to move several SSRS reports into SL.  It seems SL cannot handle the most basic of  SSRS reports.  Is there a guide that states exactly what SL can handle in SSRS? 

  • Community Member Profile Picture
    on at
    RE: Using In Operator on Reporting Select Tab Creates T-SQL Syntax Error

    Hello... is there any hotfix for this bug?

  • dnewman Profile Picture
    85 on at
    Re: Using In Operator on Reporting Select Tab Creates T-SQL Syntax Error

    How do I track the status of the bug?  We are having to get all "creative" to reproduce our typical IN operator needs... Users love the IN operator :-)  

  • Adam Leonard Profile Picture
    2,151 on at
    Re: Using In Operator on Reporting Select Tab Creates T-SQL Syntax Error

    Hi,

    I've tested and duplicated this on the standard GL Trial Balance report and I was able to duplicate the issue.  I've written up bug 25034 to address.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans