- Newest
- Most votes
- Most comments
It was working all along! The issue was that I created 'public.employee' in my target DB, but it was pushing the data to 'dbo.Employee'
I added a Schema Transformation to change 'dbo' to 'public' and the data ended up where I expected.
answered a year ago
The issue you're experiencing with AWS Database Migration Service (DMS) not writing data to the target PostgreSQL database is likely related to how DMS is handling NULL values during the replication process.
To address this, you can modify the task settings to change how NULL values are handled. Instead of using the "NullHandlingMode" setting in the TargetMetadata section, you should adjust the "FullLoadSettings" and "ChangeProcessingTuning" sections of your task settings.
Here's what you can try:
- In the task settings, locate or add the "FullLoadSettings" section and include the following:
"FullLoadSettings": { "TargetTablePrepMode": "DO_NOTHING", "CreatePkAfterFullLoad": false, "StopTaskCachedChangesApplied": false, "StopTaskCachedChangesNotApplied": false, "MaxFullLoadSubTasks": 8, "TransactionConsistencyTimeout": 600, "CommitRate": 10000 }
- In the "ChangeProcessingTuning" section, add or modify the following:
"ChangeProcessingTuning": { "BatchApplyPreserveTransaction": true, "BatchApplyTimeoutMin": 1, "BatchApplyTimeoutMax": 30, "BatchApplyMemoryLimit": 500, "BatchSplitSize": 0, "MinTransactionSize": 1000, "CommitTimeout": 1, "MemoryLimitTotal": 1024, "MemoryKeepTime": 60, "StatementCacheSize": 50 }
- Additionally, ensure that your table mapping includes the correct schema and table names, and that you're not accidentally excluding any columns.
If the issue persists after making these changes, you may need to investigate further by examining the source data, checking for any data type mismatches between the source and target, and ensuring that the DMS task has the necessary permissions to read from the source and write to the target.
Remember to stop and restart your DMS task after making these changes for them to take effect.
Sources
Issue with AWS DMS Full Load + CDC Task Not Reflecting Newly Created Tables in Target DB | AWS re:Post
AWS DMS examples using Tools for PowerShell - AWS SDK Code Examples
answered a year ago
