AnsweredAssumed Answered

script exporting container field content halts when coming acros empty fields

Question asked by Kat11_1 on Jun 9, 2011
Latest reply on Jun 10, 2011 by philmodjunk

Title

script exporting container field content halts when coming acros empty fields

Post

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]

Loop

   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]

   End If

   Go to Record/Request/Page [Next; Exit after last]

End Loop

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?

Outcomes