2 Replies Latest reply on Jun 12, 2015 1:55 PM by TSGal

    Add Account script step fails in v14

    dbail22@comcast.net

      Summary

      Add Account script step fails in v14

      Product

      FileMaker Pro

      Version

      14

      Operating system version

      10.10

      Description of the issue

      I have 10 files that are part of a solution for a non profit.  To aid in adding accounts (and deleting) I created a script to pass data to identical scripts in the 10 files from a security file.  This script has worked well in v12 and v13 and now fails in v14.


      Set Variable($AccountName;Value:GetScriptParameter(1)

      Set Variable($Password;Value:GetScriptParameter(2)

      Set Variable($Access;Value:GetScriptParameter(3)

      If $Access = "Full"

        Add Account(Account Name: $AccountName;Password:$Password;Privilege Set:All

      Else IF $Access = "Read Only"

      Add Account(Account Name:$AccountName;Password:$Password;Privlege Set: Read-Only Access

      End If

      Some brackets and characters have been left out for the ease of typing.

      The failure is on only about half of the 10 files it is used in. It occurs in the add account step saying the item must have an entry of no more than 100 characters.  Using the data viewer all of the text is there.  I don't understand how it would work for a few years and two releases and fail in v14 especially when the data viewer shows the text is there.

      I run the scripts with Full access privileges in each file.

      Expected result

      Continued success of adding accounts in files.

      Actual result

      Half or more of the files accessed from the main script that calls identical scripts in each of the files fails with an error indicating that the field" must contain text of 100 characters.

      While typing this I discovered that if the files are already open the scripts run without error. If the files are not open and must be opened to run the script it fails.

        • 1. Re: Add Account script step fails in v14
          TSGal

          dbail:

          Thank you for your post.

          I have sent your entire post to our Development and Testing departments for review.  When I receive any feedback, I will let you know.

          TSGal
          FileMaker, Inc.

          • 2. Re: Add Account script step fails in v14
            TSGal

            dbail:

            Testing has been unable to reproduce the failure.  The tester created ten "Add Account" steps to ten related files.  The account is added in each file and no errors occur.  Also, script to delete each account also works without any errors.

            Testing has requested a copy of your file with related files to see what is different from the tester's environment.  Check your Inbox at the top of this page for instructions where to send the files.

            TSGal
            FileMaker, Inc.