Quantcast
Channel: FLEXquarters.com Limited
Viewing all articles
Browse latest Browse all 313

[QODBC-Desktop] Troubleshooting - [QODBC] Invalid operand for ope...

$
0
0

Troubleshooting - [QODBC] Invalid operand for operator: <assignment>

Problem Description:

I am getting the error "Invalid operand for operator: <assignment>" while trying to insert an invoice line item:

INSERT INTO InvoiceLine ( CustomerRefListID, TemplateRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineRate, InvoiceLineAmount, InvoiceLineTaxCodeRefListID, FQSaveToCache) VALUES ( '800019E1-1428688811', '8000001B-1360624407', '17003', '80000129-1362767268', 65.0000, '130.00', '80000002-1358615111', 0)

 

Solution:

You will get Invalid operand for operator error when you provide wrong data type values in your query.

For Example:

Column data type is decimal/integer/bit & you are inserting value as string/character.

In your query InvoiceLineAmount column data type is decimal & you provided value as string/character.

Please refer below sample query & test again:

INSERT INTO InvoiceLine ( CustomerRefListID, TemplateRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineRate, InvoiceLineAmount, InvoiceLineTaxCodeRefListID, FQSaveToCache) VALUES ( '800019E1-1428688811', '8000001B-1360624407', '17003', '80000129-1362767268', 65.0000, 130.00, '80000002-1358615111', 0)

Please refer QODBC Data Layout for more details.


Viewing all articles
Browse latest Browse all 313

Trending Articles