VF error: Premature end of XML

  • 1
  • Problem
  • Updated 3 years ago
  • Solved
Getting this VF error:

Encountered premature end of XML: no more data available - expected end tag </skuidpage> to close start tag <skuidpage> from line 1, parser stopped on END_TAG seen ...</resources></skuidpage... @179:41 

An unexpected error has occurred. Your solution provider has been notified. (skuid)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Andrew Duensing

Andrew Duensing, Employee

  • 740 Points 500 badge 2x thumb
This isn't by any chance on an extremely large page is it?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
It is an extremely large page.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
A skuid page can only be so large.  (Page defintiion data is contained in 5 large text fields)  It looks like you've exceeded that size limit. You will need to break up the page into mutiple includes - or refactor your functionality so that it falls across severap pages. 
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Hmm. Wish I'd had a warning about this.

Really not interested in rebuilding a very large page.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
I the limitation the number of lines of XML (I'm at 3622), or the number of characters? I'd assume the latter if you're storing as text fields?
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Ok, thanks. Looks like I'm only at ~131k. But apparently adding a model (with one field!) was enough to put me over the edge.