Skip to main content
Question

xmltemplater error

  • July 8, 2015
  • 5 replies
  • 45 views

Forum|alt.badge.img
So I have an extremely simple xml templater that I am trying to use as the ROOT in an xml fragment workspace. Probelm is, the workbench errors out processing the ROOT but the error message doesnt make sense. I have a Creator creating 1 feature that goes into an XMLTemplater with an expression "<message:hasMember></message:hasMember>" that then goes into an XMLFragment writer. Like I said.....very simple. Now here is the error below. I only have two lines so how is it erroring out on line 37?

 

 

FME API version of module 'XMLTemplaterFactory' matches current internal version (3.7 20141021)XMLTemplater_3(XMLTemplaterFactory): The following error occurred near line 37, column 50 of the query:

 

 

XMLTemplater_3(XMLTemplaterFactory): invalid expression: syntax error, unexpected "{", expecting "external" or ":="

 

 

XMLTemplater_3(XMLTemplaterFactory): An error occurred while parsing the ROOT template

 

 

XMLTemplater_3(XMLTemplaterFactory): A fatal error has occurred. Check the logfile above for details

 

 

Closing the Geodatabase reader

 

 

A fatal error has occurred. Check the logfile above for details
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

Forum|alt.badge.img
  • Author
  • July 8, 2015
FME 2015.0 b15252 win 32

Forum|alt.badge.img
  • Author
  • July 8, 2015
Update: So if I remove the geodatabase writer (file ArcObjects) from the workspace it seems to be working if i simplify the message. The funny thing is that the geodb writer is not connected to anything....the feature is just sitting all by itself

Forum|alt.badge.img
  • September 8, 2015
I'm having the same problem with the FMEServerEmailGenerator. It works fine if you use a Creator but as soon as you add a reader (Oracle in this case) it fails with the invalid expression error. I've done the same as you in that the reader is not even connected to the transformers. It is simply in the workspace.

 

 

Did you get a resolution to this in the end? Is it a bug?

 

Cheers,

 

Paul

Forum|alt.badge.img
  • Author
  • September 11, 2015
No, I was not able to figure this out. I was trying some other things using python instead but havent had a chance to get back to this.

brianatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • December 9, 2015

Hi @sean,

I've been working with a client in another thread and we discovered the cause of this issue. This was an problem present in the FME 2015.0 release and has since been fixed with 2015.1+. The problem was tied to how the JSONTemplater populates the root document with parameters from each reader and one of these parameters was causing this error message to occur. Sorry for any inconvenience that this issue may have caused.