Skip to main content
Question

SDE - uncheck Allow Null property in table creation via FME

  • January 31, 2019
  • 4 replies
  • 52 views

annette2
Contributor
Forum|alt.badge.img+11

Hi,

I am creating a table in Oracle SDE with FME. Is there to uncheck the Allow NULL property of a field via FME Desktop? Or even a way to uncheck it after the table is created with FME within ArcGIS Pro Catalog? See screenshot below.

Thanks,

 

Annette

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.

4 replies

david_r
Celebrity
  • 8391 replies
  • January 31, 2019

I have the impression this isn't possible using FME.

A possible workaround is to let FME create the table for you and then execute the necessary ALTER TABLE statements, for example:

ALTER TABLE your_table
ADD CONSTRAINT your_constraint_name CHECK(your_column_name IS NOT NULL)

You will have to execute this statement once for each column in your table.


annette2
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 96 replies
  • February 5, 2019

I have the impression this isn't possible using FME.

A possible workaround is to let FME create the table for you and then execute the necessary ALTER TABLE statements, for example:

ALTER TABLE your_table
ADD CONSTRAINT your_constraint_name CHECK(your_column_name IS NOT NULL)

You will have to execute this statement once for each column in your table.

It seems there is something in the SDE tables that govern the allow null option.  I also tried deleting all the records and via Pro setting it on the empty table but that didn't work.  I am going to open a ticket with esri.  

 

https://community.esri.com/thread/25627

Another option would be to create the table via the Oracle spatial writer and then register it with SDE afterwards...but I have a nice workspace that applies domains etc so I won't try this just yet.


annette2
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 96 replies
  • February 5, 2019

I have the impression this isn't possible using FME.

A possible workaround is to let FME create the table for you and then execute the necessary ALTER TABLE statements, for example:

ALTER TABLE your_table
ADD CONSTRAINT your_constraint_name CHECK(your_column_name IS NOT NULL)

You will have to execute this statement once for each column in your table.

PS thank you for the answer.


ranga_tolapi
Contributor
Forum|alt.badge.img+9
  • Contributor
  • 25 replies
  • March 12, 2023

I have the impression this isn't possible using FME.

A possible workaround is to let FME create the table for you and then execute the necessary ALTER TABLE statements, for example:

ALTER TABLE your_table
ADD CONSTRAINT your_constraint_name CHECK(your_column_name IS NOT NULL)

You will have to execute this statement once for each column in your table.

Understand that it's not possible 4 years ago, any chance is it possible now? 🤞