web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

I have the same question (0)
  • Pankil Bhatt Profile Picture
    32 on at

    ?

    ?

  • Suggested answer
    Kunaltripathy Profile Picture
    395 on at

    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.

  • Thomas David Dayman Profile Picture
    11,323 on at

    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

  • Pankil Bhatt Profile Picture
    32 on at

    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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans