8 Replies Latest reply on Jun 10, 2011 3:29 PM by philmodjunk

    script exporting container field content halts when coming acros empty fields

    Kat11_1

      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?