Privilege exception when creating a datasource

Questions and answers regarding general SQL and backend databases

Privilege exception when creating a datasource

Postby davide.bovio » Mon Feb 27, 2012 10:28 am

Sometimes, when I try to create a datasource from a dataset got by query
Code: Select all
var vDatasetRateiDip = databaseManager.getDataSetByQuery(globals._serverEpi2, _vQuery, _vArr, 100)   
var vDataSourceRateiDip = vDatasetRateiDip.createDataSource('vDataSourceRateiDip')


I get the following Servoy exception:

Exception Object: com.servoy.j2db.dataprocessing.DataException: user lacks privilege or object not found: VARIAZIONE
MSG: user lacks privilege or object not found: VARIAZIONE
is a ServoyException
Errorcode: 100

user lacks privilege or object not found: VARIAZIONE
> com.servoy.j2db.dataprocessing.DataException: user lacks privilege or object not found: VARIAZIONE

I've tried many ways to get why this happens (changing column names, defining column types...) but I can't understand anyway.
It only happens with some columns, apparently random...

Have you ever faced this problem?
Where I'm getting wrong?
davide.bovio
 
Posts: 10
Joined: Fri Feb 03, 2012 2:53 pm

Re: Privilege exception when creating a datasource

Postby davide.bovio » Mon Mar 05, 2012 5:18 pm

The problem seems to arise when you have in memory two or more datasource with the same name.
Giving an unique datasource name solves the problem.
davide.bovio
 
Posts: 10
Joined: Fri Feb 03, 2012 2:53 pm


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 28 guests

cron