Skip to main content
Question

Is there anyways to sync record using the customization file while deployment?

Answer

Yes. If a package changes the data behind a synced record type but doesn’t include the record type itself, you can still force a full sync during deployment through the Import Customization File (ICF).


Add this line to the ICF, with the record type’s UUID:

recordType.<UUID>.forceSync=true


For example:

recordType.63e19e09-eb15-43e3-9864-a1ca4d9ece06.forceSync=true

You can find the UUID in the record type’s object properties.


When I’d use it.

Say an Employee Management app has a synced record type, EMP_Employee. A release includes an SQL script that updates the department for 5,000 employees. The record type isn’t in the package, so Appian wouldn’t normally resync it, and users could keep seeing the old departments until the next sync. Adding forceSync=true to the ICF makes Appian run a full sync as part of the deployment.


If the record type is in the package, Appian already runs a full sync on deploy, so you don’t need the property.


Large data sources.

For a very large record type, a full sync can make the deployment time out. In that case add this too:

recordType.<UUID>.postDeploymentSync=true

Appian still starts the sync, but the deployment finishes without waiting for it. Skip it if users need the refreshed data right after import.

After deploying, check the record type’s sync status in the Monitor view to confirm the sync succeeded. With postDeploymentSync the deployment status moves through two values:

  1. Completed: Syncing Record Types: the deployment has finished and the sync is still running.
  2. Completed: the deployment and the sync have both finished, whether or not the sync succeeded.

So Completed alone does not prove the data synced. The result is on the Record Sync Status tab of the Monitor view.

If you would rather not force a sync, you can wait for the record type's next scheduled sync or start one by hand in the record type in the target environment.

A related deployment error. A synced record type's SQL reference name travels in the package. If a different record type in the target already uses that name, the deployment ends Completed with Errors and the record type is not imported. Adding importSetting.updateSqlReferenceNames to the ICF lets Appian rename the conflicting names by appending a number, for all record types in that deployment.

Reference (Appian 26.10 documentation): Import customization files, record type sync


Interview takeaway:

forceSync=true refreshes a synced record type during deployment when only its data source changed. It is a different setting from importSetting.FORCE_UPDATE=true, which forces the import of design objects that Appian detected as unchanged.

Check yourself

Question 1 of 3, on what the answer above covers.

  1. 1.
    During deployment, an SQL script updates employee data, but the synced Record Type has no design changes. How can you trigger a full sync?
SeniorRecords