6 Replies Latest reply on Feb 1, 2017 8:43 AM by BruceHerbach

    Psos host capacity exceeded??

    marcm

      I am using FM 15 with server. I have a send mail script the intended am trying to do with the preform script on server step. The send mail script works fine on its own.

      When I do to Psos it returns a error saying host capacity exceeded.

      I have a good server I have maximum script sescions all the way up to 500 ...I keep getting the error.

       

      Need to Psos as the client machine sending the email does not have internet.

       

      Ideas?

        • 1. Re: Psos host capacity exceeded??
          mikebeargie

          Need to Psos as the client machine sending the email does not have internet.

           

          If the client machine does not have internet, how are they executing a PSoS command? You have to be connected to a hosted file to command PSoS to execute.

           

          Things to check:

          1) Does your script have an exit script step built in to it to indicate that it is done?

          2) Do you have a maximum idle timeout set so idle users are disconnected?

          3) FMS updated with latest version of filemaker?

          4) What do your logs show?

          5) Are you error capturing for email errors immediately after the email sending?

          6) Have you used the correct context in your script for PSoS? EG compatible script steps.

           

          Post more details please.

          • 2. Re: Psos host capacity exceeded??
            marcm

            It has access to the hosted files on the internal network. They just have the outside Web off as the client has sensitive files.

             

            Server is up to date.

            Logs show nothing pertaining to the error

            How do I set up error handling for the email scripterodactyl?

            The only script step is the email send function.

            • 3. Re: Psos host capacity exceeded??
              mikebeargie

              For your PSoS script:

               

              Send Mail ( your email settings )

              If ( Get(LastError) <> 0 )

                 Exit Script ( Get(LastError) )

              Else

                 Exit Script ( 0 )

              End If

               

               

              For your client-side script:

               

              Perform Script on Server ( Email Script ; Wait for Completion )

              If ( Get(ScriptResult) <> 0 )

                 Show Custom Dialog ( “ERROR” ; Get(ScriptResult) )

              Else

                 Show Custom Dialog ( “Success” ; “Email Sent Without Errors” )

              End If

              • 4. Re: Psos host capacity exceeded??
                BruceHerbach

                How many e-mails is you script sending when it runs?

                • 5. Re: Psos host capacity exceeded??
                  marcm

                  1 email to 1 hard-coded address...

                  • 6. Re: Psos host capacity exceeded??
                    BruceHerbach

                    I suspect that you have a configuration issue with the e-mail set up.  If you can run the script in a local version of FileMaker on the server to be sure it can reach the e-mail server.

                     

                    Debugging Psos can be difficult because you can't set through the script while running on server.  You can set up a log table and write a record to it with all of the information required for the PSOS e-mail script to be sure it is correct on the server.

                     

                    Make sure you are not depending on Global fields from the local session.  The PSOS will have it's own set of global fields.  You will have to set them in the PSOS script to use them.

                     

                    HTH