Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
27 replies
Subscribers
8 subscribers
Views
12590 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
How to Define "BLOB" dataType of SQL in Appian CDT
mohammedz
Certified Associate Developer
over 8 years ago
Guyz,
I have a table in database with three columns
ID - Number
Document - BLOB
Name - VARCHAR
The Document column is of "BLOB" DataType....
Now I need to create a CDT and Map it to the Table
To do so what should be the dataType in my CDT or XSD Definition
Appreciate ur response....!!!!
OriginalPostID-232170
Discussion posts and replies are publicly visible
Top Replies
ankitb0003
over 8 years ago
+1
I have used the following definition for CLOB, It worked for me. it should be same for BLOB. <xsd:element name="DOCUMENT" nillable="true" type="xsd:string"> <xsd:annotation> <xsd:appinfo source="appian…
0
mohammedz
Certified Associate Developer
over 8 years ago
Yup I followed the same and used the below expression. Its not working. I am not able to save the process model only
=('INSERT INTO "BPMBUSINESS"."CABCBLOBTESTZUBAIR" (DOCBLOB) VALUES (ac!doc))')
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 8 years ago
Looks like to many parenthesis. Have you tried this: ='INSERT INTO "BPMBUSINESS"."CABCBLOBTESTZUBAIR" (DOCBLOB) VALUES (ac!doc)'
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammedz
Certified Associate Developer
over 8 years ago
Yup i have tried this too but seems to be not working
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammedz
Certified Associate Developer
over 8 years ago
@Ankit
I have published the CDT and DataStore
When i try fetching the table data using a QueryRule I am not getting data
Getting the below Error
There was an error testing the rule:
Expression evaluation error in rule 'blob_getdata' at function 'queryruleexec': Error evaluating function 'queryruleexec' : Unexpected error executing query (type: [CABCBLOBCDTDT23013], query: [BLOB_getData], order by: [[]], filters:[(ID = TypedValue[it=1,v=5])])
Any idea how to fetch data ??
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 8 years ago
The documentation states to include the question mark. Have you tried this?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammedz
Certified Associate Developer
over 8 years ago
@stefan
Yup I added the ? .. but when I try to save expression is giving error like invalid character is der like that
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 8 years ago
I deployed the plugin tried to provide some SQL text to it. Try something like this
="INSERT INTO ""BPMBUSINESS"".""CABCBLOBTESTZUBAIR"" (DOCBLOB) VALUES (?)"
I did not test whether it works or not, but this should get you started.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammedz
Certified Associate Developer
over 8 years ago
Thanks stefan...!!! Looks to be the text which posted worked for Receiving BLOB into Appian
Let me check it for sending..!!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 8 years ago
You are very welcome :-)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammedz
Certified Associate Developer
over 8 years ago
For sending the doc as BLOB i am using insert query. I have tried multiple combination but still I am getting the below error
java.sql.SQLSyntaxErrorException: ORA-00947: not enough values
Got to know the error why this is happening as we are passing (?) it is throwing ORA Error
@stefan
Any thought like how can we overcome this ....?? Eager to know your thought so that it would be helpful for me to proceed further
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<
>