Share via

ADF MongoAtlas Source side error when batch size existed

2023-09-05T02:22:18+00:00

I have to copy data from MongoDB source side but I got an error as below.

I can run this pipeline if I remove the batchSize. But the batch size gets added automactically after I save the pipeline and the error shows up again when I re-run the pipeline.

User's image

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,631 Reputation points Microsoft Employee Moderator
    2023-09-05T09:11:42.29+00:00

    Hi Nguyễn Ngọc Phú (VIN3S-KPTPMVF-PPTPMKDHM),

    Thank you for posting query in Microsoft Q&A Platform.

    Invalid cast error usually occurs when there is a mismatch between data type of source and destination columns.

    To resolve this issue, you can try following:

    • Ensure datatype of source and sink columns matches. Leverage Mapping tab in Copy activity.
    • Check if there are any null values in source column. If that causing any issue because of sink column may be not null then try to using Fault Tolerance in Settings tab in copy activity to skip incompatible rows.

    Hope this helps. Please let me know how it goes.


    Please consider hitting Accept Answer button. Accepted answers help community as well. Thank you.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.