Web Connection
How can I solve the error "String is too long to fit"?
Gravatar is a globally recognized avatar based on your email address. How can I solve the error "String is too long to fit"?
  Yonggu
  All
  Apr 10, 2025 @ 07:46am

Hi.

When converting a cursor into an XML representation, I get the error "String is too long to fit" in wwXML.CursorToXml(). The resulting string size after conversion seems more significant than the allowable size.

Is there a way to fix this?

I would also like to hear your opinion.

Gravatar is a globally recognized avatar based on your email address. re: How can I solve the error "String is too long to fit"?
  Rick Strahl
  Yonggu
  Apr 10, 2025 @ 09:02am

No - not for wwXml.

16mb string limit for FoxPro and wwXML wasn't designed for working with larger strings.

wwJsonSerializer can deal with larger than 16mb strings (with a fix posted earlier this week).

Might be possible to fix wwXml in a similar way, but XML is so dated at this point I'm not inclined to fix it.

In either case it's not really a good idea to serialize that much data anyway and if you go too much over 16mb it'll still break due to memory constraints in FoxPro for a single variable.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: How can I solve the error "String is too long to fit"?
  Yonggu
  Rick Strahl
  Apr 10, 2025 @ 04:43pm

My application has been in operation for a long time and has a lot of data.

Users sometimes query large amounts of data.

It is running well, so large-scale maintenance for REST Service isn't easy because of the risk of problems.

The solution is to block large volumes of queries.

Thank you for your reply.

© 1996-2025