We Are Here To Help

Follow

Setting Up a DataSync Port Job

Update: Starting with Datasync 1.8.1, Port Job functionality uses a faster and more reliable code path. If you encounter updates with Port Jobs using a previous version of Datasync, please update to the newest version.

This article explains how to setup and run a Port Job using the graphical user interface of DataSync 1.6 and higher. Port jobs are used for copying datasets that are already on the Socrata platform. Port jobs allow users with publishing rights to copy both dataset schemas (metadata and columns) and data (rows).


First, launch DataSync navigating to the folder containing the Datasync JAR file that you downloaded previously and fill out the Authentication Details section if it is not already filled out.


In the DataSync UI go to File -> New... -> Port Job. This will open up a new Port Job.




To run a Port Job there are 6 sections that need to be configured:

1. Port Method: Choose one of the following:

  • Copy schema only: This will copy the metadata and columns of the source dataset into a new dataset. No row data is copied over.
  • Copy schema and data: This copies both the metadata/column info and all row data, effectively making a duplicate of the source dataset.
  • Copy data only: This copies the row data from the source dataset into the destination dataset. The effect on the destination dataset is determined by thePublish Method option below. Please note, this option will only succeed if the schemas of the source and destination dataset agree.

2. Source Domain: The domain to which the source dataset belongs.
3. Source Dataset ID: The dataset identifier of the source dataset.
4. Destination Domain: The domain where the source dataset will be copied to
5. Destination Dataset ID: The dataset identifier of the destination dataset. This is only needed if selecting Copy data only as the PortMethod.
6. Publish Destination Dataset: Only relevant if copying the schema via Copy schema only or Copy schema and data as the PortMethod. Choose one of the following:

  • Yes: This will publish the destination dataset to complete the Port Job.
  • No, create a working copy: This will leave the destination dataset as a working copy.

** Publish Method: Only relevant if selecting Copy data only as the PortMethod. Choose one of the following:

  • upsert: This will upsert the data from the source dataset into the destination dataset, updating rows that exist already, inserting those that do not.
  • replace: This will replace the data in the destination dataset with that in the source dataset.

Once these options are filled out, you can either click Run Job Now to run the currently configured job immediately, or Save Job to save the job for automating.

Video: Set up a Datasync Port Job

 

 
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk