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 GP (Archived)

Web Services - Security object does not exist

(0) ShareShare
ReportReport
Posted on by 45

Hi there,

I've created a new company in GP (using GP Utilities) and I'm finding that I cannot perform any action via web services to this company. Whenever I do, the following message appears in the Exceptions List:

 "Microsoft.Dynamics.Security.NonExistentSecurityObjectException : The security object does not exist.  Key = 2".

I know that the Key refers to the company id but cannot understand why this fails.

When trying the same thing against Fabrikam all works fine. I also have another company which was created at the time of installing web services and it works fine with this too. Incidentally, the company works fine when working directly within the GP application.

Are there any scripts that I need to run in order to install the security objects in the company? Or is it a case of having to uninstall and reinstall web services and create the company at that time?

Regards,

Mark Green

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi, you need to make sure that the keys in GP and in the actice directory database in web servics are the same. Its probably a missing key in web services.

    There is a techknowledge on this with the SQL queries you need to run:

    https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?WTNTZSMNWUKNTMMYVLXUZLWUKKQPOVRVTLKUSRMOQVVYUKKXRVYRTTWLZTPWKURU

    Regards,

    Ian.

  • Grendal Profile Picture
    45 on at

    That's great, many thanks for that.

    We actually managed to sort it by re-running the setup for web services. There's an option to add a company, this has the effect of refreshing all the security objects and metadata in each company database.

     

    Mark

  • Community Member Profile Picture
    on at

    Great stuff. Thanks for the update, always good to share resolutions.

    Best regards,

    Ian.

  • Laurie Fineberg Profile Picture
    65 on at

    hello all

    I am having issues with GPwebservice. I have a server with SQL2008 64bit and the OS is windows servr 2008 64bit.

    I have a second Server which is my GP server with Windows 2008 64 bit

    I then have a third server with windows 2003 r2 32bit. This is my moss/workflow server

    It is onto this server I am trying to install GP Webservices with sp2 and right at the end theinstallation fails and when I look at the event log I get the following error

    "Exception type:
    Microsoft.Dynamics.Security.InvalidSecurityContextException

    Exception message:
    Microsoft.Dynamics.Security.NonExistentSecurityObjectException : The security object does not exist.  Key = 25cc1a21-2cc4-4b13-a1c8-eea186fb688a

    SecurityContext:
     ApplicationKey: 25cc1a21-2cc4-4b13-a1c8-eea186fb688a
     ScopeKey: 9
     User: AFGRI\Dynamics

    Action:
    GetRoles

    Input parameters:
    <RequestObjects>
    <string>AFGRI\Dynamics</string></RequestObjects>

    Stack Trace:
       at Microsoft.Dynamics.Security.ValidationHelper.ValidateContext(SecurityContext context)
       at Microsoft.Dynamics.Security.AzManMemberAccess.GetRoles(SecurityContext context, String member)


    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."

    Please can anybody help!!!!!!!!!! 

    Regards laurie 

     

  • Linda Lopez Profile Picture
    65 on at

    I have the same kind of error when Web Services Configuration Wizard is run after removing, uninstalling, reinstalling Web Service and attempting to add company in order to clear the security metadata.  

    Loader Errors:

    - Microsoft.Dynamics.Security.InvalidSecurityContextException: Microsoft.Dynamics.Security.NonExistentSecurityObjectException : The security object does not exist.  Key = 25cc1a21-2cc4-4b13-a1c8-eea186fb688a

      at Microsoft.Dynamics.Security.ValidationHelper.ValidateContext(SecurityContext context)

      at Microsoft.Dynamics.Security.SecurityService.Get(SecurityContext context, Key key)

      at Microsoft.Dynamics.Security.AzManOperationServiceImplementation.GetOperation(SecurityContext context, OperationKey operationKey)

      at Microsoft.Dynamics.GP.GPSecurityMetadataSystemLoader.PerformActionForCustomSecurityOperation(Action action, String operationKey, Keyword keyword, String nameResXId, String descriptionResXId, String resXAssemblyName)

      at Microsoft.Dynamics.GP.GPSecurityMetadataSystemLoader.PerformActionForStandardSecurityOperations(Action action, Type businessObjectType, Keyword keyword, Operation[] serviceOperations)

      at Microsoft.Dynamics.GP.GPSecurityMetadataSystemLoader.PerformActionOnOperationsUpgradeVersion105ToVersion11(Action action)

      at Microsoft.Dynamics.GP.GPSecurityMetadataSystemLoader.<GetActions>b__6()

      at Microsoft.Dynamics.InstallData.Loader.Process(String[] args)

    The company databases were upgraded from GP 10.0 on ADAM security on an older server to GP 2010 on a Windows 2008 server where we wish to use SQL security.  Apparently the company databases themselves are not getting refreshed so the dependency on ADAM is not being removed.  Therefore, I can successfully Remove security data using the Configuration Wizard, but I cannot add the companies.  As a result, the Dynamics Security Console shows no applications to select and of course no companies.  I have spent nearly a week reading all the posts on this issue and taking all the suggestions I have found.  

    The idea of leaving the old GP 10 server alone is to provide a failsafe for the delays caused by upgrade.  My current test system is intended to be the new production system.  All upgrades have gone successfully except Web Services, which is crucial to the client's business.

    I cannot help but notice the questions regarding this error are officially "unanswered."  

    My question is "How do I safely remove the memory of ADAM security objects from the DYNAMICS database and (if needed) the company databases  I have upgraded so I can use SQL security?  Clearly reinstalling Web Services is insufficient.

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 GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans