Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Server Side write PostXML / write to temp & import


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

Recommended Posts

Posted

Ok I have a script that is working fine normally on a hosted solution -

to automate the process i wanted to have fm server do this task in the wee hours of the morning but its not working...

I am using ScriptMaster to perform the tasks.

1. Write out the XSL file to the Temp or Docs

2. Perform an PostXML request from 3rd party URL

3. Write XML data to Temp or Docs folder (server)

4. Import data to FMP using XSL from previous path.

I have to process this in a loop and each of the files normally are several MB in size

however it seems that the PostXML is timing out or the script on server is running too fast and not allowing

the XML data to download and write the file.

Posted

I'd suggest placing the post into a try... catch construct, and catch Throwable (since the exception type is unknown). The exception, can then either be logged (preferrably appended) to a file or returned to FM and logged to an event table. I'd also suggest logging the URL, headers, and post content along with the error. Any chance the file is not readable/writeable due to file system/network permissions issues? Does a simple script that opens/closes a file on the same path work without the post when run in FMS?

This topic is 4521 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.