SSIS vs. Dynamic CRM: The .CSV file should not have size greater than 8MB

Hello,

I am creating a SSIS package to generate .CSV files. But I came to know that we have constraint in Microsoft Dynamic CRM i.e. the .csv file size should not greater than 8MB.

I might have 5 GB data in .csv file.

Do you have best & optimal solution (like split file with 8MB after generate 5GB)?

Best Regards
LVL 6
MohitPanditAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
<Knee jerk reactions>
If the consumer of an SSIS destination .csv has a hard restriction like Max 8Gb size, the only things that come to mind are..
  • Throw the data pump that creates this file into some kind of loop which guarantees only the TOP x rows are processed that will insure that the file is under 8Gb.  Make sure the naming convention of the file is such that this can be consumed by the CRM.
  • Look at the data and make any modeling changes so that the csv sends less data / no spaces / whatever to shrink the output file size.
  • Ask the consumers of this data why the eff they need a potentially 8Gb file.  A likely possibility is that this is a 'full load' file containing all rows in a table, and a discussion can be opened up to change this to a change-only file that will be much smaller in size.
0
Dung DinhDBA and Business Intelligence DeveloperCommented:
Dear,

What if you zip 5GB .csv file and split it into smaller parts by using 7zip application. SSIS has a Execute Task component that helps us call a third party application such 7zip via command lines.
0
MohitPanditAuthor Commented:
CRM Import Data Wizard takes "8MB" each .csv file. In case of .zip file, the maximum .zip file size will be "32MB".
But still in .zip file, each .csv file size shouldn't be greater than "8MB"
0
Dung DinhDBA and Business Intelligence DeveloperCommented:
Hmm.. You have to customize the SSIS to split the .csv file into the smaller files (8MB per file).
- Count number of rows (N)
- Calculate file size (S = 5GB)
- Calculate number of rows per file Nf = (8 * N) / (S* 1024)
- Use Sequence and Loop Component to extract data for multiple files (https://social.technet.microsoft.com/wiki/contents/articles/3172.split-a-flat-text-file-into-multiple-flat-text-files-using-ssis.aspx)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MohitPanditAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSIS

From novice to tech pro — start learning today.