I am working on a project where I need to extract all the data from a website and convert it into JSON format. Currently, I am integrating the project with a State Machine.
I am getting the input from OpenFlow, where I have stored all the required details in TransactionDT—from the Get Transaction state.
However, I am encountering an issue while processing the invoke code with Python:
TableCountXpath = f"//div[@id=‘app’]/div/main/div[2]/div[3]/div/div[2]/div/div/div/div[1]/div[{TableCount}]/div/table"
The TableCountXpath
variable is passed into the Get Table Data activity to retrieve the table below:
.
I am able to retrieve the data and convert it to JSON using the following Python code:
However, after both invoke codes are executed, the TransactionDT DataTable becomes empty, resulting in a null error: Object reference not set to an instance of an object. I have also tested both invoke codes individually, and I get the same error each time.
I’m not sure why the Transaction DataTable becomes empty. Could you please help me with this issue?
Thanks,
Ashok S