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

Import Records script step operates differently than manually importing records?


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

Recommended Posts

Posted (edited)

Hi all,

I'm working on a simple import from CSV script, and the issue I'm running into is in trying to show only my just-imported records as the found set so that I can perform some other operations on them.

Normally when I import records manually, FM will omit all current records and import my new file... the just-imported records will be my found set.

Performing this operation within a script seems to be different? It seems to omit the omit step – when I perform my Import Records all previously shown records are still shown.

If I add "Show All Records" and "Show Omitted Only", when I then perform my import those records then become omitted and I now have no records at all to work with?!

I don't recall this behavior in my FMP10 days, I'm in v.18 right now. Is this behavior expected?

I could perform a search for all of the just-imported records but that seems like it should not be necessary?!

Edited by RRS
Posted

There is no difference. Immediately after importing records, the found set contains only (and all) the imported records. If at the end of your script your found set is different, then something additional has happened after the import. Perhaps you have extra steps in your script. Or maybe another script gets triggered. You can use the script debugger to find out when this happens.

 

 

Posted
1 hour ago, comment said:

There is no difference. Immediately after importing records, the found set contains only (and all) the imported records. If at the end of your script your found set is different, then something additional has happened after the import. Perhaps you have extra steps in your script. Or maybe another script gets triggered. You can use the script debugger to find out when this happens.

 

 

I am using the debugger. Maybe there is something wrong with my install?

Here's a video showing the issue: https://www.loom.com/share/97dbaee5ab9d494291847815dc6370b4

Posted (edited)
14 hours ago, comment said:

I doubt that very much.

 

I am afraid that doesn't tell me anything useful.

See if you can reproduce the problem (and only the problem) in a new file. If so, post the file here.

 

Well, in creating the test file for you I figured it out. The import step in the script was referencing the wrong table instance.

I was sure it'd be something simple like that. Thanks for helping me figure it out, in a roundabout way!

Edited by RRS

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