web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Error updating record via webservice

(0) ShareShare
ReportReport
Posted on by 20

Hi all: I hope some of you can help me with this error I'm getting from Navision. I am developing a web application that communicates with Navision via web services, I discuss the pages through the web service of Navision and read these data, records and update records I think. The application is developed with C # using Visual Studio 2010, add web services using "Add Web Reference" and it generates the code without any problems. Read data, update records and think. But suddenly I started getting an error when creating products that until now had not had: Invalid name character in 'soap: Envelope'. The ':' character, hexadecimal value 0x3A, can not be included in a name. I get this error when filling a particular field to update a product, if not fill this field do not get the error and the record is saved successfully, but the error is not data that you pass or anything because if I miss this area, in some cases, also gives me this error but I could not identify the field that is caused on this occasion. I hope someone can help me or give some indication because I've already tried everything and it does not fix it. Thanks in advance to all, Greetings. PS: I attached data I get the exception. Data Server Event Viewer: Service: MicrosoftDynamicsNavWS User: XXXXXX \ YYYYYYYY (Here the user who launched the petition) Type: System.Reflection.TargetInvocationException Message: Exception Has Been Thrown by the target of an invocation. StackTrace: at System.RuntimeMethodHandle._InvokeMethodFast (Object target, Object [] arguments, SignatureStruct & sig, MethodAttributes MethodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast (Object target, Object [] arguments, Signature sig, MethodAttributes MethodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke (Object obj, BindingFlags invokeAttr, Binder binder, Object [] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke (Object obj, BindingFlags invokeAttr, Binder binder, Object [] parameters, CultureInfo culture) at at Microsoft.Dynamics.Nav.Service.WebServices.XmlWWriter.SetNamespace (QNamespace namespace, XmlCallback nodeHandler) at input, output XmlWWriter) at at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler. <> c__DisplayClass9. b__8 () at Microsoft.Dynamics.Nav.Service.WebServices.XmlWWriter.Element (String name, XmlCallback elementHandler) at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler. <> c__DisplayClass9. b__7 () at Microsoft.Dynamics.Nav.Service.WebServices.XmlWWriter.Element (String name, XmlCallback elementHandler) at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler. <> c__DisplayClass9. b__6 () at Microsoft.Dynamics.Nav.Service.WebServices.XmlWWriter.SetNamespace (QNamespace namespace, XmlCallback nodeHandler) at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler.BuildEnvelop (XmlWWriter output, ContentHandler handler) at input, output XmlWWriter) at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.DispatchSoap (URLParser relivantURLPart, XmlReader input, TextWriter output) at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke (isSoapMessage Boolean, String serviceName, Uri url, XmlReader input, TextWriter output, String sid) Source: mscorlib ---------------------------------- Type: System.ArgumentException Message: Invalid name character in 'soap: Envelope'. The ':' character, hexadecimal value 0x3A, can not be included in a name. StackTrace: at System.Xml.XmlWellFormedWriter.CheckNCName (String NCName) at System.Xml.XmlWellFormedWriter.WriteStartElement (String prefix, String localName, String ns) at System.Xml.XmlWriter.WriteStartElement (String localName) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortXmlAdapter.WriteStartElement (String localName, XmlPortNodeSourceType sourceType) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.WriteStartElement (String elementName, Boolean isRootElement, XmlPortNodeSourceType sourceType) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.ProcessTextElement (NavXmlPortTextNode node) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.ProcessElement (NavXmlPortNode node) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.TryProcessElement (NavXmlPortNode node) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.Export () at Microsoft.Dynamics.Nav.Runtime.NavXmlPort.WriteContentToStream () at Microsoft.Dynamics.Nav.Runtime.NavXmlPort.Export (DataError errorlevel) at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50073.SendItem (INavRecordHandle item) at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50073.OnInvoke (MemberID Int32, Object [] args) at Microsoft.Dynamics.Nav.Runtime.NavApplicationObjectBase.Invoke (methodId Int32, Object [] arguments) at Microsoft.Dynamics.Nav.BusinessApplication.Record27.SendItemToCaptor () at Microsoft.Dynamics.Nav.BusinessApplication.Record27.OnInvoke (MemberID Int32, Object [] args) at Microsoft.Dynamics.Nav.Runtime.NavApplicationObjectBase.Invoke (methodId Int32, Object [] arguments) at Microsoft.Dynamics.Nav.BusinessApplication.Record27.OnModify () at Microsoft.Dynamics.Nav.Runtime.NavRecord.Modify (DataError errorlevel, runApplicationTrigger Boolean, Boolean runGlobalTrigger) at Microsoft.Dynamics.Nav.Service.WebServices.ServiceForm.Modify () at Microsoft.Dynamics.Nav.Service.WebServices.ServiceFormXmlAdapter.ModifyEntity (XmlElement entity, Boolean versionCheckHasBeenDone) at Microsoft.Dynamics.Nav.Service.WebServices.ServiceFormXmlAdapter. <> c__DisplayClass1b. b__16 () at Microsoft.Dynamics.Nav.Runtime.NavConnection.TransactionScope (TransactedCode code) at Microsoft.Dynamics.Nav.Service.WebServices.ServiceFormXmlAdapter.Update (XmlElement input, output XmlWWriter) Source: System.Xml Service: User: Type: System.ArgumentException Message: Invalid name character in 'soap: Envelope'. The ':' character, hexadecimal value 0x3A, can not be included in a name. StackTrace: at System.Xml.XmlWellFormedWriter.CheckNCName (String NCName) at System.Xml.XmlWellFormedWriter.WriteStartElement (String prefix, String localName, String ns) at System.Xml.XmlWriter.WriteStartElement (String localName) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortXmlAdapter.WriteStartElement (String localName, XmlPortNodeSourceType sourceType) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.WriteStartElement (String elementName, Boolean isRootElement, XmlPortNodeSourceType sourceType) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.ProcessTextElement (NavXmlPortTextNde node) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.ProcessElement (NavXmlPortNode node) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.TryProcessElement (NavXmlPortNode ode) at Microsoft.Dynamics.Nav.Runtime.NavXmlPortExporter.Export () at Microsoft.Dynamics.Nav.Runtime.NavXmlPort.WriteContentToStream () at Microsoft.Dynamics.Nav.Runtime.NavXmlPort.Export (DataError errorlevel) at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50073.SendItem (INavRecordHandle item) at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50073.OnInvoke (MemberID Int32, Object [] args) at Microsoft.Dynamics.Nav.Runtime.NavApplicationObjectBase.Invoke (methodId Int32, Object [] arguments) at Microsoft.Dynamics.Nav.BusinessApplication.Record27.SendItemToCaptor () at Microsoft.Dynamics.Nav.BusinessApplication.Record27.OnInvoke (MemberID Int32, Object [] args) at Microsoft.Dynamics.Nav.Runtime.NavApplicationObjectBase.Invoke (methodId Int32, Object [] arguments) at Microsoft.Dynamics.Nav.BusinessApplication.Record27.OnModify () at Microsoft.Dynamics.Nav.Runtime.NavRecord.Modify (DataError errorlevel, runApplicationTrigger Boolean, Boolean runGlobalTrigger) at Microsoft.Dynamics.Nav.Service.WebServices.ServiceForm.Modify () at Microsoft.Dynamics.Nav.Service.WebServices.ServiceFormXmlAdapter.ModifyEntity (XmlElement entity, Boolean versionCheckHasBeenDone) at Microsoft.Dynamics.Nav.Service.WebServices.ServiceFormXmlAdapter. <> c__DisplayClass1b. b__16 () at Microsoft.Dynamics.Nav.Runtime.NavConnection.TransactionScope (TransactedCode code) at Microsoft.Dynamics.Nav.Service.WebServices.ServiceFormXmlAdapter.Update (XmlElement input, output XmlWWriter) Source: System.Xml

*This post is locked for comments

I have the same question (0)
  • Scott Wright Profile Picture
    on at

    Hi Juanjo,

    My name is Scott Wright and I'm on the Dynamics NAV Support team.

    You question is out the scope of the Forums. I would recommend you to submit a support incident to troubleshoot this issue further.

    Scott Wright

    Partner Online Technical Community

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans