Jump to content
Server Maintenance This Week. ×

Multikey gtrr fails


bcooney

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

Recommended Posts

I have a parent FM record with a multikey text field of child IDs. I would like to use gtrr from this parent to the children. The children are MySQL records in an ESS table and the primary key is a number field. The gtrr fails.

On p.15 of the ESS FM11 Tech Brief, it states that multikeys can be used to match to ESS child records.

Why is this failing?

Link to comment
Share on other sites

Right after the gtrr is attempted, I receive FM Error 1408, and a dialog that says:

ODBC Error:[MySQL][ODBC 5.1 Driver][mysqld-5.1.41-3ubuntu12.10]You have
an error in your SQL syntax; check the manual that corresponds to your MySQL
server version for the right syntax to use near " at line 1

Thanks for the help, Ideal,

Barbara

Link to comment
Share on other sites

Do you think it may be one of the IDs is not valid? It may be the case, but highly unlikely.

So, are you saying that it is definitely possible to gtrr FM to ESS via a multikey? That would be reassuring to know. I'll try a three ID multikey test with know "good" values.

Link to comment
Share on other sites

I'm no expert here, and have only done a single field match before now. According to p15 it should work, but scrutinise your data - particularly trailing returns in the child.

Maybe a workaround to use a looping script to perform successive finds and EXTEND the found set?

Are you using a multi-VALUE or multi-PREDICATE match?

Link to comment
Share on other sites

Not a multi-predicate, just a multi-key. We're talking about 2500 IDs. I've thought of throwing each ID into a global and gtrr, working my way thru the entire list, but that's plan B.

Link to comment
Share on other sites

Are you're mixing data types? The SQL key field is number, but of course you are building a list of TEXT (numbers) to match.

Simplyfy the test and see if you can make 2 separate NUMBER fields in FM match the single SQL key field. Alternatively target a different TEXT field in the SQL table.

Link to comment
Share on other sites

Hi Steven,

Thanks for chiming in. Well, the error says, "to your MySQL server version for the right syntax to use near " at line 1" You're hinting at something here. Can you elaborate?

Barbara

Link to comment
Share on other sites

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