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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

Lost Inter Store Transfer (BUG)

(0) ShareShare
ReportReport
Posted on by

Hi there.

Occasionally, when a store transfers inventory to another store, the receiving store will never get it. I tried running a WS 401 and backdated to the transfer date but it still doesn't work. The only method which works is to run a query script to insert the hqmessage for the transfer that didn't go through. 

What I did was:

1. run a report MTD through yesterday to find lost transfers.
2. backdate a worksheet 401 to receiving store from the lost transfer's 
creation date
3. process 401 worksheet and check report again to see if the transfer went
4. if still won't go, update the hqmessage entry to flag transfer to 
transmit again <-- most effective solution
5. if hqmessage for that transfer doesn't exist, create one to force the queue
6. process another 401 worksheet and check again to see if that went
7. extremely rarely do previous steps not work, but sometime have to put the 
inventory back in sending store, remove all trace of previous transfer, and 
recreate

here are the queries that accomplish this 
1. run a report MTD through yesterday to find lost transfers.

Select 
Store.ID, po1.POTitle, Department.Name, po1.DateCreated, po1.LastUpdated, 
po1.Status, po1.PONumber, Store.Name, po1.[To], po1.autoid
from purchaseorder as po1 WITH(NOLOCK) 
left join purchaseorder as po2 WITH(NOLOCK) on po2.otherpoid = po1.id and 
po2.otherstoreid = po1.storeid
Inner JOIN PurchaseOrderEntry WITH(NOLOCK) ON 
po1.ID=PurchaseOrderEntry.PurchaseOrderID AND po1.StoreID = 
PurchaseOrderEntry.StoreID
LEFT JOIN Item WITH(NOLOCK) on PurchaseOrderEntry.ItemID=Item.ID
LEFT JOIN Department with(NOLOCK) on Item.DepartmentID=Department.ID
LEFT JOIN Category WITH(NOLOCK) ON Item.CategoryID=Category.ID
LEFT JOIN Supplier WITH(NOLOCK) ON Item.SupplierID=Supplier.ID
LEFT JOIN Store ON po1.OtherStoreID = Store.ID
WHERE
   po2.id Is Null and po1.otherstoreid > 0 and po1.status=2 and 
po1.otherpoid = 0
   and 
po1.lastupdated<convert(nvarchar,month(getdate()))+'/'+convert(nvarchar,day(getdate()))+'/'+convert(nvarchar,year(getdate()))
   and 
po1.lastupdated>convert(nvarchar,month(getdate()))+'/1/'+convert(nvarchar,year(getdate()))
Group By
   Store.ID, po1.POTitle, Department.Name, po1.DateCreated, po1.LastUpdated, 
po1.Status, po1.PONumber, Store.Name, po1.[To], po1.autoid
   Order By po1.PONumber

4. if still won't go, update the hqmessage entry to flag transfer to 
transmit again

update h set h.status=2 
from purchaseorder p join hqmessage h 
on fromstoreid=storeid and attachmentid=p.id 
where style=2 and h.status=3 and p.autoid=122390

5. if hqmessage for that transfer doesn't exist, create one to force the queue

insert into hqmessage (status, style, fromstoreid, tostoreid, attachmentid, 
datesent)
select 2,2,storeid,otherstoreid,id,datecreated from purchaseorder where 
autoid=122390

I referred to this thread: https://community.dynamics.com/rms/f/106/t/40321

Matt Hurst's reply on 8 Sep 2010 11:20 AM which solve this problem. But it is extremely manual and tedious. The process should be automatic if it is working as it should.

This seems to be a bug which affect not only me, but other users as well. I wondered if anyone has any permanent solution so far? 

Thank you.

Best regards,
Nelson Quek

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Is there anyone that can help? Thanks!

  • archelle16 Profile Picture
    1,743 on at

    Could you trace the problem 1st if it happens in the sending store, in hq or receiving store?

  • Community Member Profile Picture
    on at

    Hi, thank you for your reply.

    It happens to the receiving store. By right, when I create an inventory transfer out to another store, an inventory transfer in order will be created automatically at the other store after a 401 sync.

    Occasionally, the transfer in never got created at the receiving store. I have to run a query in HQ to identify the lost items (autoid) and I have to manually create it in the hqmessage table. After which, I will need to run a 401 to push the order to the receiving store, then it will work.

    I'm not sure what is the problem, but this issue really cause a lot of problem in the stores.

  • Suggested answer
    Community Member Profile Picture
    on at

    Does this occur when there is an error on the 401 worksheet of the sending store?

    If so then the Transfer is being closed before it is sent to the receiving store.

    We have had this problem from day one (2003).

    We send a query to the sending store to change the status of the transfer and repoll both locations.

  • Suggested answer
    Community Member Profile Picture
    on at

    We send this query using the worksheet 51.

    1.Update PurchaseOrder set isplaced = 1 where status = 2 and potype = 3
    2.Update HQMessage Set Status = 1 where FromStoreID = xxxx and AttachmentID = xxxx

  • Community Member Profile Picture
    on at

    Hey Paul. Thanks for the reply!

    For my case, it seems that there is no error on the 401 worksheet for both sending and receiving store.

    I will test out the query script which you've provided to see if it works.

    Thanks again!

  • Suggested answer
    Community Member Profile Picture
    on at

    I was having this issue Matt Hurst posted this to me back in 2010. It helped fix issues but his advise was to if possible to spread out clients connection schedule never having 2 clients connecting at the same time.  That fixed it we haven't had an issue since.  We only have 7 stores so it was a problem to spread out over an hour for all stores to connect once per hour.  I hope this can work for you.  

  • Community Member Profile Picture
    on at

    Hi DW,

    The connection schedule is already set to connect once every hour. And there are no overlapping synchronization. Thanks for the suggestion anyway! 

  • Community Member Profile Picture
    on at

    We poll ours stores twice a night, but we have 320 stores that poll. We spread them out over 4 severs running about 40 HQ Servers on each.

    We still have deadlocks on resources occasionally. This is our work around.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans