Skip to main content
Solved

Microsft SQL Server Non Spatial fieldtype issue

  • December 2, 2024
  • 2 replies
  • 56 views

stefanh
Contributor
Forum|alt.badge.img+8

I am having a simple workspace; just a reader and writer (see screenshot below).
The FeatureReader reads from a Microsoft SQL Server Non-Spatial and the FeatureWriter writes to Microsoft SQL Server Non-Spatial. 
The datamodel in both databases is the same and in the target database the table already exists.
When writing it to the database there are warnings about the field type. 

For example (see also screenshot below)
Microsoft SQL Server Non-Spatial Writer: Attribute `.....' of feature type `.....' has specified type `varchar(1)', but existing database table field has type `varchar(2)'. Information may be lost during conversion

It seems to double all the varchars; and also getting messages about bigint vs numeric. 
The data is correctly written in target but I want to get rid of all the warnings. 

I have tried various thing with reading the schema from both the source and the target table. 
Also tried with 'normal' readers and writers. And also tried with JDBC reader and writer.

Does anyone have any idea how this issue can be solved?

Thanks!
Kind regards,

Stefan

 

 

Best answer by ebygomm

What version of FME are you using?

 

It was a known issue a couple of years ago, see this thread

Write varbinary type to SQL server non spatial writer in FME Workbench 2022 | Community

View original
Did this help you find an answer to your question?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • Best Answer
  • December 2, 2024

What version of FME are you using?

 

It was a known issue a couple of years ago, see this thread

Write varbinary type to SQL server non spatial writer in FME Workbench 2022 | Community


stefanh
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • December 2, 2024

I forgot to mention the version. I am working with FME Desktop 2022.2

 

So there might be a fix already.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings