Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

HQ Detail Sales Report shows extra Items on Transactions for 1 store

Posted on by Microsoft Employee

One of our clients is having a problem in HQ with the Detail Sales Report.  When they run the Detail Sales Report 1 of the Stores in right one the money and the other store show around 900.00 more sales than what the store shows at the store level.  I looked into the Transaction table in HQ and it is correct but when I looked into the TransactionEntry Table in HQ there are extra item list on this table under certain Transaction numbers.  Has anyone ever experience this and do you know how to correct it?

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: HQ Detail Sales Report shows extra Items on Transactions for 1 store

    Thanks Spencer I will start the procedure tonight and catch up on the HQ in the next couple of days.

  • Spencer McCandless Profile Picture
    Spencer McCandless 2,085 on at
    RE: HQ Detail Sales Report shows extra Items on Transactions for 1 store

    Sorry, haven't come up with an easy solution so far. The best I can think of would be to use a while loop with a couple of incrementing variables to assign new transaction numbers to those entries in the transaction and transactionentry tables that exist in HQ but not in Store Ops, but I'm having trouble wrapping my head around it.

    Also, just a heads up, there's probably a similar situation going on with the PurchaseOrder and PurchaseOrderEntry tables. You'll likely start seeing random items showing up in transfers and purchase orders in HQ.

  • Spencer McCandless Profile Picture
    Spencer McCandless 2,085 on at
    RE: HQ Detail Sales Report shows extra Items on Transactions for 1 store

    Well, for future transactions, you can do a "Select max(transactionnumber) from [transaction] where storeid = '{the affected store's id}'" to get the highest transaction number for that store in the HQ database, then go to Store Ops Admin and use the Set Next Transaction Number function under the database drop down to set it to one higher than that number.

    This won't fix the existing incorrect data, though. Let me think on it for a bit and I'll see if I can come up with a way of fixing whats already done while preserving all of the data.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: HQ Detail Sales Report shows extra Items on Transactions for 1 store

    Is there a fix for this or am I better off going into HQ delete the extra items and re-set the store with the database from HQ?

  • Spencer McCandless Profile Picture
    Spencer McCandless 2,085 on at
    RE: HQ Detail Sales Report shows extra Items on Transactions for 1 store

    Did you restore the store database from a backup? Most of the times I've seen this happen it turns out to be due to transaction numbers being reused after a store backup was restored.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans