on 06-01-2011 12:50 PM
Is anyone using
recordset.SaveXML()?
They did something in 8.8 and the XML now contains only the first 4 characters of the data in Note fields.
HELP!
Hi All,
Thanks for answering,
The problem seems to be somewhere else.
Including:
"convert(nvarchar(max), [U_Z_NoteField])"
In the query results in only the first 4 chars of the field returned.
This happeneds both when using SvaeXML() and when accessing the data directly of the recordset.
Asher
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Asher,
njmog1 is right, try to cast your nvarchar(max) fields to sized fields, like cast(U_Z_NoteField, nvarchar(1024))
also, keep in mind, that SAPbobsCOM.Recordset object has few more limitations, follow to SAP Note #722337:
http://service.sap.com/sap/support/notes/722337
Hope, it'll help.
Dear Asher,
Works fine for me.
version of B1: 8.8 PL18
Did you use query to fill recordset?
give more details about your issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is not a fix but in 8.8 they introduced a new GetFixedXML() that also give the data... It does not fix SaveXML but perhaps it does not have the issue and you can switch to it instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.