Hi, My Zap has been working but today I got this error message
Failed to create a subscriber in Flodesk (1.0.21)
Cannot read properties of null (reading 'map')
The Al troubleshooter has offered this advice (pasted below), but as a beginner I have no idea what it means. Can somebody please explain this so a complete novice can understand it. Thanks :)
The error "Cannot read properties of null (reading 'map')" typically occurs when the code is trying to access a property of a null or undefined object. In your case, it seems that the FlodeskCLIAPI step is attempting to map over a value that is null or undefined. This could be due to the dynamic data from the previous step not being correctly passed or formatted.
To resolve this issue, first, ensure that the dynamic data placeholders (e.g., {{242279599__75d32353c781d0239b1a68376fae251c851e7865}}
) are correctly mapped and not returning null values. You can do this by testing the previous step to confirm it outputs the expected data. If the data is correct, try re-mapping the fields in the FlodeskCLIAPI step to ensure they are correctly linked. Additionally, you can add a filter or a code step before the FlodeskCLIAPI step to check for null values and handle them appropriately, ensuring that all required fields have valid data before proceeding.