cancel
Showing results for 
Search instead for 
Did you mean: 

SAP BPA Error Happening in Monitoring - Requesting help!

ronhagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

I have a BPA that has an Automation (AutomatePipeline) with 3 inputs:  InputPeriodName, InputStageType and InputScheduledDate. The Process that starts everything has 3 Process Inputs:  Period Name, Scheduled Date and StageType.

When I am in the Editable version and test the Automation, it completes successfully.

However, when I Release and Deploy the Process and then run it in Monitoring, this is what I've tried passing the JSON 2 ways.

1. 

{
"InputPeriodName": "June 2022",
"InputStageType": "CompensateAndPay",
"InputScheduledDate": "none"
}

2.

{
"Period Name": "June 2022",
"StageType": "CompensateAndPay",
"ScheduledDate": "none"
}

It doesn't matter which one I use, I get the following error when I run it in Monitoring:

"AutomatePipeline" failed

The activity 'automation_automatePipeline_1' cannot be started since the input is not correct: [[] The object must have a property whose name is "InputPeriodName".],[[] The object must have a property whose name is "InputStageType".],[[] The object must have a property whose name is "InputScheduledDate".]

 

Since I know that AutomatePipeline does, in fact, have InputPeriodName, InputScheduledDate and InputStageType as Inputs, I'm confused as to what this error means. 

Any ideas and/or suggestions are most welcome.

Thanks in advance!

Ron

ronhagan
Product and Topic Expert
Product and Topic Expert
0 Kudos
Well, I'm getting a little closer now, I think.
ronhagan
Product and Topic Expert
Product and Topic Expert
0 Kudos
I added PeriodName, ScheduledDate and StageType as Environment variables, and removed the Process Inputs from the Variables tab in Process Details. Then, I removed the Input/Output parameters from the Automation itself. Next, in the Custom Script, I added in the 3 parameters and set them to the values of the Environment variables. I'm no longer getting that odd message and it still works in the Editable version testing. That's the good news. The bad news is, after releasing and deploying the project, when I create a new instance of the project in Monitoring, it is now running and not stopping. The latest one I tried started almost 30 minutes ago and shows no signs of slowing down, much less stopping. Oh, and the POST request doesn't seem to be doing anything, either. Sigh... Any help other than suggesting that I bang my head against the wall (which I've found doesn't help very much) is much appreciated. Again, thanks in advance! Ron

Accepted Solutions (0)

Answers (1)

Answers (1)

ronhagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

I realized that it was an error in where I was putting my variables/inputs.  

All working now. 😊