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 GP (Archived)

Sales Module Customer Cards and Apostrophe's in Names

(0) ShareShare
ReportReport
Posted on by 175

 We have some customers that have apostrophes in their names. And when we set up a customer card with the correct spelling the apostrophe and do a lookup/open on the card SQL Server can't perform the action becase the apostrophe was not escaped.

 

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'ULA'.

[Microsoft][ODBC SQL Server Driver][SQL Server]Unclosed quotation mark before the character string ') ORDER BY SOPNUMBE ASC ,SOPTYPE ASC '.

 

This, as far as I know, was not a problem for us in the past. We just upgraded to GP 10 from GP 9. I looked in customer source and saw 3 similar but not exact help topics. They pointed to GP admin/setup controls. However, upon clicking around in the administration settings I don't see an obvious solution to this.

 Is there a setup setting that needs to be turned on to handle this? Or, is the fix done somewhere else?

 

Surely GP 10 can handle apostrophe in customer cards. We don't want to escape them and then have the escape character show up in address labels, invoices, etc.

 

Thanks.

*This post is locked for comments

I have the same question (0)
  • Ron Draganowski Profile Picture
    1,575 on at

    I would be VERY surprised if this was a bug in GP.  It's more often a problem with 3rd party products or customizations added to the system. 

    In my early days of customizing GP (2000) when SQL Server was still a new thing with GP,  I too made this mistake of not replacing single quotes with 2 single quotes, which tells SQL Server to not freak out with the query, but with a little experience one learns to consistently use the REPLACE function whenever filtering by a string value. 

     The good folks at Great Plains (and subsequently Microsoft) learned this long before I, and don't usually make that mistake.  But other "wet behind the ears" developers still do.

    I would suggest checking to see if you have any Modifier/VBA customs installed (Microsoft Dynamcis GP>>Tools>>Customize>>Customization Maintenance).  If so, and if VBA is added to the window causing the error, one of those could be the culprit.  Otherwise, I would suggest disabling 3rd party products one by one using the Customization Status window (Microsoft Dynamcis GP>>Tools>>Customize>>Customization Status), testing after each disable, to see if you can find the issue.

     Also, check security to make sure that whatever window you're using is a Microsoft window, and not some third party product version of the window.

    Ron Draganowski
    Solution Services Practice Manager
    Olsen Thielen Technologies, Inc.
    St Paul, Minnesota
    rdrag@ottechnologies.com
    http://www.ottechnologies.com

    Find me on LinkedIn: http://www.linkedin.com/in/rondraganowski 

     

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 GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans