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

Question

Question

Custom Oracle Query Syntax

asked on April 9, 2013 Show version history

I created the following custom query to use against a MSSQL table for a customer in Workflow.  Their table is located in Oracle and I’m having a little trouble with the ? Parameter.  Oracle doesn’t seem to like it.  This works perfectly when used against MSSQL.

 

Capture.JPG

 

We modified the Query to the following for testing and were able to get a result.  However, as a document name isn’t being pulled using a token, all the different documents received the same information from the same row of the table.

 

Capture1.JPG

 

So then we tried several different Parameter Names at the end of the path, but none worked and all returned errors about the Parameter when the workflow ran.  The following is just one version.  We tried ?, DOC, and xyz.  Also tried to add different operators such as @.  The error was always the same about an invalid Parameter.

 

Oracle Query.PNG

 

Just FYI, the second % in the Parameter Value is to account for a document extension that may or may not be included in the EntryName token, but is included in the DOC_PATH column every time.

 

Please help me with the necessary Oracle Parameter so the EntryName can be passed from Laserfiche into the third line of this Custom Query.

0 0

Answer

APPROVED ANSWER
replied on April 10, 2013 Show version history

Instead of @x as your Parameter Name, try using:x.

 

This would look like:

 

SELECT *

FROM AxiomTable

WHERE DOC_PATH LIKE :x

AND IMPORT_TIME IS NULL

 

Parameter Names           :x

Parameter Values            \\pvaxiomtestdb1\export\%(Entry Name)%

 

Several online resources that reference this syntax, however I don’t have an Oracle database to test this query.

 

 

1 0

Replies

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

Sign in to reply to this post.