Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4314 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello,

i run a scheduled script on ther FM Server 10. this sheduled script from File "APP_Engine.fp7" run ExecuteSQL("SELECT Field1 FROM Table1"). The result of the excecution ist "ERROR" !

Table1 exists as a Table occurence (TO) in APP_Engine und comes from an other external file "DAT_Engine.fp7".

what am I doing wrong?

 

NOTICE.: When i run the SELECT on an internal Table (in APP_Engine.fp7), it works.

 

thanks for your help!

 

 

Posted

Have you created a plugin for ExecuteSQL()?

To my knowledge you can only use ExecuteSQL() with ScriptMaster Advanced and you cannot invoke it via a Script Step.

You need to create a custom plugin.

Posted

Yes, i created a custom plugin und use its ExecuteSQL().

When i run the SELECT-Statement on an internal Table (in APP_Engine.fp7), it works.

Posted

Are you sure the path to the external file is working on the server?

Before FileMaker had native Execute SQL I used the same technique and never had any  problems.

Posted

the external file reference is working on a FM client with server hosted files. The reference is relative (file:DAT_Engine).

why is the file reference not working on the server?

Posted

No, is not the same folder. But i tyed with the network reference "fmnet:/192.168.10.10/DAT_Engine" instead of "file:DAT_Engine".  And i have the same problem.

Posted

I believe this isn't a ScriptMaster problem per se.

 

In older versions of FileMaker, you needed to include the folder name in the reference to external files that were in other folders on the same server, using something like file:../FolderName/FileName.fp7 in order for server-side scripts to work.

It was impossible to run server-side scripts referencing table occurrences from files hosted on other servers.

 

In FileMaker 12, both now work fine (thanks FileMaker Inc!).

This topic is 4314 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.