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)

KingswaySoft Connection Manager Changing Principal User?

(0) ShareShare
ReportReport
Posted on by

I was testing out the CRM source connection that KingswaySoft provides inside of SSIS. After running an Upsert operation I was receiving a prvWrite privilege error on a custom entity. Looking at the Principal User guid that the error returned I realized that it is incorrect. What I mean is that I compared the guid in the database and realized that the Guid doesn't match the user I typed into the source and destination CRM connection manager. In other words, I signed in as one user but the error indicates that I called the upsert method as another user. This other user doesn't have the correct permissions to write to the entity which causes this error exception to occur. I'm not allowed to give this other user the write permission. I noticed that this happened when I used the source type as FetchXML. When I had source type as Entity this issue didn't happen. I also tried using the impersonate as parameter and was still unable to resolve the issue. I'm using Visual Studio 2012. Does anyone have an idea what might be the issue? Thank you in advanced. 

*This post is locked for comments

I have the same question (0)
  • ashlega Profile Picture
    34,477 on at

    Hi,

     Do you have any plugins or workflows which might be running under another account?

     It would be unexpected for the kingsway to change the user.. it wouldn't even know of any other user except for the one you typed into the connection manager.

  • Andre Margono Profile Picture
    2,602 on at

    Can you trace on which user that it resolves to?

    This will give a good indication whether the user is related to any integration or other process specific scenario that run behind the scene such as Plugin or Real Time Workflow

  • Community Member Profile Picture
    on at

    I know which user it resolves to. I looked through the plugins,  profiling steps, and workflows and I don't see where this user is used for integration. Is there somewhere more specific I can look at to see if this user is calling a method?

  • ashlega Profile Picture
    34,477 on at

    If it works for "Entity" and does not work for "FetchXml" (assuming fetchxml has all the same attributes for the output columns), and if that FetchXml is only using fields from the entity (no linked entities in the fetch), then you probably need to look for the "RetrieveMultiple" plugins and steps registered on the source entity. That's the only place where there could be some difference, it seems.

    Do you have any plugins registered on RetrieveMultiple?

  • Verified answer
    Daniel Cai Profile Picture
    935 on at

    Do you happen to have createdby field mapped? If so, it will write by impersonating that particular user. If the user doesn't have the write privilege, then you will sure get an error. 

  • Community Member Profile Picture
    on at

    Thanks Daniel I was indeed mapping the created by field. Once I unmapped it I didn't get the error. Thank you.

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