SAP Builders Discussions
Join the discussion -- ask questions and discuss how you and fellow SAP Builders are using SAP Build, SAP Build Apps, SAP Build Process Automation, and SAP Build Work Zone.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot read properties of undefined | SAP Build Process Automation

JulB
Participant
0 Kudos

Hello Builders,

I have created a process to read pdf, and write an excel file with its findings. There will be situations where the pdf read will not find values for certain fields of my data type. I want to write the Excel file anyway, regardless of whether or not there is data for every field. I am wondering how to get around this issue and move on? Any suggestions would be greatly appreciated.

This is the component:

Screenshot 2024-05-03 143224.png

The error I receive: Cannot read properties of undefined "Cannot read properties of undefined"

Screenshot 2024-05-03 142851.png

 

 

 

 

Thank you,

Julien

2 REPLIES 2

MartinaKolafova
Explorer

You need to add logic (if) and check if item.id exists. If it does not exist, set the cell to 'Whatever'; if it exists, set it to the item.id.

0 Kudos

Hello Martina,

Thank you for the insight! This looks like a valid solution to the error.

Regards,

Julien