laptop and a wrench

Bogue

Arcpy does not import when logged out and running as a scheduled task and the user is in the Power User Group.

Dernière publication: August 25, 2014 ArcGIS for Desktop
Numéro d’ID de bogue NIM089224
EnvoiFebruary 21, 2013
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.1
Système d’exploitationWindows OS
Version du système d’exploitation2008 R2
StatutNon-Reproducible

Informations supplémentaires

No Public Explanation

Solution de contournement

Use the older version 9.3 syntax:import arcgisscriptinggp = arcgisscripting.create(9.3)Change the permissions on the Network Server account with the following steps:The issue here is that the FLEXnet Licensing Service (which Esri now uses at 10.1, but was not used in 10.0) doesn’t have the proper execution permissions set to it such that the “Network Service” account can start it.Ensure that you are logged in as a user with administration privileges on the machine.From the windows Start menu, select run and enter ‘cmd’. Right-click on “cmd.exe” and select “Run as Administrator.”In the command prompt, run the following command: sc sdshow "FLEXnet Licensing Service"This will print out the DACL permissions that are registered with that service: D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;NU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCLCSWRPLOCRRC;;;IU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)We need to insert “(A;;CCLCSWRPWPDTLOCRRC;;;WD)” into the permission string, such that it becomes: D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;NU)(A;;CCLCSWRPWPDTLOCRRC;;;WD)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCLCSWRPLOCRRC;;;IU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD) NOTE: The user’s DACL string may vary, and edits to the string should be done carefully.To register the DACL with the service run the command: sc sdset "FLEXnet Licensing Service" ${your original DACL string with the new permission string inserted}For the example above you would enter: sc sdset "FLEXnet Licensing Service" D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;NU)(A;;CCLCSWRPWPDTLOCRRC;;;WD)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCLCSWRPLOCRRC;;;IU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)You should see a [SC] SetServiceObjectSecurity SUCCESS. That's it. Network Service should now run without error.

Étapes pour reproduire

ID de bogue: NIM089224

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement