DATA Step, Macro, Functions and more

ERROR: Access Violation occurred during PREPARE!

Reply
Frequent Contributor
Posts: 101

ERROR: Access Violation occurred during PREPARE!

Not exactly use what this error is suppose to mean.  Is it possible to turn on the VERBOSE option to get more details?

PROC Star
Posts: 1,283

Re: ERROR: Access Violation occurred during PREPARE!

Posted in reply to tomcmacdonald

What code generated the error?

Super User
Posts: 13,542

Re: ERROR: Access Violation occurred during PREPARE!

Posted in reply to tomcmacdonald

If this is from the FedSQL prepare it may be that you are attempting to update a data source where you do not have the correct permissions.

 

Just guessing from the "access violation".

 

Or possibly a spelling error?

Frequent Contributor
Posts: 101

Re: ERROR: Access Violation occurred during PREPARE!

[ Edited ]

It's generated when trying to insert into a FEDSQL table.  Are there any debugging options to see where this is going wrong?  

 

Also this problem only arises when I use PROC DS2 packages. 

Super User
Posts: 3,918

Re: ERROR: Access Violation occurred during PREPARE!

Posted in reply to tomcmacdonald

If you search the SAS Support site for access violations:

https://support.sas.com/en/search.htm.html?q=access%20violation

 

You will get around 1,769 hits. In other words this is generic error that can be caused by badly-behaving software across the whole breadth of the SAS product range.

 

At the very least provide a SAS log of both the code and the errors. Also if possible provide your code separately plus some test data that will reproduce the error so that others can try it.

Ask a Question
Discussion stats
  • 4 replies
  • 89 views
  • 0 likes
  • 4 in conversation