Share |

ORA-02201: sequence not allowed here

Unfortunately, we do not have our own description yet for this Oracle error code. We give you the explanation of the Oracle help file in the mean time.
Although we try to provide custom solutions, we do not have a solution yet for all Oracle Error Messages. We apologize for that. You can use the feedback part to indicate this was not helpfull and we'll try to prioritize the creation of a satisfying solution.
*Cause: An attempt was made to reference a sequence in a from-list.
*Action: A sequence can only be referenced in a select-list.
 Was this information helpful?  Yes No
If it was not helpful, please take some time to explain why. This is not to ask questions, you can do so in the forum.

Welcome to our forum for Oracle error: ORA-02201 Add your own message



Enter your me EmpXmlDoc As New XmlDocument()Dim EmpXmlRootNode As XmlNode = EmpXmlDoc.SelectSingleNode("records")Dim conStr As String = ConfigurationManager.AppSettings("UGCConnection")

 

 

 

 

 

 

 

 

 

 

 

Dim

con As New

OracleConnection(conStr)

con.Open()

 

' Create the command.

 

 


Dim cmd As New OracleCommand(""

, con)

 

' Set the XML command type to insert.

cmd.XmlCommandType = OracleXmlCommandType.Insert

 


 

' Set the XML document.

 

 


Dim xmlDocText As String

= EmpXmlRootNode.InnerXml

cmd.CommandText = xmlDocText.Trim

 

' Set the XML save properties.

 

 

cmd.XmlSaveProperties.RowTag =

"record"

cmd.XmlSaveProperties.Table =

"EMPTest"

 




 

' Do the insert

 

cmd.ExecuteNonQuery()


         I am inserting XML file data into Oracle Table by Using Above code. but it gives me this error " ORA-02201: sequence not allowed here"

Please give me Solution if any one have.

Thanks

 


ssage

 

 







Dim

EmpXmlDoc.Load(Path)

 

 

Add your message

 Please provide your personal info 



 Please ask your message as briefly and clear as possible 

 Spam Protection 
Validation Code: fgsgf6mjigjvg3t87


Ask Your Question

If you need more information about this particular error message, you can leave a forum message.

We are replying to this message whenever we have some spare time, so please do not consider this as a private 'solve my critical issue asap' service.

Should you need professional Oracle Assistance to make your project a success, please have a look at our consultancy services.


Spam Protection

In order to prevent automatic generation of messages, we are asking for a validation code. This code is unique and is generated every time a new message is asked.

If you do not enter the validation correctly, your message will not be recorded.


Forum Rules

Please be polite, do not USE ALL UPPERCASE, no insults, violance or any other threats.