Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Error trapping with an Email node
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Krresh
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5276
People Online:
Visitors:
522
Members:
0
Total:
522
Online Now:
New Topics
Lawson S3 Financials
Applying credits to open AP invoices
4/28/2025 1:26 PM
Hello, I am new to the Lawson system and after ru
Lawson S3 Financials
Lawson APIA
4/28/2025 1:22 PM
Has anybody recently installed Lawson's APIA m
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
Error trapping with an Email node
Please
login
to post a reply.
10 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Ward Mitchell
New Member
Posts: 0
3/8/2011 11:01 PM
Friends, I am in need of some help... I am trying to error check an email node to see if an email is sent out. On most nodes in PF, there are _errorCode, _outputData and _returnMessage properties (let's call them). Does the email node have any "properties" and if so, what are they can can they help with error checking? Thanks in advance for your help with this.
M Graham
Veteran Member
Posts: 32
3/9/2011 3:40 PM
Split
You have to run your processflow on the server (and not using PF Designer on your desktop) in order for a log file to be created. You can then look in the log file to troubleshoot the email node. The log file is located at: LAWDIR/bpm/wflog/99999.wulog (where 99999 is the workunit number). The log file includes entries for the email node, such as:
--------------------------------
Executing Email Activity Email4400.....
Variables in Process : pffilename_V01 Workunit : 14476, ActivityType=EMAIL, ActivityName=Email4400, ActivityId=EMAIL4 Date:03/09/2011 Time:10:28:03
aTo(Type=String) = yourname@company.com
aCc(Type=String) =
aBcc(Type=String) =
aFrom(Type=String) = processflow@company.com
Executed activity : Type=EMAIL, ActivityName=Email4400, ActivityId=EMAIL4, Workunit=14476 Date:03/09/2011 Time:10:28:03
-------------------------------------
Hope this helps!
Ward Mitchell
New Member
Posts: 0
3/9/2011 4:50 PM
Split
M Graham, thanks for the response. I know about this. What I wonder though is. is there a way to tell if the email was sent successfully or not? We have issues where some emails are undeliverable and we want to know to route something else electronically to them - interoffice message, text message or something - regarding their ACH that went through or not so they know. From your screenshot I do not see any type of success variables but just wondered if there was something not "documented" by Lawson (which is how I find a lot of things like this). Thanks!
M Graham
Veteran Member
Posts: 32
3/9/2011 5:12 PM
Split
I see what you are saying. What I have done in cases like that is contact my company email administrator to have them verify if an email was sent and/or received. Also, at one time, our email admin blocked email that was sent from the 'dummy' email address of "processflow@company.com". which is the email address stored in the process flow email node. Now email admins know not to block those emails.
M Graham
Veteran Member
Posts: 32
3/9/2011 5:16 PM
Split
In other words, I do not think there is a way to track 'undeliverable' emails in Lawson process flow.
Ward Mitchell
New Member
Posts: 0
3/9/2011 9:05 PM
Split
Yeah it is starting to look that way. I also wondered about reading the actual log being generated to see if errors existed. The bad thing here is that the log is locked and cannot be opened or else is not in existance yet to the process flow to pick it up. The code runs fine but tells me that the workunit.wulog file does not exist. We can probably monitor this directory for new files with a cron job or something, but wanted to see if process flow could do it so we can make pretty little email messages for the developers to decipher to find the errors
Oh, I am the developer, ok!
JeffR
Advanced Member
Posts: 22
3/9/2011 10:03 PM
Split
The way that I know that an email didn't get sent successfully is that all emails are sent with a from address of pflow@ and our Exchange administrator has attached the pflow account to my email so I receive an emails that get bounced back.
Josh W
New Member
Posts: 2
3/10/2011 4:53 PM
Split
on unix the server email log is often at /var/adm/syslog/mail.log
you'll see 'to=user@company.com' and later in the same line 'stat=Sent' if it was sent ok
i have a script that sends an email, then immediately reads backwards through this file and finds the first occurrence of the email address i'm trying to send to. all i needed to do was check for 'stat=User unknown' vs 'stat=Sent'...but you may need to do something more than that. if so, if you can locate this file, you can run some tests to see what the 'stat' value would be in each of your scenarios
you can do that in the flow if you have PFI...if not, itd be much tougher or should be done in a script
Ward Mitchell
New Member
Posts: 0
3/11/2011 3:32 PM
Split
Here is what I found out and did friends...
I created a flow to send emails to vendors who we send ACHs out via the AP160. When the 160 job is submitted and ran, in the COBOL, we trigger a process flow to email the vendors. So all that works.
Well then we needed to see if any errors occurred. Since you cannot see the error log until a flow finishes running, I had an issue. For most nodes, you can use the _errorCode property to pull out errors, but sometimes those are misleading. So I created a new process flow that gets invoked and is passed the workunit from the last process flow that ran. Then this process flow I created, goes and looked for the wuerr files for that workunit, if one is there, and emails our developers in house (me).
So some 4GL changes are necessary, but in our case it is warranted. And so this is the best way for us to handle it. In the future, maybe we can even utilize this same flow to trap errors for other flows as well, so we can have some logging to inform us of issues.
So thanks to everyone who reponded, great ideas! That is why I love lawsonguru - Great minds think alike!
JudeBac
Veteran Member
Posts: 129
3/14/2011 2:17 PM
Split
Hi, have you considered querying LOGAN.dbo.WFACTIVITY using the ACTIVITY_ID of the email node? ACT_STATUS =3 is fail.
Regards,
Jude
Ward Mitchell
New Member
Posts: 0
3/14/2011 2:41 PM
Split
JudeBac, this is a very good idea. My only hang up here is that I need to actually pull and email the actual error itself out for a developer to remedy ASAP. I will keep this in mind though for future flows because metadata will be helpful to access in some initiatives we have upcoming that will be more involved and detailed than this flow I m working on right here for sure!
Please
login
to post a reply.