What does this call servProp.get('Database', 'N/A') return? Can you psot this info to the thread?
Richard:Are you able to update the datasource for any lyr files?What kind of machine are you running this script on? I am resourcing both lyr files and SDE connections inside 1000s of mxds. I was also encountering memory usage which kept increasing and eventually halted my script. I am now running the script on a Windows 2008 Server server and I am able to get through batches with 2000 files.Can you create a print statement for your NewDataSource to see if it is getting the correct value to be added to the lyr.replaceDataSource statement?
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.