Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

<Unknown Supplier>

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a couple of items in HQ that show <Unknown Supplier> on the Supplier tab in the Item Properties.  When I run an HQ query on the item it shows a SupplierId number that does not exist in my Suppliers query.  I've deleted the supplier from the Suppliers tab in the item properties and sent a 250 worksheet down to a store.  When I chose the Supplier tab in store manager for that item I'm getting a Run-time error -2147417848 (80010108): Automation error.  The object invoked has disconnected from its clients.  Then the Store Manager closes.  Any suggestions?

 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: <Unknown Supplier>

    I was able to run the above query with a little modification. Thanks!

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: <Unknown Supplier>

    Run the following query on the store database, BACKUP FIRST

    --1

    --replace the xxxx with the correct supplier code

    --this query will fix the primary supplier for the 2 items

    update item

    set supplierid=(select id from supplier where code='xxxx')

    where itemlookupcode in ('item1','item2')

    --2

    --this query will remove any entries in the SupplierList table for the two items

    delete supplierlist

    where itemid in (select id from item where  itemlookupcode in ('item1','item2'))

    --3

    --this will insert necessary information into SupplierList table for the primary supplier

    INSERT INTO SupplierList([MinimumOrder], [ItemID], [SupplierID], [Cost], [ReorderNumber], [MasterPackQuantity], [DBTimeStamp], [TaxRate])

    select '0',item.id,item.supplierid,item.cost,'',1,null,0

    from item

    where  itemlookupcode in ('item1','item2')

    A Hassan

    RMS Leaders

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: <Unknown Supplier>

    You have a reference error between the Supplier table and the Item table.  Or a problem with the SupplierList table.  

    You can delete the item and recreate OR

    Set the supplierid in the Item Table = 0 for that item and delete the entries in SupplierList that match the SupplierID and ItemID.

    After that you should be able to open the propertied for that Item and fix the supplier.

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans