cancel
Showing results for 
Search instead for 
Did you mean: 

Error using materialized view

Former Member
2,482

I've create and enabled some materialized view with immediate refresh. Materialized view reference a table filled by trigger. When I use my app I receive this error:

Error code -141
SQLSTATE = S0002
[Sybase][ODBC Driver][SQL Anywhere]Table not found '_^_^_22072007_^_^_1962_^_^_22072007_^_^_'

Obviously that table description it's not a real table. I use ASA 16.0.0 build 1691

Thanks in advance

Former Member
0 Kudos

Can you post the schema for your tables, the materialized view and the trigger?

Former Member
0 Kudos

Here I attach my schema, I hope it's helpful because it contains several objects. Tables involved are:

dba.riga_documento which triggers t_riga_documento_ai that writes in dba.riga_doc_magazzino.

Materialized view select on dba.riga_doc_magazzino.

A particular it's that the trigger t_riga_documento_ai, in some circumstances, updates another record of dba.riga_documento ( the same starting table ) causing updates on dba.riga_doc_magazzino.

I think this is the case causing the error code

VolkerBarth
Contributor
0 Kudos

Hm, I can't find your attachment...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry, I'm trying again but upload doesn't work. After I've selected the file, i wait some second for the upload and then I don't see the file I've previously selected. My reload.sql file is 11 MB and I've splitted in 8 smaller files, but I can't attach the smaller one

Former Member
0 Kudos

I think you have to have a certain number of "points/credits" to be able to upload an attachment

MCMartin
Participant
0 Kudos

I think 100 should be enough...

VolkerBarth
Contributor

I don't think I would be interested in reading a 11 MB SQL script here - can't you extract some essential parts?

VolkerBarth
Contributor
0 Kudos

At least 100 points are what the FAQ does tell:)