Andrew Angell
asked on
Can't seem to get around this SQL parse error 1200 in FileMaker Pro...???
I'm trying to do some very basic SQL updates on this FileMaker DB I'm working with and for some reason I can't get around this parse error 1200.
The table I'm working with in FileMaker is called Gourock Invoice. I'm getting parse errors every time I try and update via SQL and I can't figure out where my problem is.
Here's one example...
UPDATE Gourock Invoice
SET g_PayPal_Error_Code = 10002,
g_PayPal_Short_Message = 'Security error',
g_PayPal_Long_Message = 'Security header is not valid'
WHERE id_invoice = 133987
g_PayPal_Error_Code is a number field, as is id_invoice (although I have tried adding quotes around those values as well).
Here's another...
UPDATE Gourock Invoice
SET Credit card Authorization = '8Y781148UU567701C',
Card Number = '************5916'
WHERE id_invoice = '133987'
Card Number is indeed a text field. I'm getting parse errors on both of these. Apparently I need another pair of eyes to help me figure out what I'm doing wrong here. I work with SQL all the time and I simply can't find my problem.
Thanks!
The table I'm working with in FileMaker is called Gourock Invoice. I'm getting parse errors every time I try and update via SQL and I can't figure out where my problem is.
Here's one example...
UPDATE Gourock Invoice
SET g_PayPal_Error_Code = 10002,
g_PayPal_Short_Message = 'Security error',
g_PayPal_Long_Message = 'Security header is not valid'
WHERE id_invoice = 133987
g_PayPal_Error_Code is a number field, as is id_invoice (although I have tried adding quotes around those values as well).
Here's another...
UPDATE Gourock Invoice
SET Credit card Authorization = '8Y781148UU567701C',
Card Number = '************5916'
WHERE id_invoice = '133987'
Card Number is indeed a text field. I'm getting parse errors on both of these. Apparently I need another pair of eyes to help me figure out what I'm doing wrong here. I work with SQL all the time and I simply can't find my problem.
Thanks!
or :
UPDATE "Gourock Invoice" SET g_PayPal_Error_Code = 10002, g_PayPal_Short_Message = 'Security error', g_PayPal_Long_Message = 'Security header is not valid' WHERE id_invoice = 133987
OR AGAIN :)
UPDATE [Gourock Invoice] SET g_PayPal_Error_Code = 10002, g_PayPal_Short_Message = 'Security error', g_PayPal_Long_Message = 'Security header is not valid' WHERE id_invoice = 133987
ASKER
Nope, that's not helping. I've actually done this in FileMaker quite a few times and I've never had to put quotes around the table names before. I've always just followed my regular, basic, sql syntax and have never had this problem before.
And quotes :
UPDATE 'Gourock Invoice' SET g_PayPal_Error_Code = '10002', g_PayPal_Short_Message = "Security error", g_PayPal_Long_Message = "Security header is not valid" WHERE id_invoice = '133987'
Could you restart you query editor ? Perhaps a hidden field somewhere...
ASKER
Query editor...???
Where are you running your query ? Close it before retrying.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yeah I was thinking about that space, too. I've done this before with FM and I never needed to use tablename.fieldname so I think it's gotta be the space. I'm gonna play with that and I'll update in a bit.
as a matter of fact, fm doc does not mention any quote for table and fields, and no table name before field names.
so they probably assume there won't be any space in table names? quite wyse indeed but not in the filemaker workd where there are lots of mac users, and this is a population which like unrestricted names!
so they probably assume there won't be any space in table names? quite wyse indeed but not in the filemaker workd where there are lots of mac users, and this is a population which like unrestricted names!
ASKER
Yup, it was the spaces.
Try (table name in quote) :
Open in new window