Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2007

Tip: Looking for answers? Try searching our database.

InfoPath 2003: Error with Rich Text Field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Brown - 04 Apr 2007 08:38 GMT
Hi all,

I’m having a spot of trouble with a InfoPath form I am working on.

First, ill give some background info of what I’m trying to do.

What this form does, is retrieve data from various sources (mainly
SharePoint and SQL server) and displays the info all nice and neatly on the
InfoPath form.

The Data is read out of a database and into a rich text field (with some
script to copy the data from the source to the control). This works fine.

However, with saving, the issue lies.

When I save 90% of my records, they save fine, no issues, no stray html, all
is fine.

However the remaining 10% return with some funkiness.

On some records I get the following error:

"You have error A string literal was expected, but no opening quote
character was found."

and for whatever reason I cannot find what is causing this error.

On other records, the text saves fine, however, when i go back into the form
and load up their data, the following appears

Geological and geophysical studies and PPL application documentation for
Dorodillo, Muscat, Keena, Wirrarie/Caladan, Wooloo, Shiraz, Kirralee,
Atreides, Grenache, Waukatanna, Touriga and Trebbiano fields, including HIP
review
5) Member of Technical Limit Team, Nov. 2000-May 2001
G&G representative team commissioned to improve spud to online time for SABU
development wells
<div xmlns='http://www.w3.org/1999/xhtml'> </div> <div
xmlns='http://www.w3.org/1999/xhtml'>6) Member of TeamLink Peer Assist
Team</div> <div xmlns='http://www.w3.org/1999/xhtml'> </div> <div
xmlns="http://www.w3.org/1999/xhtml">Pre-Santos experience:</div> <div
xmlns="http://www.w3.org/1999/xhtml"> </div> <div
xmlns="http://www.w3.org/1999/xhtml">1) 1990-1998 Chevron Europe:</div> <div

note: I cut this timed from the start ad end for this post. Also note that
this is not the source of the text box, this is what is actually displayed IN
the textbox as plain text.

If needs be I can post the data which I use and anything else required. This
is a real tricky one and I’m going bald with stress and ripping out my hair
trying to figure out what is the problem.

Any help would be greatly appreciated!

Regards,

Daniel Brown
S.Y.M. Wong-A-Ton - 04 Apr 2007 09:14 GMT
Check whether the data for the records that are failing contain a single
quote (') anywhere in the text.
---
S.Y.M. Wong-A-Ton

> Hi all,
>
[quoted text clipped - 53 lines]
>
> Daniel Brown
Agnihotram - 04 Apr 2007 16:34 GMT
Hello Daniel,
When setting any data to a rich text field you need first verify if the data
that you are setting is a valid "XML". Other wise you will the see the issues.
Signature

Agnihotram Jonnalagadda
http://www.ggktech.com

> Check whether the data for the records that are failing contain a single
> quote (') anywhere in the text.
[quoted text clipped - 58 lines]
> >
> > Daniel Brown
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.