Chris,
Anytime you delete a record from a table, HQ cannot transmit the change to the stores because the modified record no longer exists...
This is a MAJOR SHORTCOMING. I have absolutely NO HOPE that MS will fix this issue, ever, as it is inherent to the design of the system.
Is this stupid? Yes.
In the meantime, we are left to fend for ourselves...
If I were you, I would do the following:
Before you do this, know that the following procedure should never be attempted by anybody, ever. If you try this and fail, your alias table may be ruined for all practical purposes. If you are careful and do it right, it will work. In any case, you are on your own. What I really mean is this:
CONTINUE AT YOUR OWN RISK.
From HQ Admin: Query #1: SELECT ID, ItemlookupCode from Item WHERE Inactive = 1 Query #2: SELECT * from Alias
Export both results as .csv files.
Open the .csv files in some sort of text editor (Word, Wordpad, Notepad). Select All, copy & paste into Excel. If you don't have any leading zeroes anywhere, this step may be unnecessary.
You can use Text to Columns... to get rid of the commas & spaces. You can use TRIM() to get rid of leading/trailing spaces if necessary. Clean up your data!
Columns A & B will be from the ID & ILC from the Item Table. Leave Column C empty just for your own sanity Columns D, E & F will be ID, ItemID and Alias from the Alias Table
Sort Columns A & B by ID Sort Columns D-F by ID
In Column G, enter the following formula: =VLOOKUP([Item.ID],[Alias.ItemID],1,FALSE) Where Item.ID = Cell A[x] where X is the current row and Alias.ItemID is the entire Alias Column (column F). The lookup array will have to be an absolute reference like this: $F$2:$F$4567 (assuming you had 4567 rows of data).
Fill Down Column G for all Alias records. This will identify all Alias records for inactive items.
Copy Column G. Paste Special... Values Only into Column I. Sort Column I to separate the good values from the bad.
In Column J, enter: ="DELETE from Alias where ItemID = "&I[x] Where I[x] is the active row cell from Column I.
Fill down to create a series of SQL statements.
Copy the list into a blank query inm HQ Admin. Executing this collection of query statements will delete the Alias' associated with the inactive ILCs.
Copy the whole list into a WS51 if you cannot connecgt directly to the store ops databases with SO Admin (try it, you might be able to connect!).
I hope that helps. There is probably some way to do this with one big SQL statement, but I'm sooo much more comfortable with Excel than with SQL.
You will want to backup everything first, of course.
If you have any questions or are the least bit hesitant, DON"T DO IT. Ask for more help or find another method.
Good luck, Tom