cancel
Showing results for 
Search instead for 
Did you mean: 

Groovy script throwing an error

SOLVED
angvarghese
Frequent Visitor

Groovy script throwing an error

I have one project running perfectly last week. however, the developer changed the namespace of the xml from source address xxx.com to xxx.com. i changed the namespace globally and it worked well. Today noticed groovy is throwing the following error.

org.apache.xmlbeans.XmlException: error: Content is not allowed in prolog. error at line:28

angvarghese_0-1620135996563.png

in the above goovy script you can see, getting data from calculatloyalty respone. This is not happening now. 

 

can anyone help on this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
richie
Community Hero

Re: Groovy script throwing an error

Hey @angvarghese,

Im sorry can you attach rather rhan embed screenshots. I cant see embedded items for some reason.

Your xml prolog is the bit of your instance that contains the xml dec/version number (typically the first line), but the error response mentions line 28.

Can you confirm what content is at line28 please?

Changing a namespace reference shouldnt have broken anything as you reflect those changes throughout. If you attach the screenshots so i can see, i'llprobably be able to give you a better answer.

Cheers

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

1 REPLY 1
richie
Community Hero

Re: Groovy script throwing an error

Hey @angvarghese,

Im sorry can you attach rather rhan embed screenshots. I cant see embedded items for some reason.

Your xml prolog is the bit of your instance that contains the xml dec/version number (typically the first line), but the error response mentions line 28.

Can you confirm what content is at line28 please?

Changing a namespace reference shouldnt have broken anything as you reflect those changes throughout. If you attach the screenshots so i can see, i'llprobably be able to give you a better answer.

Cheers

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

New Here?
Join us and watch the welcome video:
Top Kudoed Authors