Random sql error in one store. Error Number:102,State:1,Class:15 #208
-
Random error with one (of four) uses of store on an installation. DNN v. 09.07.02 (0) OpenStore 4.1.2; System.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near '{'. Incorrect syntax near the keyword 'and'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 9 replies
-
Are you using a custom template that modifies the sql statements? |
Beta Was this translation helpful? Give feedback.
-
Is it portal specific? |
Beta Was this translation helpful? Give feedback.
-
Oh no. It is happening with other portals now. Clearing the cache and re starting server/application corrects the error. |
Beta Was this translation helpful? Give feedback.
-
Any additional error info? |
Beta Was this translation helpful? Give feedback.
-
Only thing that is consistent - from admin log- Message:Incorrect syntax near '{'. Incorrect syntax near the keyword 'and'. |
Beta Was this translation helpful? Give feedback.
-
I have also run the "Store Validation" command from tools. It doesn't seem to complete. |
Beta Was this translation helpful? Give feedback.
-
This looks like the installation needs to have SQL profiler running in an acceptable environment so that one can expose the query that is getting executed and then we can get to root. If that is possible on your side then I'm pretty sure that's the right path forward. Others can chime in if they have some better insights. |
Beta Was this translation helpful? Give feedback.
-
Not sure if I can. I don't have ownership rights to sql server. I noticed that there are a large number of files in the NBSTemp directory... I think there were over 19,000. I've removed these files and re started store. Seems like a lot. Is that supposed to be or is there some mechanism that cleans up the temp directory? |
Beta Was this translation helpful? Give feedback.
-
Is the store in debug mode? |
Beta Was this translation helpful? Give feedback.
-
Is the Store Validation process returning the green success message? |
Beta Was this translation helpful? Give feedback.
-
I am not sure what is happening. It may be more than one thing. If you repeat the Store Validation process it may "catch up" and clean up possible db issues. It doesn't really solve the cause though. We may have had an issue with orphans in a previous versions and this may be affecting you but I'm throwing spaghetti at the wall now. I hate sounding like a broken record but upgrading would be a wise move. If there was a bug in an earlier version it could get corrected by the upgrade. |
Beta Was this translation helpful? Give feedback.
-
Issue with upgrade to 4.1.7. Would it be OK if I start a new thread? |
Beta Was this translation helpful? Give feedback.
I am not sure what is happening. It may be more than one thing. If you repeat the Store Validation process it may "catch up" and clean up possible db issues. It doesn't really solve the cause though. We may have had an issue with orphans in a previous versions and this may be affecting you but I'm throwing spaghetti at the wall now. I hate sounding like a broken record but upgrading would be a wise move. If there was a bug in an earlier version it could get corrected by the upgrade.