Hi guys,
I'm trying to cyclically start new elements in BPS based on data retrieved from another system. I already have an endpoint that returns the required data.
To achieve this, I planned to use a global action (cyclical). First, I created a business rule that fetches the data using a REST API. Then, I wrote an SQL query that utilized this business rule to retrieve the data.
However, when testing it, I keep encountering the following error:
WebCon.WorkFlow.BusinessLogic.BusinessRules.Exceptions.BusinessRuleEvaluationException: Error occurred during rule SQL Fetch contractors with debt (Id: 5834) evaluation.
---> System.Exception: Error getting data for DataSource name: Windykacja - Fetch debtors ID: 3371
---> System.ArgumentNullException: Value cannot be null. (Parameter 'tokensContainer')
It's worth mentioning that the business rule itself works correctly and doesn't return this error when executed independently.
I’m attaching a screenshot of the business rule configuration, the SQL query, and the full error log.
I’d be very grateful for your help :)