script exporting container field content halts when coming acros empty fields
I have a script that exports content of a container field into a dymnamically named file in a specified folder. It kind of works. The problem I have is that the script stops when it comes to a record in which the field is empty and I get the cannot export the field content message. Once I clik ok the script continues.
How do I incorporate this possibility in the instration what to do in the script itsef?
My script looks like this
Set Error Capture [On]
Go to record/request/page [First]
Set Variable[$filepath; Value:Service Details::filepath_Auth]
Export Field Contents [Service Details::Auth; "$filepath"]
If [Get (LastError) <> 0]
Go to Record/Request/Page [Next]
Go to Record/Request/Page [Next; Exit after last]
Is there a way that I would get the script to move on to the next record when it comes accross a record that has empty container field?