Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

Item Lookup Code must be unique issue

Posted on by Microsoft Employee

I'm getting an Item Lookup Code  must be unique error when I try to enter a new item.

I cannot find a UPC that matches the one I'm entering so this number must be buried in an alias in one of my items.

What would be the SQL code to id the offending item?

 

Thanks,

Richard

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Item Lookup Code must be unique issue

    I found the item using RMS Synergy. It had been set as an inactive item and the offending upc was it's alias. I had tried the find before. Looks like find does not inspect inactive items.

    Thanks for the SQL commands. I'll take a look a look at the rest of my items using your code.

  • Suggested answer
    TimB Profile Picture
    TimB 1,175 on at
    Re: Item Lookup Code must be unique issue

    The best way to find it is to find from the item window. Make sure ItemLookupCode and Alias are checked in the left box.

    If no item is found that means there's an entry in the alias from which the item is deleted. This could have happened if someone without much knowledge of RMS had done changes in sql.

    To find invalid alias entries you can use this query. select a.* from alias a left join item i on a.itemid = i.id where isnull(i.id,0) = 0

    When you're sure to delete those false entries you can use this delete query. delete a from alias a left join item i on a.itemid = i.id where isnull(i.id,0) = 0

    Hope this helps. TimB

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,297 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans