Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Item Number Modifier SQL Error

Posted on by Microsoft Employee

Hello, I am trying to modify an item number for the first time, using the Item Number Modifier in the Professional Services Tools Library. After entering the old and new item codes and hitting convert, I get the following two error messages:

[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'transfer'.

The stored procedure smItemChange1 returned the following results: DBMS: 102, Microsoft Dynamics GP: 0.


Any ideas on what is going wrong or where to investigate? Thanks in advance!

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Item Number Modifier SQL Error

    Oddly enough, I was able to change something through the Item Description Modifier, but using the Item Number Combiner gave a similar error to the one I got for the Item Number Modifier.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Item Number Modifier SQL Error

    Just tried running GP as administrator, got the same results/error.

  • Suggested answer
    Redbeard Profile Picture
    Redbeard 12,931 on at
    RE: Item Number Modifier SQL Error

    Have you tried running Dynamics GP with elevated privileges? Try running GP as Administrator, when running PSTL.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Item Number Modifier SQL Error

    Hi Bill and Harry, thanks so much for your help so far. I set DYNSA to be the owner of all GP databases, and it didn't make a difference. I tested all of this while logged into the server itself as an admin, so I think that should have solved any rights issues, but it didn't. Not sure where to go from here, very puzzled.

  • Bill Campbell Profile Picture
    Bill Campbell 22,647 on at
    RE: Item Number Modifier SQL Error

    Funny how that works - in so many cases - and your scenario fits the bill - it often comes down to simple or not so simple security permissions.

    Your explanation makes complete sense - thanks.

  • Suggested answer
    Redbeard Profile Picture
    Redbeard 12,931 on at
    RE: Item Number Modifier SQL Error

    Bill -

    You are right, SA cures most ills with security issues, but since Krist was using PSTL, I assumed he was logged in as SA.  It is a bummer the fix in the KB article didn't resolve the issue, but Krist pointed out SA was the owner of the database. This is not typical, and may cause other problems - see the DYNSA section of this post.

    jpdavey.blogspot.com/.../sa-dynsa-and-poweruser-in-dynamics-gp.html

    I can't say I've seen this exact problem before, but I will go out on a limb here, and make a recommendation.  Let's say there was a PSTL process that did not use SQL, like writing a file to a Temp folder on the server, and the user account logged into the network did not have access to the drive...  

    This could result in the same type of error, even with the SQL SA user access. Like trying to write a backup file to the server as SA when the Domain User does not having write access to the folder. Krist, if you are not the Domain Admin, and don't have elevated access to the server drives, you may want to coordinate such access with the Domain Admin. If you are, check to make sure permissions are being inherited properly, and whether or not you've got an auto delete set up on the temp folder, etc.

    You should also get the DYNSA user set to be the owner of all GP Databases.

  • Bill Campbell Profile Picture
    Bill Campbell 22,647 on at
    RE: Item Number Modifier SQL Error

    Harry, based on the fact that the user is connected to GP Utilities as SA would that still hold?  Could it be TEMPDB that is the problem?

    If stop / start does not clear the TEMPDB what else will?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Item Number Modifier SQL Error

    Hi Bill, I am logged in as sa for all of these operations.

  • Suggested answer
    Bill Campbell Profile Picture
    Bill Campbell 22,647 on at
    RE: Item Number Modifier SQL Error

    Krist416 what user are you logged into GP as at this time?  As Harry points out it is likely access / security permissions issue.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Item Number Modifier SQL Error

    Hi Harry, thanks for the tip. I followed the suggestion in the link to stop and start the SQL Server service, but I still get the same error. I also came across this article (https://community.dynamics.com/gp/f/32/p/59253/301245.aspx) referencing error "DBMS: 102". So I tried setting synchronize=TRUE in dex.ini and that had no effect. I looked at the owners of the databases, it's set to sa and attempting to change it to dynsa gives the message that dynsa is already a member or alias in the database. I looked at dexsql.log and didn't see any recent error messages. So now I'm stumped, any other ideas on what could be going wrong?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans