POST
|
Mani, Thanks for your prompt reply. I found a fix (probably a bandage fix). We have one custom role called ViewerPlus. When I tried to add the user from backdoor(script) it fails but adding the same user to the same role through front end(UI) works just fine, upon looking at the form data using fiddler trace i found that role is submitted to portal as daiG7yglgzR6cnLe. When I change the code by assigning the role variable to daiG7yglgzR6cnLe, it works fine. This is not just happening to a custom role but also a default role that esri provides. On the other hand, documentation says "org_admin" but UI form passes it as "account_admin". I use "org_admin" in my code and it works just fine. Don't you think this is a bug? -Naresh Aligeti
... View more
09-14-2018
09:56 AM
|
1
|
1
|
1054
|
POST
|
I get an error when I execute my script to create a user with a custom role. Level 2 is assigned as well to the user but no luck executing the code successfully. java.lang.Exception: The server at 'https://XXXXXXXXXXXXX.XXXXXXX.com:7443/arcgis/sharing/rest/community/createUser' returned an error. The user account cannot be created as the role assigned to it does not exist. [] (Error Code: 500) But the custom role exists when I see logging in as an admin through the UI. Can I get some help? Thanks. Atma Mani -Naresh Aligeti python api portal arcgis-api-python
... View more
09-13-2018
09:18 PM
|
1
|
3
|
1544
|
POST
|
Hi, How could we retrieve just usernames from gis.users.search() list? I am trying to compare users between Azure active directory and built-in users. I just need the usernames but not the entire list comprehension. Thanks -Naresh Aligeti python api portal #portal for arcgis adminstration
... View more
09-11-2018
03:24 PM
|
0
|
5
|
3442
|
POST
|
Shaun, I do not have any locks, I tried passing the location. getting this error message Error in .call_proxy("arc_export2dataset", path, data, coords, shape_info) : The table already exists.
... View more
10-12-2017
06:55 AM
|
0
|
1
|
469
|
POST
|
They are all quoted. Its just how the code was pasted. I did revalidate my JSON and it looks just fine.
... View more
07-31-2017
07:47 AM
|
0
|
0
|
453
|
POST
|
Here it is. I dont see anything wrong with "Type" { "folderName" : Geocortex, "service" : -{ "serviceName" : Service_Area, "type" : MapServer, "description" : , "capabilities" : Map,Query,Data, "properties" : -{ "virtualCacheDir" : /rest/directories/arcgiscache, "maxImageHeight" : 4096, "exportTilesAllowed" : false, "textAntialiasingMode" : None, "maxImageWidth" : 4096, "enableDynamicLayers" : false, "dynamicDataWorkspaces" : , "supportedImageReturnTypes" : URL, "disableIdentifyRelates" : false, "isCached" : false, "maxScale" : 4513.9887049999998, "maxBufferCount" : 100, "schemaLockingEnabled" : false, "maxRecordCount" : 1000, "cacheDir" : \\\\somethinng\\AGS_1031\\DEV\\DEV02\\arcgisserver\\directories\\arcgiscache, "cacheOnDemand" : false, "useLocalCacheDir" : true, "virtualOutputDir" : /rest/directories/arcgisoutput, "outputDir" : \\\\somethinng\\AGS_1031\\DEV\\DEV02\\arcgisserver\\directories\\arcgisoutput, "minScale" : 9244648.8686180003, "maxDomainCodeCount" : 25000, "maxExportTilesCount" : 100000, "ignoreCache" : false, "antialiasingMode" : None, "clientCachingAllowed" : true, "filePath" : \\\\somethinng\\AGS_1031\\DEV\\DEV02\\arcgisserver\\directories\\arcgissystem\\arcgisinput\\Geocortex\\Service_Area.MapServer\\extracted\\v101\\Service_Area.msd }, "clusterName" : default, "maxIdleTime" : 1800, "isolationLevel" : HIGH, "loadBalancing" : ROUND_ROBIN, "configuredState" : STARTED, "minInstancesPerNode" : 1, "maxInstancesPerNode" : 2, "maxWaitTime" : 60, "maxUsageTime" : 600, "instancesPerContainer" : 1, "keepAliveInterval" : 1800, "recycleStartTime" : 00:00, "recycleInterval" : 24, "extensions" : -[ -{ "enabled" : false, "typeName" : KmlServer, "capabilities" : SingleImage,SeparateImages,Vectors, "properties" : -{ "message" : , "minRefreshPeriod" : 30, "linkDescription" : , "useNetworkLinkControlTag" : false, "compatibilityMode" : GoogleEarth, "imageSize" : 1024, "dpi" : 96, "endPointURL" : , "linkName" : , "composite" : true, "featureLimit" : 1000000, "useDefaultSnippets" : false } }, -{ "enabled" : false, "typeName" : WMSServer, "capabilities" : GetCapabilities,GetMap,GetFeatureInfo,GetStyles,GetLegendGraphic,GetSchemaExtension, "properties" : -{ "abstract" : , "onlineResource" : http://organization.com:6080/arcgis/services/Geocortex/Service_Area/MapServer/WMSServer, "keyword" : , "postCode" : , "inheritLayerNames" : false, "contactPosition" : , "fees" : , "addressType" : , "contactVoiceTelephone" : , "pathToCustomSLDFile" : , "country" : , "city" : , "contactFacsimileTelephone" : , "title" : , "contactOrganization" : , "address" : , "contactElectronicMailAddress" : , "customGetCapabilities" : false, "name" : WMS, "stateOrProvince" : , "pathToCustomGetCapabilitiesFiles" : , "accessConstraints" : , "contactPerson" : } }, -{ "enabled" : false, "typeName" : ArcFMMapServer, "capabilities" : Query,Trace, "properties" : -{ } }, -{ "enabled" : false, "typeName" : NAServer, "capabilities" : , "properties" : -{ "oDCostMatrix_MaxDestinationsToFind" : , "serviceArea_MaxBreakValue_TimeUnits" : esriTimeUnitsMinutes, "vRP_MaxFeaturesInPolygonBarriers" : , "vRP_MaxRoutes" : , "serviceArea_MaxBarriers" : , "route_MaxFeaturesInLineBarriers" : , "locationAllocation_MaxDemandPoints" : , "vRP_ForceHierarchyBeyondDistanceUnits" : esriMeters, "route_ForceHierarchyBeyondDistanceUnits" : esriMeters, "closestFacility_MaxFeaturesInPolygonBarriers" : , "closestFacility_MaxFacilities" : , "oDCostMatrix_MaxDestinations" : , "serviceArea_MaxBreakValue_Length" : , "serviceArea_ForceHierarchyBeyondTimeUnits" : esriTimeUnitsMinutes, "serviceArea_ForceHierarchyBeyondDistanceUnits" : esriMeters, "vRP_MaxFeaturesInLineBarriers" : , "closestFacility_ForceHierarchyBeyondDistanceUnits" : esriMeters, "route_AllowTimeWindows" : true, "serviceArea_MaxFacilities" : , "locationAllocation_MaxFeaturesInPolygonBarriers" : , "oDCostMatrix_MaxFeaturesInLineBarriers" : , "route_MaxFeaturesInPolygonBarriers" : , "locationAllocation_ForceHierarchyBeyondDistance" : , "saveLayerOnServerWhenError" : false, "route_ForceHierarchyBeyondDistance" : , "locationAllocation_ForceHierarchyBeyondDistanceUnits" : esriMeters, "serviceArea_ForceHierarchyBeyondTime" : , "route_MaxStops" : , "serviceArea_MaxFeaturesInLineBarriers" : , "closestFacility_MaxIncidents" : , "allowSaveLayerOnServer" : true, "oDCostMatrix_ForceHierarchyBeyondDistanceUnits" : esriMeters, "route_MaxBarriers" : , "vRP_MaxBarriers" : , "serviceArea_MaxBreakValue_LengthUnits" : esriMeters, "oDCostMatrix_ForceHierarchyBeyondDistance" : , "serviceArea_ForceHierarchyBeyondDistance" : , "saveLayerOnServerWhenDebugging" : false, "closestFacility_MaxFeaturesInLineBarriers" : , "oDCostMatrix_MaxFeaturesInPolygonBarriers" : , "oDCostMatrix_MaxBarriers" : , "closestFacility_MaxFacilitiesToFind" : , "closestFacility_MaxBarriers" : , "serviceArea_MaxBreakValue_Other" : , "defaultOutputGeometryPrecisionUnits" : esriMeters, "vRP_ForceHierarchyBeyondDistance" : , "naLayerDir" : , "oDCostMatrix_MaxOrigins" : , "locationAllocation_MaxBarriers" : , "locationAllocation_MaxFeaturesInLineBarriers" : , "closestFacility_ForceHierarchyBeyondDistance" : , "vRP_MaxOrders" : , "serviceArea_ForceHierarchyBeyondOther" : , "defaultOutputGeometryPrecision" : , "serviceArea_MaxFeaturesInPolygonBarriers" : , "serviceArea_MaxBreakValue_Time" : , "locationAllocation_MaxFacilities" : } }, -{ "enabled" : false, "typeName" : SchematicsServer, "capabilities" : Query, "properties" : -{ "supportsREST" : true } }, -{ "enabled" : false, "typeName" : WCSServer, "capabilities" : , "properties" : -{ "phone" : , "maxImageHeight" : , "maxImageWidth" : , "city" : , "providerWebsite" : , "title" : , "name" : Service_Area, "customGetCapabilities" : , "province" : , "role" : , "accessConstraints" : , "abstract" : , "onlineResource" : http://organization.com:6080/arcgis/services/Geocortex/Service_Area/MapServer/WCSServer, "keywords" : , "fax" : , "zipcode" : , "fees" : , "country" : , "responsiblePerson" : , "providerName" : , "responsiblePosition" : , "email" : , "address" : , "pathToCustomGetCapabilitiesFiles" : , "contactInstructions" : , "serviceHour" : } }, -{ "enabled" : false, "typeName" : FeatureServer, "capabilities" : Query,Create,Update,Delete,Uploads,Editing, "properties" : -{ "creatorPresent" : false, "dataInGdb" : true, "xssPreventionEnabled" : true, "allowGeometryUpdates" : true, "maxRecordCount" : 1000, "allowOthersToQuery" : true, "syncEnabled" : false, "editorTrackingTimeZoneID" : UTC, "enableZDefaults" : false, "realm" : , "allowTrueCurvesUpdates" : false, "allowOthersToDelete" : false, "datasetInspected" : true, "editorTrackingRespectsDayLightSavingTime" : false, "zDefaultValue" : 0, "editorTrackingTimeInUTC" : true, "enableOwnershipBasedAccessControl" : false, "allowOthersToUpdate" : false } }, -{ "enabled" : false, "typeName" : WFSServer, "capabilities" : , "properties" : -{ "appSchemaURI" : http://organization.com:6080/arcgis/services/Geocortex/Service_Area/MapServer/WFSServer, "phone" : , "providerSite" : , "administrativeArea" : , "electronicMailAddress" : , "enableTransactions" : , "city" : , "title" : , "postalCode" : , "name" : Service_Area, "customGetCapabilities" : false, "deliveryPoint" : , "role" : , "axisOrderWFS10" : LongLat, "axisOrderWFS11" : LatLong, "serviceTypeVersion" : , "accessConstraints" : , "positionName" : , "abstract" : , "onlineResource" : http://organization.com:6080/arcgis/services/Geocortex/Service_Area/MapServer/WFSServer, "facsimile" : , "keyword" : , "individualName" : , "fees" : , "serviceType" : , "country" : , "hoursOfService" : , "providerName" : , "pathToCustomGetCapabilitiesFiles" : , "appSchemaPrefix" : Geocortex_Service_Area, "contactInstructions" : } }, -{ "enabled" : false, "typeName" : MobileServer, "capabilities" : Uploads, "properties" : -{ } } ], "provider" : ArcObjects } }
... View more
07-27-2017
03:36 PM
|
0
|
1
|
453
|
POST
|
I used this script as-is with some changes to the below variables, username = raw_input("Enter user name: ") password = getpass.getpass("Enter password: ") # Ask for other necessary information serverName = raw_input("Enter Server name: ") serverPort = 6080 mxdPath = raw_input("Enter the path to the MXD: ") msdPath = raw_input("Enter the desired path for the MSD: ") jsonPath = raw_input("Enter the path to the JSON file: ") I keep getting the below error, not sure what's wrong. ---> Error: JSON object returns an error. {u'status': u'error', u'code': 500, u'messa ges': [u"JSON object for 'Service' is missing required attribute 'type'"]} Error returned by operation. {"status":"error","messages":["JSON object for 'Ser vice' is missing required attribute 'type'"],"code":500} Could someone help? Thanks.
... View more
07-27-2017
02:48 PM
|
0
|
4
|
824
|
Title | Kudos | Posted |
---|---|---|
1 | 09-13-2018 09:18 PM | |
1 | 09-14-2018 09:56 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|