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?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.