Hi!
NAV 2009 R2 SP1.
Using
http://mibuso.com/blogs/ara3n/2009/01/28/running-job-queue-through-nav-web-service-for-unlimited-companies/ run a codeunit that import xml from NAV table.
Get error: 500 (Internal Error).
Details from Event Log:
Type: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
Type: System.NotSupportedException
Message: BLOB
Source: Microsoft.Dynamics.Nav.Types
When I run codeunit manually (not from Job Queue+WebService) - it done successfully.
When I comment line XMLPORT.IMPORT - all is OK.
Code:
Data.CALCFIELDS(XML);
Data.XML.CREATEINSTREAM(XMLInStream);
XMLPort_J.SETSOURCE(XMLInStream);
XMLPort_J.IMPORT;
How can I import xml from table from WebService?
Thanks in advance.
Comments
My XmlPort had a BLOB field.
I removed this field and my web service now works.