Dear all,
This is my first post in the Microsoft Power Automate Community Forum and I hope anyone can help me.
Currently I am working in a small project for my job through which I want to fetch specific data from PDFs using AI Builder and input this data into an excel table (Later on I will input the data into a legacy system using a Desktop flow).
The issue is that the dates in the PDFs are in format "dd-Mon-yyyy" when I need "dd-MM-yyyy". So, instead of 02-Jun-2023 I need 02-06-2023. The PDFs I work with are hedge trade confirmations, with:
1. Trade Date
2. Effective Date
3. Maturity Date
One collection of PDFs I trained has only Trade and Effective Date and the other collection Trade and Maturity Date. So, for example, if I want to fetch information from a PDF which only contains Trade and Effective Date (But not Maturity Date), the flow I created works until it reaches the action that you can see below, with the error message:

It looks like if variable created through the AI Builder action doesn't exist in a specific document (being null) the flow gives this error. I tried several things, like adding a conditional, but I couldn't insert the "Initialize variable 3" in it because this kind of action is not allowed.
Could someone help me to solve this problem? Happy to provide more information if needed.
Thanks in advance
Iván