Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Kingsway SSIS Package, Move Notes attachment to SharePoint

(0) ShareShare
ReportReport
Posted on by 32

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.

Decode-Error.PNG


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

  • Pankil Bhatt Profile Picture
    32 on at
    RE: Kingsway SSIS Package, Move Notes attachment to SharePoint

    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.

    0647.3.PNG

    8176.2.PNG

    also I have check every steps.

    1121.4.PNG

    but when I check the SharePoint destination I got only 1.46kb

    0647.3.PNG

    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

  • Thomas David Dayman Profile Picture
    11,323 on at
    RE: Kingsway SSIS Package, Move Notes attachment to SharePoint

    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

  • Suggested answer
    Kunaltripathy Profile Picture
    395 on at
    RE: Kingsway SSIS Package, Move Notes attachment to SharePoint

    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.

  • Pankil Bhatt Profile Picture
    32 on at
    RE: Kingsway SSIS Package, Move Notes attachment to SharePoint

    ?

    ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans