Error creating document from using list using Document Template

Hi All,
I am trying to create a document from sharepoint list and upload it to a document library using item added and item updated event receiver methods. I can create metadata from list update in document library but unable to open the document. The error message
I get is "we're sorry. we can't open "Filename" because we found a problem with its contents. no error detail available". Please see the below code.
SPSecurity.RunWithElevatedPrivileges(delegate()
                   try
                       string TemplateUrl = string.Empty;
                       SPWeb web = properties.OpenWeb();
                       web.AllowUnsafeUpdates = true;
                       SPDocumentLibrary olist = web.Lists["NewLibList"] as SPDocumentLibrary;
                       String url = olist.RootFolder.ServerRelativeUrl.ToString();
                       SPFile file = null;
                       file = web.GetFile(olist.DocumentTemplateUrl);
                       if (file != null)
                           SPListItem oItems = properties.ListItem;
                           web.AllowUnsafeUpdates = true;
                           byte[] readStream = file.OpenBinary();
                           SPFile uploadedFile = olist.RootFolder.Files.Add("http://site/subsite/Libraryname/" + properties.ListItemId.ToString() + ".docx", readStream,
true);
                           SPListItem listitem = uploadedFile.Item;
                           listitem["Firstname"] = oItems["Firstname"];
                           listitem["Lastname"] = oItems["Lastname"];
                           if (uploadedFile.CheckOutType != SPFile.SPCheckOutType.None)
                               uploadedFile.CheckIn(string.Empty);
                           listitem.Update();
                           uploadedFile.Update();
                           web.AllowUnsafeUpdates = false;
                   catch (Exception ex)
                       EventLog.WriteEntry(EventLogName, ex.Message, EventLogEntryType.Error);

Hi,
Please try to use the code below:
SPSecurity.RunWithElevatedPrivileges(delegate()
try
string TemplateUrl = string.Empty;
SPWeb web = properties.OpenWeb();
web.AllowUnsafeUpdates = true;
SPDocumentLibrary olist = web.Lists["NewLibList"] as SPDocumentLibrary;
String url = olist.RootFolder.ServerRelativeUrl.ToString();
SPFile file = null;
file = web.GetFile(olist.DocumentTemplateUrl);
if (file != null)
SPListItem oItems = properties.ListItem;
web.AllowUnsafeUpdates = true;
Stream readStream = file.OpenBinaryStream(); //file is SPFile type
SPFile uploadedFile = olist.RootFolder.Files.Add("http://site/subsite/Libraryname/" + properties.ListItemId.ToString() + ".docx", readStream, true);
uploadedFile.CheckOut();
SPListItem listitem = uploadedFile.Item;
listitem["Firstname"] = oItems["Firstname"];
listitem["Lastname"] = oItems["Lastname"];
listitem.Update();
uploadedFile.Update();
uploadedFile.CheckIn(string.Empty);
web.AllowUnsafeUpdates = false;
catch (Exception ex)
EventLog.WriteEntry(EventLogName, ex.Message, EventLogEntryType.Error);
If the issue still exists, I suggest you dubug your code and check whether line of code error.
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support

Similar Messages

  • Thread: 11gPS2 : Error creating model from wsdl while creating a WebService

    Hi ,
    I am trying to create a Web Service Proxy using Jdev.I am using a WSDL file located in my local system for the same. I choose all default options but the proxy is not created due to the following error -
    "Error creating model from wsdl <wsdl_name> : A class/interface with the same name xyz already in use"
    https://picasaweb.google.com/sudipto.desmukh/ADFIssues?authkey=Gv1sRgCJeF2bWcoM_ZBg#5610073699826050514
    I found a few threads which had similar issues but the solutions didnot work for me -
    1)Error creating model from wsdl (Create separate model projects for proxies , since in the existing model project I already had generated files using create WebServiceData control wizard)
    2)Error when creating Web Service Proxy (there are no duplicate variables or schemas in my wsdl)
    Can someone please suggest what might be wrong ?
    Thanks

    Thanks for your reply Vishal.Pasting the wsdl -
    <definitions xmlns:m11="urn:iwaysoftware:ibse:jul2003:ZBAPI_SALES_DOC_FLOW:response" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:m1="urn:iwaysoftware:ibse:jul2003:ZBAPI_SALES_DOC_FLOW" targetNamespace="urn:schemas-iwaysoftware-com:iwse" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:schemas-iwaysoftware-com:iwse" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"><types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:schemas-iwaysoftware-com:iwse" elementFormDefault="qualified"><xs:element name="ibsinfo"><xs:complexType><xs:sequence><xs:element name="service" type="xs:string"/><xs:element name="method" type="xs:string"/><xs:element name="license" type="xs:string"/><xs:element name="disposition" type="xs:string" minOccurs="0"/><xs:element name="Username" type="xs:string" minOccurs="0"/><xs:element name="Password" type="xs:string" minOccurs="0"/><xs:element name="language" type="xs:string" minOccurs="0"/></xs:sequence></xs:complexType>
    </xs:element><xs:element name="adapterexception"><xs:complexType><xs:sequence><xs:element name="error" type="xs:string"/></xs:sequence></xs:complexType></xs:element>
    </xs:schema><xs:schema xmlns:m1="urn:iwaysoftware:ibse:jul2003:ZBAPI_SALES_DOC_FLOW" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:iwaysoftware:ibse:jul2003:ZBAPI_SALES_DOC_FLOW" xmlns:rfc="urn:iwaysoftware:ibse:jul2003:ZBAPI_SALES_DOC_FLOW" elementFormDefault="qualified"><xs:element name="ZBAPI_SALES_DOC_FLOW"><xs:complexType><xs:sequence><xs:element name="ZBAPI_SALES_DOC_FLOW"><xs:complexType><xs:all><xs:element name="BELEGTYP" minOccurs="0"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="COMWA" type="rfc:VBCO6" minOccurs="0"/><xs:element name="I_BSTKD" minOccurs="0"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="35"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="I_VBELN" minOccurs="0"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="N_STUFEN" minOccurs="0"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="2"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="V_STUFEN" minOccurs="0"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="2"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="T_DOCFLOW" minOccurs="0"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="item" type="rfc:ZVDOCFLOW" minOccurs="0"/></xs:sequence></xs:complexType>
    </xs:element><xs:element name="T_IDOCINFO" minOccurs="0"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="item" type="rfc:ZVIDOCINFO" minOccurs="0"/></xs:sequence></xs:complexType>
    </xs:element><xs:element name="T_RETURN" minOccurs="0"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="item" type="rfc:BAPIRET2" minOccurs="0"/></xs:sequence></xs:complexType>
    </xs:element><xs:element name="VBFA" minOccurs="0"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="item" type="rfc:VBFA" minOccurs="0"/></xs:sequence></xs:complexType></xs:element></xs:all></xs:complexType></xs:element></xs:sequence></xs:complexType>
    </xs:element><xs:complexType name="ZVIDOCINFO"><xs:sequence><xs:element name="DOCNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="IDOCNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="16"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="CREDAT"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{4}-\d{2}-\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="STATUS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="2"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="DESCR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="73"/></xs:restriction></xs:simpleType></xs:element></xs:sequence>
    </xs:complexType><xs:complexType name="BAPIRET2"><xs:sequence><xs:element name="TYPE"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ID"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="20"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="NUMBER"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="220"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="LOG_NO"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="20"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="LOG_MSG_NO"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE_V1"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="50"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE_V2"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="50"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE_V3"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="50"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE_V4"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="50"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="PARAMETER"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="32"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ROW" type="xs:int"/><xs:element name="FIELD"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="30"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="SYSTEM"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType></xs:element></xs:sequence>
    </xs:complexType><xs:complexType name="ZVDOCFLOW"><xs:sequence><xs:element name="VBELN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="POSNN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MATNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="18"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="DESCR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="132"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ERDAT"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{4}-\d{2}-\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="RFMNG"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MEINS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="BEZEI"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="20"/></xs:restriction></xs:simpleType></xs:element></xs:sequence>
    </xs:complexType><xs:complexType name="VBFA"><xs:sequence><xs:element name="MANDT"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VBELV"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="POSNV"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VBELN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="POSNN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VBTYP_N"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="RFMNG"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MEINS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="RFWRT"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="2" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="WAERS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="5"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VBTYP_V"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="PLMIN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="TAQUI"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ERDAT"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{4}-\d{2}-\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ERZET"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{2}:\d{2}:\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MATNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="18"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="BWART"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="BDART"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="2"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="PLART"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="STUFE"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="2"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="LGNUM"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="AEDAT"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{4}-\d{2}-\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="FKTYP"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="BRGEW"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="GEWEI"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VOLUM"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VOLEH"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="FPLNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="FPLTR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="RFMNG_FLO" type="xs:double"/><xs:element name="RFMNG_FLT" type="xs:double"/><xs:element name="VRKME"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ABGES" type="xs:double"/><xs:element name="SOBKZ"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="SONUM"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="16"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="KZBEF"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="NTGEW"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="13"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="LOGSYS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="WBSTA"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType></xs:element></xs:sequence>
    </xs:complexType><xs:complexType name="VBCO6"><xs:sequence><xs:element name="MANDT"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VBELN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="POSNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ETENR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="4"/></xs:restriction></xs:simpleType></xs:element></xs:sequence></xs:complexType>
    </xs:schema><xs:schema xmlns:m11="urn:iwaysoftware:ibse:jul2003:ZBAPI_SALES_DOC_FLOW:response" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:iwaysoftware:ibse:jul2003:ZBAPI_SALES_DOC_FLOW:response" xmlns:rfc="urn:iwaysoftware:ibse:jul2003:ZBAPI_SALES_DOC_FLOW:response" elementFormDefault="qualified"><xs:element name="ZBAPI_SALES_DOC_FLOWResponse"><xs:complexType><xs:sequence><xs:element name="ZBAPI_SALES_DOC_FLOW.Response"><xs:complexType><xs:all><xs:element name="BELEGTYP_BACK" minOccurs="0"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="T_DOCFLOW" minOccurs="0"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="item" type="rfc:ZVDOCFLOW" minOccurs="0"/></xs:sequence></xs:complexType>
    </xs:element><xs:element name="T_IDOCINFO" minOccurs="0"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="item" type="rfc:ZVIDOCINFO" minOccurs="0"/></xs:sequence></xs:complexType>
    </xs:element><xs:element name="T_RETURN" minOccurs="0"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="item" type="rfc:BAPIRET2" minOccurs="0"/></xs:sequence></xs:complexType>
    </xs:element><xs:element name="VBFA" minOccurs="0"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="item" type="rfc:VBFA" minOccurs="0"/></xs:sequence></xs:complexType></xs:element></xs:all></xs:complexType></xs:element>
    </xs:sequence><xs:attribute name="cid" use="required" type="xs:string"/></xs:complexType>
    </xs:element><xs:complexType name="ZVIDOCINFO"><xs:sequence><xs:element name="DOCNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="IDOCNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="16"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="CREDAT"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{4}-\d{2}-\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="STATUS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="2"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="DESCR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="73"/></xs:restriction></xs:simpleType></xs:element></xs:sequence>
    </xs:complexType><xs:complexType name="BAPIRET2"><xs:sequence><xs:element name="TYPE"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ID"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="20"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="NUMBER"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="220"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="LOG_NO"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="20"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="LOG_MSG_NO"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE_V1"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="50"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE_V2"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="50"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE_V3"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="50"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MESSAGE_V4"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="50"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="PARAMETER"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="32"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ROW" type="xs:int"/><xs:element name="FIELD"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="30"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="SYSTEM"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType></xs:element></xs:sequence>
    </xs:complexType><xs:complexType name="ZVDOCFLOW"><xs:sequence><xs:element name="VBELN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="POSNN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MATNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="18"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="DESCR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="132"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ERDAT"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{4}-\d{2}-\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="RFMNG"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MEINS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="BEZEI"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="20"/></xs:restriction></xs:simpleType></xs:element></xs:sequence>
    </xs:complexType><xs:complexType name="VBFA"><xs:sequence><xs:element name="MANDT"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VBELV"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="POSNV"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VBELN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="POSNN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VBTYP_N"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="RFMNG"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MEINS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="RFWRT"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="2" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="WAERS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="5"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VBTYP_V"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="PLMIN"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="TAQUI"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ERDAT"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{4}-\d{2}-\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ERZET"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{2}:\d{2}:\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="MATNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="18"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="BWART"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="BDART"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="2"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="PLART"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="STUFE"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="2"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="LGNUM"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="AEDAT"><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="\d{4}-\d{2}-\d{2}"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="FKTYP"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="BRGEW"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="GEWEI"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VOLUM"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="15"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="VOLEH"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="FPLNR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="FPLTR"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="6"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="RFMNG_FLO" type="xs:double"/><xs:element name="RFMNG_FLT" type="xs:double"/><xs:element name="VRKME"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="3"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="ABGES" type="xs:double"/><xs:element name="SOBKZ"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="SONUM"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="16"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="KZBEF"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="NTGEW"><xs:simpleType><xs:restriction base="xs:decimal"><xs:totalDigits value="13"/><xs:fractionDigits value="3" fixed="true"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="LOGSYS"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="10"/></xs:restriction></xs:simpleType>
    </xs:element><xs:element name="WBSTA"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="1"/></xs:restriction></xs:simpleType></xs:element></xs:sequence></xs:complexType></xs:schema>
    </types><message name="ZBAPI_SALES_DOC_FLOWIn"><part element="m1:ZBAPI_SALES_DOC_FLOW" name="parameters"/>
    </message><message name="ZBAPI_SALES_DOC_FLOWOut"><part element="m11:ZBAPI_SALES_DOC_FLOWResponse" name="parameters"/>
    </message><message name="ZBAPI_SALES_DOC_FLOWHeader"><part element="tns:ibsinfo" name="header"/>
    </message><message name="AdapterException"><part element="tns:adapterexception" name="fault"/>
    </message><portType name="ZBAPI_SALES_DOC_FLOWSoap"><operation name="ZBAPI_SALES_DOC_FLOW"><documentation/><input message="tns:ZBAPI_SALES_DOC_FLOWIn"/><output message="tns:ZBAPI_SALES_DOC_FLOWOut"/><fault message="tns:AdapterException" name="AdapterExceptionFault"/></operation>
    </portType><binding name="ZBAPI_SALES_DOC_FLOWSoap" type="tns:ZBAPI_SALES_DOC_FLOWSoap"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="ZBAPI_SALES_DOC_FLOW"><soap:operation style="document" soapAction="ZBAPI_SALES_DOC_FLOW.ZBAPI_SALES_DOC_FLOWRequest@production@@"/><input><soap:body use="literal"/><soap:header message="tns:ZBAPI_SALES_DOC_FLOWHeader" use="literal" part="header"/>
    </input><output><soap:body use="literal"/>
    </output><fault name="AdapterExceptionFault"><soap:fault name="AdapterExceptionFault" use="literal"/></fault></operation>
    </binding><service name="ZBAPI_SALES_DOC_FLOW"><documentation/><port name="ZBAPI_SALES_DOC_FLOWSoap1" binding="tns:ZBAPI_SALES_DOC_FLOWSoap"><soap:address location="http://f4ofmsoaa01d.dev.life:8001/ibse/IBSEServlet/XDSOAPRouter"/></port></service></definitions>

  • Error while creating Document Templates

    Hi Experts,
    Am getting an ActiveX error while trying to create a document template designer using a webservice I created in the WST. I have consulted note 1018674 and ensured that the following browser settings are activated but still I keep getting the error.
    - Active Scripting
    - Run Active X Controls and plug-ins
    - Initialize and script ActiveX controls not marked as safe
    Also, since I had been trying to create a microsoft word type of template the system does open an instance of the word doc. Can anyone pls advice?
    How can we ensure that the webservice we have created is working. When I try to test the service in the WST tool, I keep getting the message - URL cannot be retrieved. Does it mean that the service has not been created correctly?

    Check if you done all the following settings...
    .NET Framework-reliant components:
    ○     Run components not signed with Authenticode ® Enable
    ○     Run components signed with Authenticode ® Enable
    ActiveX controls and plug-ins:
    ○     Download signed ActiveX controls ® Enable
    ○     Initialize and script ActiveX controls not marked as safe ® Enable
    ○     Run ActiveX controls and plug-ins ® Enable
    ○     Script ActiveX controls marked safe for scripting ® Enable
    Downloads:
    ○     File download ® Enable
    Miscellaneous:
    ○     Installation of desktop items ® Disable
    Scripting:
    ○     Active scripting ® Enable
    ○     Allow paste operations via script ® Enable
    ○     Scripting of Java applets ® Disable
    ●     To enable groupware integration, adjust the browser settings under Tools ® Internet Optionsu2026 ® Security ® Custom Levelu2026 as follows:
    ActiveX controls and plug-ins:
    ○     Download unsigned ActiveX controls ® Prompt.
    ○     Initialize and script ActiveX controls not marked as safe ® Enable
    ○     Run ActiveX controls and plug-ins ® Enable

  • Error creating request when using CUP in GRC 5.3

    Hello guru's
    when user is trying to create request in CUP , he is facing an error message at top indicating Error Creating Request ,
    The error message is " * Exception in getting the results from the web service : Service call exception; nested exception is:  java.lang.Exception: Incorrect content-type found 'text/html' * "
    can anyone help me how to trace the problem.
    thanks and regards,
    keerthi

    HI all
    I am also gettting same error like this..We created CUP Requests one hour before ..But we are not able to create CUP Requests now.. I got below error message in system log.
    Risk analysis failed: Exception in getting the results from the web service : Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://c700u121.com:50000/SAPGRC_CCRiskAnalysis_V01/Config1?wsdl&style=document"
    2012-03-08 13:05:25,558 [SAPEngine_Application_Threadimpl:3]_23 ERROR com.virsa.ae.core.BOException: Exception in getting the results from the web service : Service call exception; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://c700u121.com:50000/SAPGRC_CCRiskAnalysis_V01/Config1?wsdl&style=document"
    com.virsa.ae.core.BOException: Exception in getting the results from the web service : Service call exception; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://c700u121.com:50000/SAPGRC_CCRiskAnalysis_V01/Config1?wsdl&style=document"
    at com.virsa.ae.accessrequests.bo.RiskAnalysisBO.findViolations(RiskAnalysisBO.java:199)
    at com.virsa.ae.accessrequests.bo.RiskAnalysisBO.findViolations(RiskAnalysisBO.java:80)
    at com.virsa.ae.accessrequests.bo.RequestBO.saveRiskAnalysis(RequestBO.java:4087)
    at com.virsa.ae.accessrequests.bo.RequestBO.saveNewRequest(RequestBO.java:408)
    at com.virsa.ae.accessrequests.actions.CreateRequestAction.createRequest(CreateRequestAction.java:381)

  • Creating Repository from using Archive file (.a2a)

    Hello,
    I Archived a repository from MDM 5.5 SP4 running on Oracle.
    Can I create a repository using that Archived (.a2a) file in MDM 5.5 SP5 running on SQL Server ?
    Is it possible to create like that? Note: Database is different and MDM version is different.
    Thanks!

    Prashant -
    Thanks for your response. I am trying to create a repository in MDM 5.5 SP5 (SQL Server DB) using an Archive file from MDM 5.5 SP4 (Oracle DB) and I get the below information in the mds log file. I am unable to create the repository.
    4248 2011/06/19 10:21:14.734 GMT ErrorRecord->HResult/NativeErr: 0x80040e21/0
    Description: Invalid character value for cast specification.
    Source/File/Line: Microsoft OLE DB Provider for SQL Server/.\OLEDB_DBConnection.cpp/2438
    4248 2011/06/19 10:21:15.062 GMT UnArchiving operation for Customer Master CM1 ended in error
    Any idea why this is so?
    Thanks.

  • Error : Creating PO's using BAPI_PO_CREATE1

    Hi Friends ,
    I have created a program to create PO's using  a  load program . This program is set up to have POs created for each Company Code Vendor, Purchase Org, Plant, Buyer combination. The input fields for the load program are:
    LIFNR       Vendor Number         
    EKORG       Purchasing Organization       
    EKGRP       Purchasing Group              
    BUKRS       Company Code          
    WERKS       Plant         
    EMATN       Material Number       
    MENGE       PO Quantity  
    The input file i have has 3 material nos. 2material nos belong to the same vendor and create 1 PO . The third material no belongs to different vendor and creates a 2nd PO .
    The problem i have is that when i run the progam it creates 2 PO's . The PO which contains 2 material Nos gives me the 2nd line with quantity 1000 instead of 1 .
    The first line and the second line in the PO should have the quantity 1 .
    The first line correctly shows the Po quantity 1  EA.
    The second one shows the PO quantity 1000 LB .
    The error in the return BAPI t_return is :
    "Order quantity violates rounding rules (See long text)"
    Please advise .
    Thank you

    Hi Prabhu ,
    The rounding value for one of the material is 1000.000 and the unit is LB in /NMM03 .
    When i try to upload this material with order quantity 1 . It creates a PO with order quantity 1000.000 and order unit LB . It gives me a warning when creating the PO that
    "Order quantity violates rounding rules (See long text)"
    Please advise .

  • Security violation from using underscores template

    When using the template-function of the well-known underscore.js library I get an error:
    Adobe AIR runtime security violation for JavaScript code in the application security sandbox (Function constructor).
    In the browser this works fine. I don't see any security problems from using templates !?

    I made some more tests: This code
    var compiled = _.template("hello: <%= name %>");
    air.trace(compiled({name : 'moe'}));
    works when executed in  $(document).ready (jQuery), but
    it fails in the air.InvokeEvent.INVOKE-eventlistener, which
    is always triggered after document-ready.
    Seems that everything is fine until the AIR-part of the app
    is up.

  • Error creating subsite from template - SharePoint 2010

    I appreciate the help from anyone who can help in my situation.
    I am trying to create a subsite whose parent is a SharePoint Server 2010 website. When I'm doing that, I go to:
    Site Actions > Create > Sites and Workspaces
    My purpose is to create a subsite using the "Web Databases > Issues Web Database" template. When I do that, the page tries to create a website for a long time, and when it finishes, the following error message page appears:
    Preparing Site ...
    Someone has recently made changes to this site and the site is being updated. If the site remains offline for an extended period of time, contact a site owner. Wait
    a moment and refresh your browser
    However, when I use another template, say "Collaboration > Team Site", such website is created successfully and is fully functional.
    Can anybody help me with this issue? My vast expertise in SharePoint extends to one week. I have no idea how to figure this out.
    Thank you so much for everything! Have a great year.

    you have to create access service application. See below
    You have to make sure you did the following:
    Created a Access Service Application
    (Central Administration – Manage Service Applications – New – Access Services)
    Started the Access Database Service
    (Central Administration – Manage Services on Server)
    then open up the SharePoint 2010 Management Shell, and give the following powershell command: enable-spSessionStateService –DataBaseName <SomeNewDatabaseName>
    above command will create a session state database and turns on the session state service.
    Refresh your browser and you are  all set to go
    http://neelb.wordpress.com/2011/05/12/108/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • MDS_LOAD_COCKPIT Error: Create BP from Customer

    I am creating BP from customer using cockpit transaction. While running PPO, I am getting the below two error for single customer.
    No transfer of interval for object BU_PARTNER
    Message no. NR028
    Diagnosis
    The last number of the internal interval should be assigned.
    Number assignment usually begins in the following call at the start of the interval. However this function is blocked for some number range objects for technical system reasons.
    Procedure
    If possible extend the interval of the affected number range object. If this is not possible you must reorganize the relevant data and reset the interval status manually.
    Business partner ##1 does not exist
    Message no. R1201
    Please suggest.
    Thanks,
    Arpit Kothari

    check the number ranges of the customer account group, and the BP role to ensure they are aligned.

  • Error while switching from price list  while entering  the sales order

    hi
    i am getting this error " App - ont -250271 On line discounting is not allowed ; order type enforces price list"
    while switching from price list column
    I checked the transaction type and it does not have enforce price list check box checked.
    do i have to check some where else?
    Regards
    sudharshan.

    Hello,
    Did you fill lines? and after this you want change price list on the header?
    Check your price list, modifier and qualifier set-up because it seems that there is a problem.
    Regards,
    Luko

  • Creat SC from Old Purchase Orders and Templates - Price not copied

    Hi Experts,
    When Creating SC usinfg  Old Purchase Orders and Templates interface ,
    All details are copied from Old SC to the New one , except the unit price of the item (It is created with price O )
    Please advise where we can set to copy the price also.
    Best Regards,
    Moshe

    15.02.2010 - 14:10:05 CET - Reply by SAP     
    Dear Moshe,
    Thank you for contacting SAP Active Global Support.
    I have logged on to the system and have checked the behaviour with the
    SC: 1000007814. The item in this SC is an catalog item, that means it
    has an catalog price too, which is 0 in this case.
    If you are using the copy function, the system validate the item, and
    set the original values (in this case the price) back to the standard.
    This is the standard behaviour of the system.
    Please use the catalog with price, as designed scenario.
    Kind Regards,
    Laszlo Tordai
    Support Consultant
    Active Global Support - Logistics

  • Create Activity from Activity WB allows without template

    Able to create activity from activity workbench without template, and allows user to clear , delete the template value.

    Implement these two BADI:
    1. BADI: Campaign Determination
    2. BADI: PAI Processing of Survey Data in Campaign Automation
    Note: In the seconde BADI modify the method to add your transaction type.
    IMG>Customer Relationship Management>Marketing>Marketing Planning anc Campaign Management>Campaign Automation-->Business AddIns
    Let me know if you have any questions!

  • For some reason pages won't let me save a document from using a template?

    the save button doesnt even show only save as. does anyone know how to solve this please?

    What save button are we talking about? There is none.
    A template is always Save As… otherwise you would overwrite the template.
    A template is a template, it is the start of another document but set up as a good starting point.
    Peter

  • Error creating Crystal Report using Stored Proc Universe

    Hi,
    I have created a stored procedure Universe, using the new feature available in XI R3.
    This connects to an Oracle database, executing a PL/SQL procedure returning ref cursor.
    I have created a WebI report using this Universe, which works fine and functions as expected.
    So there are no problems with either my Oracle stored proc or the Universe.
    However, I would like to create a Crystal report (2008) using the same Universe.
    I can create the report ok - using the SP Universe.
    When I attempt to refresh the data I get an error:
    Failed to retrieve data from the database.
    Details: ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "." when expecting one of the following:
    begin case declare etc etc
    .................................My Procedure ...................
    CREATE OR REPLACE PROCEDURE BIADM.Bo_Test_Report_R
    (Deposit_Cursor IN OUT SYS_REFCURSOR)
    IS
    BEGIN
    OPEN Deposit_Cursor FOR
    SELECT DISTINCT foracid "A/C"
    , acct_name "A/C Name", acct_opn_date "OP/Date", schm_code "SchmCode"
    FROM gam@finrpt
    WHERE acct_cls_flg ='N'
    AND foracid ='2252020145001';
    --AND cust_id ='CB2020145'
    END Bo_Test_Report_R;
    Please Give me solution as early as possible.
    Masud Iqubal

    Moved to Universe Design forum.

  • ORA-29855 - Error creating Spatial Index using a Stored Procedure

    Hi
    I am using Oracle 10gR2 database and I have written a stored procedure to create spatial index. But when i execute this function i get the following error message.
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in R-tree: [mdrcrtscrt]
    ORA-13231: failed to create index table [MDRT_217C1$] during R-tree creation
    ORA-13249: Stmt-Execute Failure: CREATE TABLE FGDABZ40.MDRT_217C1$ (NODE_ID NUMBER, NODE_LEVEL NUMBER, INFO BLOB) LOB (INFO) STORE AS (CACHE) NOLOGGING PCTFREE 2
    ORA-29400: data cartridge error
    ORA-01031: insufficient privileges
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    ORA-06512: at line 1
    ORA-06512: at "FGDABZ40.PKG_PSSDBE_APPLICATION", line 298
    ORA-06512: at line 17
    The tables that i am passing are registered in metadata and I am able to create indexes directly in sql plus. But when i try to create using this stored procedure, it fails.
    it should be possible to create indexes using a generic function. Has any faced a similar problem?
    regards
    sam

    Hi,
    I am having a same error on Oracle 10gR2 database. When I execute the same statement in sqlplus, it works. But it gives this error when I call the procedure which has this create spatial index statement.
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in R-tree: [mdrcrtscrt]
    ORA-13231: failed to create index table [MDRT_20CDA$] during R-tree creation
    ORA-13249: Stmt-Execute Failure: CREATE TABLE "SDOMGR".MDRT_20CDA$ (NODE_ID NUMBER, NODE_LEVEL NUMBER, INFO BLOB) LOB (INFO) STORE AS (CACHE) NOLOGGING PCTFREE 2
    ORA-29400: data cartridge error
    ORA-01031: i
    Any help will be appreciated.
    Thanks,
    Sri

Maybe you are looking for

  • Keyboard not working at boot and CD won't boot

    Hello everyone, I think I have a very particular issue that hasn't happened to many people since I could not find any topics talking about this already. Before I begin, let me excuse myself for my bad english writing.. it ain't my primary language. O

  • CD/DVD drive won't accept discs?

    I'm trying to play a DVD in my disc drive. I have an HP Pavilion slimline, model should not matter because it is just an issue with playing discs. It has the Vertical disc drive.  So I have the small DVDs that go in video cameras. There is clearly a

  • Windows Server 2012 Essentials not listed in EasyStartu​p 3.8.1d for TS140

    Recently purchased a TS140 (70A4 001RUS). Came factory installed RAID 1 with Windows Server 2012 Essentials pre-installed. Needed to reinstall, however: - Windows Server 2012 Essentials does not show up in EasyStartup 3.8.1c DVD that came with server

  • Populating textbox in jsf on clicking submit button

    I am having inputText box, dropdownlist , outputText box and a submit button in my jsp page. I am pre populating the dropdown list from my managed bean. Also setting the values using setter methods that is input in inputText box and dropdownlist usin

  • Non-valuated material to be made valuated

    Hi Experts My client currently using non-valuated material (unbw). From now onwards, this material need to be valuated (Both value update and quantity update) Request to know the feasibility and how to make existing stock valuated. Wish to know any o