Jump to content

Filemaker 11 Unique Field Content Error 504


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

Recommended Posts

I have a database field set with a validation of "Unique value".

I am trying to revise a script that loops thru all the records and updates the value in the field.

Currently, my script loop stalls when the value written in a record is not unique.  I want to bypass writing the updated value if not unique, but I can't find a way past the Filemaker error code 504.  All I can do is manually "Revert" to the original field value.

Suggestions?

Link to comment
Share on other sites

31 minutes ago, JH Howland said:

All I can do is manually "Revert" to the original field value.

Why can't you capture the error and have the script do the reverting?

--
P.S. If you had searched for 'capture unique revert', you could have found this:
http://fmforums.com/topic/100315-preventing-duplicates-when-creating-new-records-using-set-variable/?do=findComment&comment=456712

 

Edited by comment
  • Like 1
Link to comment
Share on other sites

20 hours ago, comment said:

Why can't you capture the error and have the script do the reverting?

--
P.S. If you had searched for 'capture unique revert', you could have found this:
http://fmforums.com/topic/100315-preventing-duplicates-when-creating-new-records-using-set-variable/?do=findComment&comment=456712

 

Thanks comment.  The link you provided did the trick.  Great help.

Link to comment
Share on other sites

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