Missing Last Character when Convert BigText to Blob Field
Otto
Member Posts: 17
Hi All,
I found a problem when save Big Text Variable to Blob Field.the Last Character always missing.
When i try in my local (NAV Server , SQL Server and RTC client is on the same box) this problem not occurred . But when i try in Production Environment , I always encounter this problem.
Below is my code when convert the Big Text to Blob
CALCFIELDS(Detail);
IF Detail.HASVALUE THEN BEGIN
CLEAR(Detail);
END;
CLEAR(l_ousOutStream);
Detail.CREATEOUTSTREAM(l_ousOutStream);
g_bigIssue.WRITE(l_ousOutStream);
CLEAR(l_ousOutStream);
Any suggestion on this ? Thanks.
I found a problem when save Big Text Variable to Blob Field.the Last Character always missing.
When i try in my local (NAV Server , SQL Server and RTC client is on the same box) this problem not occurred . But when i try in Production Environment , I always encounter this problem.
Below is my code when convert the Big Text to Blob
CALCFIELDS(Detail);
IF Detail.HASVALUE THEN BEGIN
CLEAR(Detail);
END;
CLEAR(l_ousOutStream);
Detail.CREATEOUTSTREAM(l_ousOutStream);
g_bigIssue.WRITE(l_ousOutStream);
CLEAR(l_ousOutStream);
Any suggestion on this ? Thanks.
0
Comments
-
Oh god please don't tell me they were really stupid. ](*,)
I raised a bug a while ago that a nul byte was being added to the end of the string somewhere in a webservice -> bigtext -> blob -> msxml chain. They removed the nul byte ...
Hopefully, you're running an older patch level in live without the fix and your more up to date dev version is working properly. [-o<Robert de Bath
TVision Technology Ltd0 -
Currently I'm using version 6.0.29626.0. I think this is the original version from the installation without patch.0
-
Hmm, looking back it seems my bug was pre SP1, about 29600 or so.
So, what's the production version of the service tier (the same as your dev?)
How do you fill the bigtext, what do you get if you write the bigtext to a file?
Can you reproduce the problem for Microsoft?Robert de Bath
TVision Technology Ltd0 -
The production and dev have the same version.
I'm using text box to fill in the big text after that i save it in Blob.
Hmm, the different between my production and dev is the Production Server local setting is Chinese and we already apply the language pack to the NAV server.
Anyway, currently before i save to the blob field I just put extra blank character in order to prevent this problem
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions