Thanks for using MS Q&A platform and posting your query
The error message indicates that you're trying to insert a NULL value into the GlobalOptionSetName column of the FO_GlobalOptionSetMetadata table in your Azure SQL database, but this column doesn't allow null values.
Here's how to troubleshoot and fix this issue:
Check Dataverse data:
- Verify if the
GlobalOptionSetNamefield in your Dataverse f&o data actually contains null values. You can use Power Apps or the Dataverse web interface to check the data. - If there are null values, you'll need to address them before copying the data. This could involve:
- Filling the null values with a default value in Dataverse.
- Filtering out rows with null values before copying to Azure SQL.
Modify the ADF Pipeline:
- If null values are expected but the table schema disallows them, you can modify the ADF pipeline to handle nulls:
- Use a data transformation activity to replace null values with a valid value (e.g., an empty string).
- Modify the table schema in Azure SQL to allow nulls for the
GlobalOptionSetNamecolumn (not recommended as it might affect other processes).
Here are some additional resources that might be helpful:
- Troubleshoot data factory errors: https://learn.microsoft.com/en-us/azure/data-factory/tutorial-pipeline-failure-error-handling
- Copy Activity in Azure Data Factory: https://learn.microsoft.com/en-us/azure/data-factory/copy-activity-overview
- Modify Data in Azure Data Factory: https://learn.microsoft.com/en-us/azure/data-factory/
Hope this helps. Do let us know if you any further queries.