Skip to main content
Closed

On creation error ignore also skip the grant select error

Related products:Software Factory

Sometimes when creating a view/function/stored procedure you get an error that you want to ignore during creation (for example when an external view or linked server is not accessible on development and is outside the scope of the branch). 

Error: 'Invalid object name'

You can select ignore error and continue execution. 
Doing this will give you a 2nd error on the same object: 

An unknown error occurred while executing '
grant select on "[object]" to public       
'. 

Error: 'Cannot find the object '[object]', because it does not exist or you do not have permission.'.

If you have multiple errors you will have to do a lot of skipping times 2. If possible please skip the grant select on the part you are ignoring. 

Did this topic help you find an answer to your question?

4 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Erwin,

Not sure how long we will continue granting public rights as with Indicium it is no longer a feature that is needed. In case your models do not need public rights to operate, you can disable the granting of rights to the public role by adding the model tag "NO_GRANT_TO_PUBLIC” for the Model.


Mark Jongeling
Administrator
Forum|alt.badge.img+23
NewOpen

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9

Given the point Mark already raised and the fact that this idea hasn't received any votes, we've decided to close this idea.


Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
OpenClosed

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings