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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPI calls failing..

Status
Not open for further replies.

clk430

Programmer
Sep 21, 2005
235
US
Win2K 6.7.1

So, I deployed our first system to our new production server and am getting email errors. When I put the trace on, we get: (second line from the bottom)

Mercator e-mail Adapter, Version 6.7(306)
Copyright © 1997-2000, TSI International Software, DBA Mercator Software
Built for WIN32 - INTEL on Jun 25 2003 at 20:38:50 by bocabuild.
Extended MAPI 1.0 for Windows NT is
Copyright © 1986-1999 Microsoft Corp. All rights reserved..
Using C:\WINNT\system32\MAPI32.DLL (Version 1.0.2536.0) for MAPI services.
Retry Count is 0. Retry Interval is 0. OnFailure is Rollback.
Fetch Unit is 0. Card Mode is Integral.
Will process 243 bytes of data.
Run Started at 11:19:10.543 on 04/13/06.
Options used: trace,name,login,pass,subject,to,name,proto
Mercator e-mail Adapter, Version 6.7(306)
Copyright © 1997-2000, TSI International Software, DBA Mercator Software
Built for WIN32 - INTEL on Jun 25 2003 at 20:38:50 by bocabuild.
Retry Count is 0. Retry Interval is 0. OnFailure is Rollback.
Fetch Unit is 0. Card Mode is Integral.
Will process 243 bytes of data.
Run Started at 11:19:10.543 on 04/13/06.
GetMailCoreInfo: Successful.
MAPI Profile 'EDIP03' will be used.
MAPILogon failed. Login was unsuccessful.

Basically, EDIP03 is the service ID for the prod machine. What are some possible causes of it getting denied?
 
You need to have your e-mail admin add this to the server, or use a different log in. You also might see if the server is set up to support INET.





BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
You're right. And also set it EDIP03 as the default user profile on the machine. I'll test when they do this.
 
Ok, so I set up the default profile (EDIP03) and connected it to the right exchange server.

My map is simple and has input 1 on a trigger file, output 1 using the email adapter:

-Proto MAPI -USER EDIP03 -PASS xxxxx -To racjal -Text "Test Works" -Sub "Test from prod map"

The map just "hangs" on the management console - Putting Data Card 1.

*Trace was enabled and here is what it generated:

(Level 0: Offset 0, len 6, comp 1 of 0, #1, DI 00000001:)
Data at offset 0 ('DOIT<CR><LF>') was found to be of TYPE
X'0002' (indata datain).

INPUT 1 was valid.

End of Validation messages for INPUT CARD 1.

(Offset 0: Map Number 0 (xTestEmail), DI 00000000:)
Building TYPE X'0002' (indata datain).

(Offset 0: Map Number 0 (xTestEmail), DI 00000000:)
The rule for TYPE X'0002' (indata datain) evaluated to NONE.

OUTPUT 1 was built successfully.

End of Mapping messages for OUTPUT CARD 1.


End of Execution messages.

*Adapter trace was enabled and here is what is partially generated:

Mercator e-mail Adapter, Version 6.7(306)
Copyright © 1997-2000, TSI International Software, DBA Mercator Software
Built for WIN32 - INTEL on Jun 25 2003 at 20:38:50 by bocabuild.
Extended MAPI 1.0 for Windows NT is
Copyright © 1986-1999 Microsoft Corp. All rights reserved..
Using C:\WINNT\system32\MAPI32.DLL (Version 1.0.2536.0) for MAPI services.
Retry Count is 5. Retry Interval is 5. OnFailure is Rollback.
Fetch Unit is 0. Card Mode is Integral.
Run Started at 13:37:18.448 on 04/19/06.
Options used: trace,name,login,pass,subject,text,to,name,proto
Mercator e-mail Adapter, Version 6.7(306)
Copyright © 1997-2000, TSI International Software, DBA Mercator Software
Built for WIN32 - INTEL on Jun 25 2003 at 20:38:50 by bocabuild.
Retry Count is 5. Retry Interval is 5. OnFailure is Rollback.
Fetch Unit is 0. Card Mode is Integral.
Run Started at 13:37:18.448 on 04/19/06.
GetMailCoreInfo: Successful.
MAPI Profile 'EDIT01' will be used.
Recipient #1 is racjal.
Rollback specified; returning to map engine.
Cleanup call from prior Rollback; re-initializing instance storage.
Mercator map return is 0.

But no email and the map just hangs. Any ideas? This is just happening AFTER the service pack (6.7.1) on the new server. Office 2003 Outlook, win 2k server.
 
Sorry, In the adap. trace above, "MAPI Profile 'EDIT01' will be used." is actually supposed to be EDIP03. I pasted the dev trace instead. Same error though in both.
 
Turn off the retries.
"-To racjal" is not a valid e-mail address. You need @someplace.com that exists. Check the e-mail server for errors.




BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Aye, retries. Gotcha. racjal is an email alias. I thought it took aliases.
 
Retires are OFF in the map. How do I turn off the retry for the adapter?

"Retry Count is 5. Retry Interval is 5. OnFailure is Rollback"

It's OFF in the IFD, but on in the map. Shouldn't the IFD override it?
 
Should but could be bug in 6.7.1.

Trace shows success. This means it made it to the e-mail server. Now you have to look at the server to see what happened.
Unfortunately, a failure from the server could be returned hours later and the map will never know (examples: target e-mail box is full, link between your ISP's e-mail relay and the target's server is slow or down).

Can you test with command server and a simple map?





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