Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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?

Posted

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

Posted

Mmmmmm... gobble-de-gook to me. Can you test each key combination independently and then in combinations?

Posted

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.

Posted

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?

Posted

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.

Posted

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.

Posted

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

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