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
Has anyone called PowerShell from Process Flow?
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
BDell92
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5275
People Online:
Visitors:
247
Members:
0
Total:
247
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
Has anyone called PowerShell from Process Flow?
Please
login
to post a reply.
7 Replies
1
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Tom Sinkula
Basic Member
Posts: 17
11/20/2012 7:17 PM
I'm trying to call PowerShell from Process Flow (actually Lawson Process Automation) using the System Command node. It seems to hang on the startup of powershell and finally timeout.
pbelsky
Veteran Member
Posts: 80
12/18/2012 7:05 PM
Split
Let's see if we can get some new interest in this thread. I am executing a batch file in LID that runs a powershell script. The script runs successfully, but control is not returned to the LID command prompt. I have to manually hit enter to get the command prompt to come back.
Has anyone else encountered this issue and solved it? Thanks!
Tom Sinkula
Basic Member
Posts: 17
12/18/2012 7:39 PM
Split
I believe I'm seeing a similar issue when starting a PowerShell script from Process Flow, i.e., it looks like the script runs but control is never returned. I opened an INFO incident with Support and they have indicated they will develop a fix for this (as far as Process Flow and LPA are concerned). Not sure what implications this will have when accessing PowerShell from LID, though.
pbelsky
Veteran Member
Posts: 80
12/18/2012 7:39 PM
Split
Was able to answer my own question. I experimented with Windows task manager and found that if I ended poweshell.exe, my LID prompt would come back. So I added the following cmdlet to the end of my powershell script:
stop-process -processname powershell
This worked. Powershell script ran and returned control to LID. Tom, I'm not sure if ProcessFlow is running your ps script before hanging or not, but if it is, this might help.
Patti Belsky
Tom Sinkula
Basic Member
Posts: 17
12/18/2012 8:13 PM
Split
Thanks Patti,
I'll give it a try.
Tom
pbelsky
Veteran Member
Posts: 80
12/19/2012 8:25 PM
Split
Hey Tom, a little more info on this. When I used the stop-process cmdlet to return control to the LID prompt successfully yesterday, I was doing that on our dev system. Today I moved all my code into the QA system, where security is a little tighter. When I ran the powershell script from a batch file using LID, I received the following error in QA:
Stop-Process : Cannot stop process "powershell (6356)" because of the following
error: Access is denied
My powershell script creates an output file, so I checked that and found that the file was indeed created, it was just hanging up on the auth for the stop-process.
We have a custom COBOL batch program that allows us to execute batch files from the Lawson back office portal. When I executed the batch file / powershell script using the COBOL program, again the file was created, but the job hung, without any error message.
My experience led me to wonder if it is possible to execute your powershell process from LID by using a batch file? At least that way, you might get an error message that will help you figure out what is going on. Put your powershell script in the work directory on the Lawson app server, and use a command like this in your batch file:
powershell.exe d:\test\law\test\work\test.ps1
pbelsky
Veteran Member
Posts: 80
12/20/2012 6:39 PM
Split
To wrap this up... we were able to get a Lawson batch job which calls a powershell script to run AND complete successfully from portal, instead of hanging. As the end of the powershell script, we added the following cmdlet:
stop-process powershell -force
It was the -force that finally solved our problem, and enabled the program to complete.
This doesn't surprise me because we have seen similar behavior between Lawson and msoft -- when our users are working with query wizard add-in, excel.exe will often hang on their machine, and as they continue to open more saved queries, they will start to have trouble because of multiple hanging instances of excel.exe. We have taught them to go into task mgr and end the extra excel.exe's out there.
Good luck and Happy Holidays, Tom!
pbelsky
Veteran Member
Posts: 80
2/21/2013 6:29 PM
Split
In case anyone is interested, Lawson just came out with an environment patch for this issue.
JT-405778 Running powershell scripts on the System Command node result in Timeout
Please
login
to post a reply.