Preinst /deljob only remove the job files and SRQ files will still remain
Posted by karthickvaranasi on Monday, August 15, 2011
When we run preinst /deljob multiple times on the child sites. We can see the JOB files and TOSEND box will be cleared, however the SRQ files will still remain. We can find the orphaned SRQ files are still processing in the schedule.log (for example below).
Send Request 39OL14PA JobID: 00208615 DestSite: ABC FinalSite: State: Pending Status: Action: None Total size: 0k Remaining: 0k Heartbeat: 16:38 Start: 12:00 Finish: 12:00 Retry: 1/01/2010 4:38:51 AM 5504 (0x1580)
Checking send request 39OL14PA 1/01/2010 4:47:55 AM 5504 (0x1580)
Send request is pending. 1/01/2010 4:47:55 AM 5504 (0x1580)
We generally sometimes see this issue, when we do a DELJOB. We have to manually remove the SRQ and Instruction files by using a PowerShell script which searches for the deleted site’s SITECODE(Be sure to chance the sitecode before running the script)...
$xyz = gi "I:\SMS\inboxes\schedule.box\tosend\*.*"
#$xyz = gi "d:\temp\*.*"
foreach ($x in $xyz)
{
$Path = $x.DirectoryName +'\'+ $x.name
$a = select-string -pattern "SITECODE" -path $path -casesensitive
if ($a)
{$a.filename
| Karthik Varanasi |
| Hyderabad, India |
Loading. . .
╔════════════════╗
║████████████ 99.99%
╚════════════════╝
|