You are viewing limited content. For full access, please sign in.

Question

Question

custom query error - Specified cast is not valid

asked on March 16, 2018

I'm trying to figure out how I can better debug my workflow.  I've got a custom query that pulls invoices from our oracle database and populates the metadata in laserfiche.  This workflow has actually worked on thousands and thousands of invoices, except 2 in the past couple of months.  I'm getting a specified cast is not valid when the query executes.  

 

The query is very simple:

SELECT * FROM apx_invoices_v
WHERE rtrim(ltrim(INVOICE_NUM))=&x
AND  rtrim(ltrim(VENDOR_NAME))=&y

The email returns:

The query returns the record just fine in Toad and when I do the test scenario in the custom query window in laserfiche workflow designer.

 

 

Thanks,

Glenn

0 0

Replies

replied on March 30, 2018

I think that's expected behavior. Your invoice number is blank, so the query can't use it in an "equals" condition.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.