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
13 replies
Subscribers
8 subscribers
Views
5971 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hello Everybody, Has anybody encountered a problem where a datastore
Jin Pheh
Certified Associate Developer
over 10 years ago
Hello Everybody,
Has anybody encountered a problem where a datastore is valid yet you are unable to query an object from it? I am running into exactly this problem where both queryEntity expressions and query rules fail to read the object and throw the following error:
ERROR org.hibernate.util.JDBCExceptionReporter - ORA-00942: table or view does not exist
...
OriginalPostID-130212
OriginalPostID-130212
Discussion posts and replies are publicly visible
0
Mark Talbot
Appian Employee
over 10 years ago
Have you turned on logging to output your SQL statements?
Add the following to your appian_log4j.properties:
log4j.logger.org.hibernate.SQL=DEBUG
Once you turn on SQL trace statements, try to determine if the tables in the SQL statements exist in your database.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jin Pheh
Certified Associate Developer
over 10 years ago
Doesn't the datastore validation guarantee that the table exists and that appian has access to it?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mark Talbot
Appian Employee
over 10 years ago
There are a couple of things that could be going on and the detailed log statements will help to determine the root cause. Can you also attach the full stack trace to this post?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jin Pheh
Certified Associate Developer
over 10 years ago
That's another concerning thing - that was the entire stack trace. There are no further lines with matching timestamps (at least nothing with a couple of minutes).
17:57:42,602 INFO [stdout] (ajp-/0.0.0.0:8009-6) 2014-11-25 17:57:42,602 [ajp-/0.0.0.0:8009-6] ERROR org.hibernate.util.JDBCExceptionReporter - ORA-00942: table or view does not exist
17:57:42,602 INFO [stdout] (ajp-/0.0.0.0:8009-6)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jin Pheh
Certified Associate Developer
over 10 years ago
Here is the debug output from the jboss log with the SQL debug enabled.
LogOutput.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
abhi.jana
Appian Employee
over 10 years ago
You may also want to check directly in the database if the table/view exists and if the schema configured with Appian has the appropriate privileges granted. It may be possible that the table may have been deleted after the validation was done.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jin Pheh
Certified Associate Developer
over 10 years ago
I have verified the data store many times before and after the error occurred. It still says the connection and table are correct. For what it's worth I have also checked the permissions and access on the database directly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkats533
over 10 years ago
what is the database Oracle or My SQL ? If Oracle, look into the case mismatch in table, primary key field name, etc.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sanjay
over 10 years ago
Did you experiment with Query Database node? To try out a simple query to the affected table/view via both 'pre-defined data source' and 'custom data source' options.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
saravanana
over 9 years ago
Same issue we are also facing.. datastore created successfully, but not able to query data using query entity and record as well
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>