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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics CRM 365 integration with SharePoint online plugin error

(0) ShareShare
ReportReport
Posted on by

Hi,

I am trying to execute plugin to create the folders in SharePoint online 2016 with Dynamics CRM 365 online version 9.0,

 When the plugin executes i am receiving the "The 'Value'='<null>' part of the cookie is invalid" Error, Did anybody face this kind of issue when you try to execute plugin in online D365? Its very urgent. Please help.

 

I've taken the code reference from the link:  https://code.msdn.microsoft.com/dynamicsnav/SharePoint-Integration-c5f21604/sourcecode?fileId=131706&pathId=1614921635.  

*This post is locked for comments

I have the same question (2)
  • Suggested answer
    Justinjose Profile Picture
    2,707 on at

    Hi Rajalax,

    I have used this source code with version 8.2 without any issues. Can you look into the following link

    [View:https://community.dynamics.com/crm/f/117/t/246028]

    If this doesn’t fix, please let me know.

    Thanks

    Justin Jose

  • Community Member Profile Picture
    on at

    Hi Jose,

    Thanks for your reply.

    Still am facing the same issue, if i try to debug the code my plugin registration tool got crashed when it reached the below point:

    Method name: SendHttpRequest()

    using (Stream s = request.GetRequestStream()) --This is code that breaks and plugin tool got crahsed.

                       {

                           s.Write(requestContent, 0, requestContent.Length);

                           s.Close();

                       }

    Do you have any suggestion on this?

  • Suggested answer
    Justinjose Profile Picture
    2,707 on at

    Hi Rajalax,

    I know its hard to debug on plugin registration tool and I faced same issue. Registration tool will crash when you reach at token request section.  To debug, create a console application and pass the hard coded the value.

    If this doesn’t fix, please let me know.

    Thanks

    Justin Jose

  • Community Member Profile Picture
    on at

    Hi Jose,

    As per your suggestion, had tried with console application.

    Am able to debug it and found the error place:

    Methodname: GetAdfsSAMLTokenUsernamePassword

    StreamReader sr = new StreamReader(new MemoryStream(responseData), Encoding.GetEncoding("utf-8"));

    XPathNavigator nav = new XPathDocument(sr).CreateNavigator(); -- In this line am getting error like " "'>' is an unexpected token. The expected token is '\"' or '''. Line 1, position 50."

    Any ideas?

  • Justinjose Profile Picture
    2,707 on at

    Are you able to login to the SharePoint using the credentials provided in the code?

    Thanks

  • Community Member Profile Picture
    on at

    Yes, am able to login using that credentials.

  • Justinjose Profile Picture
    2,707 on at

    Hi Rajalax,

    Can you look into following section. line 392. Are you getting null or value for adfsAuthUrl ?

    // find out whether the user's domain is a federated domain
    
               this.adfsAuthUrl = GetAdfsAuthUrl();

    is the user's domain is a federated domain?

    are you using two-factor authentication?

    Thanks

    Justin Jose

  • Community Member Profile Picture
    on at

    Hi Jose,

    Yes, am getting the adfsAuthurl value.

    Yes, Domain is federated.

    Yes, Two factor authentication.

    Thanks ,

    Raji

  • Suggested answer
    Justinjose Profile Picture
    2,707 on at

    Hi Rajalax,

    Can you run the code after disabling Two factor authentication or with different user who doesn't configure Two factor authentication.

    Thanks

    Justin Jose

  • Shidin Haridas Profile Picture
    3,499 on at

    Rajalax,

    If you can mention your requirement, maybe we can suggest workarounds which does not involve having to create SP folders from the Dynamics plugin.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans