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

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

RMS Issue with SQL Collation when importing a .csv file into a Physical Inventory

(0) ShareShare
ReportReport
Posted on by

Hi there, hoping someone can give me a hand with this particularly time-sensitive problem. We completed inventory tonight, but are having difficulties uploading the csv files created when scanning product off-site. 

We scan our offsite inventory onto a handheld scanner, using the 2B-Inventory software. This particular piece of software has always given me problems. 

We were unable to sync it properly this time, so I exported the scanned files as .csv, copied them onto my PC, and then tried to import them into their relevant inventory files. Whenever I try to import, I get the following error message. 
Error=#-2147217900
Cannot resolve the collation conflict between 'Latin1_General_CI_As' and 'SQL_Latin1_General_CP1_CI_AI' in the equal to operation.
(Source: Microsoft OLE DB Provider for SQL Server)
(SQL State: 42000)
(NativeError: 468)
No Help file available.
UPDATE [##ST_Validation_1]
SET ImportStatus = 3
. ItemID = Item.ID
FROM Item INNER JOIN [##ST_Validation_1] ON Item.ItemLookupCode = [##ST_Validation_1].ItemLookupCode
When I investigate my Database collation, I discover that the Server Collation is Latin1_General_CI_AS, while the Database collation is SQL_Latin1_General_CP1_CI_AI
If I run a query on the various tables to see if they're all on the same database, I discover that they're not, but I'm not sure if that's part of the functionality of the program (I'm running the ComicSuite extension on my RMS).
I have no idea if the problem is that the Database and Server are not the same, but I've tried to make them the same (by going to Database --> Change Collation in SO Administrator), and I immediately start getting an error that I can't connect to the database, and then I have to restore my backup to get it to work again, so obviously, that's not working.
Any help you could give me, would be greatly appreciated. Thanks!

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: RMS Issue with SQL Collation when importing a .csv file into a Physical Inventory

    Thanks for the suggestions, folks! The problem is solved!

    I'm posting my actions here for people who suffer from this error in the future:

    Microsoft RMS must use the database collation SQL_Latin1_General_CP1_CI_AI. This collation conflict error will come up when importing a temporary database. The only way I found to fix it is to reinstall SQL Server.

    First I detached my database from the server in SQL Management Studio by right-clicking on the database in question, selecting Tasks, then then Detach.

    Next, I uninstalled SQL Server.

    Then I reinstalled SQL Server. When I got to the language option, I chose SQL, and then "Dictionary Order, Case Insensitive, Accent Insensitive, 1252 Character set"

    To test to make sure I got the right collation, I ran a query in SQL Management Studio: select serverproperty('collation')

    I reattached the database by right-clicking on Databases, and selecting Attach. I clicked on "Add Location" and selected the <Database>_Data.mdf file.

    Then, I opened Store Operations Administrator and connected to my database, and voila! I was able to import Inventory .csv files just fine through the Physical Inventory window in my Store Operations Manager.

    I did have one final problem, when I went to backup the database upon closing Store Operations Manager. I got an error that I couldn't backup the database. This is because I hadn't given SQL permission to write to the computer I was using.

    So, I went into Windows Services, located SQL Server (MSSQLSERVER) in the list, right-clicked, selected Properties, and then went to the Log On tab. I made sure that I checked the boxes for Local System Account, and Allow service to interact with desktop.

    Now everything is running smoothly!

  • Verified answer
    Community Member Profile Picture
    on at
    RE: RMS Issue with SQL Collation when importing a .csv file into a Physical Inventory

    Hi,

    The server and database collation must be the same to avoid further complications.

    You either need to change the collation to SQL_Latin1_General_CP1_CI_AI or reinstall the SQL Server and change the collation there.

    Changing collation using scripts is kind a tedious.  So I prefer to reinstall the SQL Server but that's just me =)

    Hope this helps.

    Hotrod

  • Community Member Profile Picture
    on at
    RE: RMS Issue with SQL Collation when importing a .csv file into a Physical Inventory

    Thanks, Archelle,

    Unfortunately, I got this error:

    An error occurred while executing query:

    Incorrect syntax near '='.

  • Suggested answer
    archelle16 Profile Picture
    1,743 on at
    RE: RMS Issue with SQL Collation when importing a .csv file into a Physical Inventory

    Could you try this instead?

    UPDATE [##ST_Validation_1]

    SET ImportStatus = 3

    , ItemID = Item.ID

    FROM Item

    INNER JOIN [##ST_Validation_1] ON Item.ItemLookupCode COLLATE DATABASE_DEFAULT = [##ST_Validation_1].ItemLookupCode COLLATE DATABASE_DEFAULT

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans