Forum Discussion
MongoDB CDC - org.apache.kafka.connect.errors.DataException: Invalid value: null used
Hi all,
I try to configure an Eventstream in Fabric.
The source is a MongoDB Atlas instance. I use the standard Fabric "MongoDB CDC Preview" Connector.
In the runtime log, I receive the following failure message:
Task: '617B3313-4F00-4079-BEAF-C3F03C966513-task#0' failed. Details: org.apache.kafka.connect.errors.DataException: Invalid value: null used for required field: \"collection\", schema type: STRING"
Currently, I do not see how to identify the source of the problem.
Any idea or hint to dig into the problem?
Thanks
Rainer
Full log
{
"ErrorCode": {
"value": "Task: '617B3313-4F00-4079-BEAF-C3F03C966513-task#0' status to FAILED",
"type": "string"
},
"TimeGenerated": {
"value": "2026-01-20T08:50:56.376171Z",
"type": "datetime"
},
"Level": {
"value": "Error",
"type": "string"
},
"Category": {
"value": "Error",
"type": "string"
},
"ResourceId": {
"value": "",
"type": "string"
},
"SubscriptionId": {
"value": "",
"type": "string"
},
"ResourceGroup": {
"value": "",
"type": "string"
},
"JobName": {
"value": "",
"type": "string"
},
"OperationName": {
"value": "",
"type": "string"
},
"Status": {
"value": "Error",
"type": "string"
},
"Source": {
"value": "",
"type": "string"
},
"TypeProperty": {
"value": "Error",
"type": "string"
},
"DataErrorType": {
"value": "",
"type": "string"
},
"ErrorCategory": {
"value": "Error",
"type": "string"
},
"BriefMessage": {
"value": "",
"type": "string"
},
"Message": {
"value": "Task: '617B3313-4F00-4079-BEAF-C3F03C966513-task#0' failed. Details: org.apache.kafka.connect.errors.DataException: Invalid value: null used for required field: \"collection\", schema type: STRING",
"type": "string"
},
"FromTimestamp": {
"value": null,
"type": "datetime"
},
"ToTimestamp": {
"value": null,
"type": "datetime"
},
"EventCount": {
"value": 0,
"type": "long"
},
"GroupSize": {
"value": 1,
"type": "long"
}
}
Hello LinusAtFabric
Have you followed the guidelines in this Microsoft doc, especially setting up CDC on a collection?
Add MongoDB CDC source to an eventstream - Microsoft Fabric | Microsoft Learn
When configuring the connector in Fabric, you must explicitly select:
- The database
- One or more collections
If the UI step was skipped or failed to persist the value, the pipeline may start with collection = null.
3 Replies
- deborshi_nagSuper User
Hello LinusAtFabric
Have you followed the guidelines in this Microsoft doc, especially setting up CDC on a collection?
Add MongoDB CDC source to an eventstream - Microsoft Fabric | Microsoft Learn
When configuring the connector in Fabric, you must explicitly select:
- The database
- One or more collections
If the UI step was skipped or failed to persist the value, the pipeline may start with collection = null.
- AnonymousNot applicable
Hi LinusAtFabric,
Thank you for reaching out to the Microsoft Fabric Forum Community, and special thanks to deborshi_nag for prompt and helpful responses.
Just following up to see if the Response provided by community members were helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar - AnonymousNot applicable
Hi @LinusAtFabric,
Just following up to see if the Response provided by community members were helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar