Announcements
Hello,
I am trying to move the CRM notes attachment to SharePoint Document Library using Kingsway SSIS Package.
when I pass the document body as
DecodeBase64( [ag.documentbody] )
I got "An error occurred while testing the expression: Invalid Expression: Invalid length for a Base-64 char array or string."
please check below Screen for reference.

So when I check the files on SharePoint that time its says "We're sorry, we couldn't open your workbook. It's possibly corrupt or using a file format that's not supported."
Please let me know if you guys have any solution.
Thanks in Advance,
Pankil
*This post is locked for comments
Hi Kunal,
I have check the Document body content and also check the file size. it is properly which comes from source.
you can see the screenshot.
also I have check every steps.
but when I check the SharePoint destination I got only 1.46kb
I don't think so my document body is null.
I have try this thing to : https://community.dynamics.com/365/b/dynamics365enterprisecloudfronts/archive/2017/09/04/crm-issue-with-retrieving-large-document-body-using-fetch-xml
not succeeded.
very frustrated about this issue, can you please help.
Thanks,
Pankil
From my experience, all you need to is convert the documentbody to a Text Stream Type and assign it to the Attachment_1_BinaryContent field
HI Pankil, The Test feature on Expression editor will not work as you don't have any input currently and documentbody is null. The Validate button next to text can validate if expression is right. run the package for a small set of data to do actual validation.
?
?
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator