Skip to main content
Question

GML reader and 'cannot convert null string into an integer' error

  • June 11, 2020
  • 2 replies
  • 136 views

dms2
Contributor
Forum|alt.badge.img+11

We recently upgraded FME Desktop 2007 to 2020. Now I'm upgrading all of our old workspaces and I've having an issue after upgrading GML reader to the latest version.

GML files are read without any error with the old reader but with the new version I get the following error for every feature in every GML file:

Cannot convert null string into an integer class StatusInfo *__cdecl STF_stringToUInt(const class ObsoleteString &,unsigned long &)(C:\\code\\fme\\foundation\\framework\\util\\stf\\stfutil.cpp:358) - class StatusInfo *__cdecl STF_stringToUInt(const class ObsoleteString &,unsigned long &)(C:\\code\\fme\\foundation\\framework\\util\\stf\\stfutil.cpp:358)

I checked the GML version for all my files in the xsd file and they all say it's GML 3.1.1. Didn't see any limitation on this in the reader's help.

Any idea of what's going on?

Edit: the old GML reader works as expected before saving my workspace with Desktop 2020, but the error is there after saving. So there must be some kind of reader upgrading after saving workspaces I think.

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.

2 replies

nampreetatsafe
Safer
Forum|alt.badge.img+13

Hi @dms2! I'm sorry that you are experiencing this. Could you share your original FME 2007 workspace along with your source data. I'm wondering if there's a difference in the way the GML Reader or FME is handling the attribute data types and/or null values. Alternatively, you can submit your workspace and data through a support case.


Forum|alt.badge.img

I am seeing this reading from a Geopackage file

 

BADNEWS: Cannot convert null string into an integer StatusInfo *STF_stringToUInt(const ObsoleteString &, STK_UInt32 &)(foundation/framework/util/stf/stfutil.cpp:358) - StatusInfo *STF_stringToUInt(const ObsoleteString &, STK_UInt32 &)(foundation/framework/util/stf/stfutil.cpp:358)

 

As per the OP it is happening in FME2020