Sync Status is stuck in progress

Sync getting stuck in In-progress state

Issue: 

Sync getting stuck in In-progress state.

Usually, when the data type mismatch is present, this issue occurs.


Logs required:

<AnalyticsPlus>/pgsql/data/pg_log/


Check for the error trace by searching "ERROR:  invalid input syntax for"


Sample Traces:

ERROR:  invalid input syntax for integer: "ABCD"

CONTEXT:  COPY tempignore_734_1538913789758_7271_1, line 56, column c_11960: "ABCD" 


Execute the below sample query using Workspace Query Tool to know the Database Name, Table Name, and Affected Column Name.


select obj.id,obj.dbid,obj.displayname as TableName,col.display_name as ColumnName from columndetails col join zdbtable zdbt on col.table_id=zdbt.id join zdbdbobject obj on zdbt.objid=obj.id where col.column_name='column_id';






Fix:

1) Change the data type of the affected column to Text. 

2) Once done, connect to Analytics Plus database and change the sync status to "Failure" of that particular table which is "In Progress".

Query Sample:

update zrclouddbsyncdetails set syncstatus=2 where objid=21628;

3) Initiate a re-sync by clicking on "Sync Now" button.


Before changing the data type please ensure if there are any reports created using that column. If so delete the particular text value from the Data Source with customer's permission.
                  New to ADManager Plus?

                    New to ADSelfService Plus?