Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML importing trouble

Featured Replies

Hi,

Sometimes, when importing XML data in FMPXMLRESULT via http, for example

http://www.someserver.com/document.xml

FM imports data very fast and perfect, but sometimes, without any logic, FM shows the color cursor "ad eternum" and have to force quit the application.

Someone have any idea? What's wrong?

Thanks

Hi, ciklopo, and welcome to FM Forums. Can you post some examples of files that go quickly and files that take forever? The problem may be in the data itself, rather than in FM.

Jerry

  • Author

Jerry, Thanks for reply. The problem is that the behaivor is related to the same file. For example in the ScriptMaker Script:

Set Error Capture[On]

Set Field ["Aux01" , "http://www.someserver.com/document.xml"]

Import Records ["Restore" , "No Dialog", "Aux01"]

if [status(CurrentError) ≠ 0 ]

....Some Steps if error

else

....Some Steps if true

end if

What's wrong?

:?

And you've isolated the time drag to the import step? If not, i would make sure the import is the issue by putting a halt script right after the import and seeing if you still get the long wait.

If the import is definitely the problem, can you rule out web latency as the culprit? Maybe the server you're connecting to is busier at certain times than at others. If you can, try to download the file onto your local machine and give it a few test runs. If the delay persists even when importing locally, i'd have to call that very weird. In my limited experience, if you have improperly formed XML you can't do an import at all, much less do several imports of different lengths.

J

  • 9 months later...
  • Author

Hi,

I don't know what means isolated the time drag to the import step?

Can you explain me?

Thanks

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.