Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Back-up On Error doesn’t always work?

Status
Not open for further replies.

RedSoxM3

IS-IT--Management
Mar 27, 2006
39
US
6.7.1 Win2K

My back-up on error doesn’t always work. Sometimes it does, sometimes it doesn’t. Is this normal? Basically, I grab a file on source event, call a decryption batch script via the batch adapter and decrypt the file. 1 out of 10 times the map fails with a “76” - Failed to put to adapter. So, I used the back-up feature in the IFD to route the failed files to another folder.

Here is the system:

Map(Decrypt2MF.mmc) - Output = NONE

IFD -
Watch: 46
MSL File: e:\mercator6.7\systems\ACS NewPrd.msl
System: Inbound
Component: Decrypt2MF
Map: E:\EC\Appint\Decrypt2MF.mmc

Priority: Normal
Map Delay: 9999 ms.
Pending Exp.: <none>
Retries: 10 every 5 seconds

Paging: 8 X 64K

Trace: <none>

Validation: Ignore: <none>
Stop On First Error: Yes

Work Area: Default - Delete -

Init High: 0
Init Low: 0

Time Trigger: <none>

Input 1 (T): File: E:\EC\Appdata\PGPnFTP\ACS\*.pgp
Rollback: Yes, Delete: Yes, Reuse Work File: No
Retries: 5 every 5 seconds
Back-up Switch: ON
When: On Error
Location: E:\EC\Appdata\PGPnFTP\ACS\Errorfiles\
Prefix: *.pgp

Output 1: Batch File: -cmd 'e:\ec\appint\decrptACS.bat E:\EC\Appdata\PGPnFTP\ACS\*.pgp'
Rollback: Yes, Delete: No, Append: No
Retries: 5 every 5 seconds

Audit File: <none>


Here is the batch Script (decrptACS.bat)
type c:\mercenc.txt | gpg --passphrase-fd --decrypt %1

And here is the error on Launcher when it intermittently failes:

*** ERROR:

System: Inbound
Component: Decrypt2MF
Map: E:\EC\Appint\Decrypt2MF.mmc
Start Time: Thu Jul 13 19:09:26 2006
Instance: 4
Run Time: 0.0586 seconds
Return Code: 76 - Adapter failed to put data on output

Input 1: File: E:\EC\Appdata\PGPnFTP\ACS\Inbound2MF\saf.dss.saint014_deptid.txt.pgp
Output 1: Batch File: -cmd 'e:\ec\appint\decrptACS.bat E:\EC\Appdata\PGPnFTP\ACS\Inbound2MF\saf.dss.saint014_deptid.txt.pgp'

Audit File: <none>



So, the back-up feature works great when I get an error....but SOMETIMES it just errors and leaves the file in the trigger directory. Any ideas on why this just intermittently works? I'm getting tired of babysitting.
 
And on a side note, I can not reporduce this problem in Development. It only happens in production and they are identical! I beleive the root of the problem (76 erros) is gnupg...we are on version 1.0. However, in the meantime, I was hoping this back-up thing would work.
 
Since the map has a 9999 ms delay, I suspect you are having a problem with your network or large files. You could be double triggering on the input file.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
I set it to 9999 because of exactly what you said....large file and newtork problems due to load during the day.

That alleviated the "source not available" problems, but I still get the "76" errors.

Question, the map (Decrypt2MF.mmc) is output = None.

I changed it to output = input. It still works. Would this force it to use the retries?
 
Turn on adapter trace and map audit log.


BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top