Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

COUNT field incorrect or syntax error

(0) ShareShare
ReportReport
Posted on by

Good day, I am encountering the issue COUNT field incorrect or syntax error whenever I try to release products. The Form is customized but after debugging using AX debugger there are no errors that occurs because of the code, and it only happens on specific items which has many product variants. 

Cannot select a record in <Cannot disclose the table name> Reference 0,0. The SQL database has issued an error.
SQL Error Description: [Microsoft][SQL Server Native Client 11.0]Count field incorrect or syntax error.

Is anyone familiar with this kind of issue? Any advise would be greatly appreciated.

  • Dean Stegmiller Profile Picture
    on at
    RE: COUNT field incorrect or syntax error

    Hi Charos,

    Were you able to figure this out?  If so, please document the fix so if others encounter this it might help them resolve their issue.

    Thanks

  • Martin Dráb Profile Picture
    232,871 Most Valuable Professional on at
    RE: COUNT field incorrect or syntax error

    What exactly do you mean by the end of init()? Isn't there a CoC method or a post-method event handler? And are you sure it's not something executed after init(), such as in run()?

    I would start by checking the exception object in the debugger and examining its StackTrace property.

  • Community Member Profile Picture
    on at
    RE: COUNT field incorrect or syntax error

    Hello good day,

    The error occurs on the end of the method "init" in SysSetupFormRun class. There is no specific line of code which triggers the error message.

  • Martin Dráb Profile Picture
    232,871 Most Valuable Professional on at
    RE: COUNT field incorrect or syntax error

    Where exactly is the error thrown from?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,127 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans