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

  • RE: KingswaySoft Connection Manager Changing Principal User?

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

  • Verified answer
    Daniel Cai Profile Picture
    Daniel Cai 935 on at
    RE: KingswaySoft Connection Manager Changing Principal User?

    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. 

  • ashlega Profile Picture
    ashlega 34,477 on at
    RE: KingswaySoft Connection Manager Changing Principal User?

    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?

  • RE: KingswaySoft Connection Manager Changing Principal User?

    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?

  • Andre Margono Profile Picture
    Andre Margono 2,602 on at
    RE: KingswaySoft Connection Manager Changing Principal User?

    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

  • ashlega Profile Picture
    ashlega 34,477 on at
    RE: KingswaySoft Connection Manager Changing Principal User?

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans