Select to view content in your preferred language

How to generate an offline geodatabase schema only - no data

1683
1
Jump to solution
03-23-2016 08:38 AM
KenGorton
Esri Contributor

Is there a method or query when generating an offline geodatabase from a hosted feature service that generates only the schema of the feature service without replicating any data? This is for an app whose sole purpose is to collect and send data.

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

When you set up your GenerateGeodatabaseParameters, you should be able to modify the list of LayerQuery objects. For each one of those (i.e. each layer), set the queryOption to Enums.QueryOptionNone. This should pull only the schema and no features so you can work in this "upload only" type of workflow. With our Quartz release of the Runtime API, we will have this revamped to be a bit clearer and doc'd better.

View solution in original post

0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

When you set up your GenerateGeodatabaseParameters, you should be able to modify the list of LayerQuery objects. For each one of those (i.e. each layer), set the queryOption to Enums.QueryOptionNone. This should pull only the schema and no features so you can work in this "upload only" type of workflow. With our Quartz release of the Runtime API, we will have this revamped to be a bit clearer and doc'd better.

0 Kudos