HOW TO CHECK MODULES INSTALLED IN PYTHON
MyArcGISserver
by muryadioey
3y ago
If there is no PIP, install PIP on the python folder by: Python.exe get-pip.py Once pip installed, run: installed_packages = pip.get_installed_distributions() installed_packages_list = sorted([“%s==%s” % (i.key, i.version) for i in installed_packages]) print(installed_packages_list) or you can run, from python interpreter help(‘modules’) or create this into modules.py import sys import pydoc def output_help_to_file(filepath, modul): f = file(filepath, ‘w’) sys.stdout = f pydoc.help(modul) f.close() sys.stdout = sys.__stdout__ return output_help_to_file(r’modules.txt’, ‘modules’) To check Pytho ..read more
Visit website
Download Attachments from Microsoft Access using Python
MyArcGISserver
by muryadioey
3y ago
Have a ton of attachments in your Access Database, Do you want to download all attachments from Microsoft Access Database using script? import win32com.client import os # Log file location log_file = r"c:\Users\mlou\Documents\Projects\convert_log1.txt" working_path = r"c:\Users\mlou\Documents\Projects\Images" doc = open(log_file, 'w+') daoEngine = win32com.client.Dispatch('DAO.DBEngine.120') db = r"C:\Users\mlou\Documents\Projects\AccessDB_12_14_2018.accdb" daoDB = daoEngine.OpenDatabase(db) # Do query to database query = "SELECT * FROM Plants" daoRS = daoDB.OpenRecordset(query,2) while ..read more
Visit website
Warning:Unable to get service usage timeout for a_service. Defaulting to server directory timeout.
MyArcGISserver
by muryadioey
3y ago
Did you get this error when you checked your ArcGIS server log? The error occurred when a GP service had been deleted but the job still exists in the repo. How to solve it: Go to your “server directories”, for example: arcgisserver\directories\arcgisjobs\ find that GP service name, delete the folder ..read more
Visit website
Error: The content directory has no items directory
MyArcGISserver
by muryadioey
3y ago
Got this error when you want to add second Portal site on ArcGIS 10.5.1? Try this: Update the Portal Directory from local source to shared directory and make sure to change \ (slash) with / (backslash). Example: { “type”:”fileStore”, “provider”:”FileSystem”, “connectionString”:”//server01/prod/Portal_Content”, “isConnectionStringEncrypted”:false }   Hope this works. Good Luck ..read more
Visit website
001487: Failed to update the published service with the server-side data location. Please see the server’s log for more details
MyArcGISserver
by muryadioey
3y ago
Ho ho ho…getting this error when trying to publish a map? After upgrade? I got this error after upgrade from 10.3.1 and 10.4.1. I made several calls to Esri support, no help at all, they were thinking about file permission. I said what? How come file permission got change after upgrade? It doesn’t make sense and I said the account for ArcGIS server service is member of Administrator group and should have full permission to any files/folders. Anyway…let me give you some background. After upgrade, I tried to publish a simple map that using Oracle database, so it means I used registered database ..read more
Visit website
How to Install XGBoost on Windows
MyArcGISserver
by muryadioey
3y ago
When you googled and landed to this blog, I could say you are struggling to install XGBoost on your Python. Anyway, My environment is Windows 7 and I use Spyder Python 3.4.4. I like this Spyder, it has so many modules available such as Panda, Numpy, Seaborn, Matplotlib, etc but no XGBoost. Let’s me give you some tips on how to install it: Go to this GitHub, https://github.com/dmlc/xgboost and download the folder python-package. Save it into your python environment. …\python-package\xgboost. it depends on where you have your python.exe. I have several python versions on my compu ..read more
Visit website
How many time did your service been hit?
MyArcGISserver
by muryadioey
3y ago
One day some one, could be your manager, customer or some one else, asked you if you could give them metric on how many time in a month or week your services have been hit. There are many ways to answer this and many tools available out there. Here, I would like to give you a free tool or you could say it as script where you can run and give an idea to your requester how many hits on your ArcGIS services.You can also modify this script to not only produce a csv file but also input into database, so everyone can access the data.   Good Luck,   ..read more
Visit website
The Headache of Password Caching in MXD file
MyArcGISserver
by muryadioey
3y ago
Got headache of password caching in your mxd files? If your company have policy to change account password frequently and has maximum bad password and your mxd document is getting data from an account that affect to it, most likely you will have problem locking the account. I have been researching the behavior of mxd document using a tool and found: It caches password up to 3 times It will cache password forever if you deleted a layer as the layer information still exists in the file, take a look this screenshot. This layer called Layer A After, it still exists in the file even I couldn ..read more
Visit website
A Request from one of my blog readers
MyArcGISserver
by muryadioey
3y ago
Folks, Some of you might come to my blog after googling around and as part of my mission to publish my notes is to help and share. Below here is a request came from Sepideh who is asking some of you or all of you via my blog to support his effort in creating a new Site on StackExchange. Thank you.     Dear Muryadi, As you might have already noticed, there aren’t much places on the net which professionally concentrate on remote sensing and photogrammetry and gather related researchers all over the world to exchange knowledge and improve the community. So I’ve proposed to build a new Q ..read more
Visit website
Collect All Service Properties Information in Site
MyArcGISserver
by muryadioey
3y ago
You can find your service properties information from ArcGIS server manager or admin but how about if you want to see all of your services’ properties? you can run a script and see from there. I found this script was really useful when i wanted to check if any publisher published their service without accepting default value, for example: change minimum instances or maximum instances or maximum idle time or different cluster. Or with a little modification, you can query some other information. Hopefully you find this script is useful for you. Cheers…   ..read more
Visit website

Follow MyArcGISserver on FeedSpot

Continue with Google
Continue with Apple
OR