POST
|
ahh, ok @JamesCrandall my bad I was leading you down the wrong path. if you just want a list of unique dates, then use @JamesBrander s original list of dictionaries method and don't worry about the unique ID. Then convert the list to a set, which will show only unique entries in a list. # Using a list of dictionaries approach
with arcpy.da.SearchCursor(fc, ["StartSuvey", "EndSurvey"]) as scur:
# Use a list comprehension to pull the data out of the cusror
date_info_list = [{"start": row[0], "end": row[1]} for row in scur]
date_info_set = set(date_info_list)
... View more
3 weeks ago
|
2
|
2
|
210
|
POST
|
Hi @JamesCrandall, Speaking from the experience of having to do pretty much the same thing before, repeatedly, all I can say is that the a List of Dictionaries as suggested above by @JamesBrander is the way you want to go. It will make incorporating your code much easier. The only thing I would add would be to use a unique ID to help pull out the exact record that you want: # Using a list of dictionaries approach
with arcpy.da.SearchCursor(fc, ["JoinID", "StartSuvey", "EndSurvey"]) as scur:
# Use a list comprehension to pull the data out of the cusror
date_info_list = [{"ID": row[0], "start": row[1], "end": row[2]}} for row in scur] (Use which ever field would be most appropriate instead of Join ID, just used that as it was the only unique ID I could see from your table) Best of luck!
... View more
3 weeks ago
|
3
|
4
|
224
|
POST
|
Hi @azlotin, My first guess would be the Portal URL. I know that you have checked that it is correct, but do you have the real string identifier in front of the string? e.g: r"https://<portal webadaptor url>/<webadaptor name>/" If you have, then I would be looking to see if the script can ping the server first as t may be a network issue as well. Thanks, Michael
... View more
3 weeks ago
|
1
|
0
|
31
|
POST
|
Hi @Ravichandran_M_Kaushika , I agree with @JeffK. That should give you an idea as to what is going on. If you can post your script it would also help us to help you troubleshoot the issue. Thanks, Michael
... View more
3 weeks ago
|
1
|
0
|
176
|
POST
|
Hi @Kara_Shindle , I have had a problem that sounds exactly like the one you are describing above. I had to eventually break out WireShark to see that the script was not even making the call out to the Cache location. It would still return a positive result, but nothing was happening. From what I can recall, there was an issue with using the domain name to hit the cache server, and an issue with the cache server accepting connections from my DEV machine. Not sure how much help this will be and i wish you be best of luck in finding the solution. Thanks, Michael
... View more
01-21-2021
06:43 PM
|
2
|
1
|
196
|
POST
|
Hi Juma Khudonazarov, Could you provide some more information? Since you have posted it in the Python section I assume that you are doing this in the Python window of Pro (from the look of the error message). Could you provide the code that you are using and/or an example of the xlsform? Some context would also be handy, what are you trying to do, when does it occur, does it occur every time, that sort of thing. We can not do much with the amount of information that you have provided. Thanks, Michael
... View more
09-24-2020
07:31 PM
|
2
|
1
|
42
|
POST
|
Good morning Justin Odell, I came across this today whilst pondering your issue. How To: Configure Portal for ArcGIS with custom symbology I am not sure how much access you have to the back end of your Portal but it may be worth a look. I will let you know if I find anything else. Thing is, I can remember doing exactly what you are trying to do about 2 years ago and was able to publish up the custom symbology, but for the life of me I can not remember exactly the process that I used . Hope that we can find the solution soon, Michael
... View more
09-24-2020
04:15 PM
|
2
|
0
|
134
|
POST
|
Hi Brian McLeer, Looking at the screen grab, it looks like the error is in the following line: text = "Routine has failed. Please see log file for detailed information. \n Error Message: \n " + str ( e . msg ) You are trying to call the "msg" of the exception. You should be able to just call e to get the result you are after. Also, using the "{}".format("") syntax for strings should clean up the code a little and will automatically convert things into the correct format. Try this: try : arcpy . management . SynchronizeChanges ( r "C:\Tech_Info\DB_CONX\SERVER\SERVER ParentDatabase user.sde" , "ReplicaName" , r "C:\Tech_Info\DB_CONX\Server\SERVER ChildDatabase user.sde" , "FROM_GEODATABASE1_TO_2" , "IN_FAVOR_OF_GDB1" , "BY_OBJECT" , "RECONCILE " ) except Exception as e : arcpy . AddMessage ( "SynchronizeChanges_management ISGIS.ReplicaName Failed...{0}" . format ( '\n' ) ) txtFile . write ( "SynchronizeChanges_management ISGIS.ReplicaName Failed...{0}" . format ( '\n' ) ) txtFile . write ( "{0}{1}" . format ( arcpy . GetMessages ( ) , '\n' ) ) HOST = "host.server.com" SUBJECT = "Priority: CRITICAL Routine Failure" TO = "email@python.org" FROM = "Routine Failure<failure@python.org>" text = "Routine has failed. Please see log file for detailed information. \n Error Message: \n {0}" . format ( e ) BODY = "From: {1}{0}To: {2}{0}Subject: {3}{0}{0}{4}" . format ( '\r\n' , FROM , TO , SUBJECT , text ) server = smtplib . SMTP ( HOST ) server . sendmail ( FROM , [ TO ] , BODY ) server . quit ( ) I hope this helps, Michael edit: Fixed up the indentation in the code block
... View more
08-27-2020
10:34 PM
|
3
|
0
|
155
|
POST
|
Hi Chuck Powell, I am not sure if you would be able to outside of editing AGOL itself. You could just bookmark the Beta map viewer. If you haven't found it already, book mark this page so that you are up to date with the latest about Web Map Viewer Beta, https://community.esri.com/community/arcgis-online-map-viewer-beta Nic Everdell and Shane Miles way know more though. Hope this helps, Michael
... View more
08-27-2020
09:42 PM
|
3
|
0
|
52
|
POST
|
All good Justin, thanks for the clarification. Symbology - At present Portal does not support complex symbology when publishing the feature the way you are. Try this: with the adjusted layer in the mxd, create a layer file. That should preserve the symbology and the table view of the data. Use the layer file in a new mxd (or the one that you are currently using) and publish the new mxd to the Portal. you may have to publish the layer file by itself to the portal. If you are just using the layer in Web maps/apps and are only using the Pop-ups to display the table information, then configuring the pop-ups would be the best route. You can use the "Custom" option to display the data in the way you want, and if you are using the same layer over many Web Maps then you can copy the "Custom" config to a word doc and import that config into each Web Map where the layer resides. Thanks, Michael
... View more
08-13-2020
10:24 PM
|
2
|
2
|
134
|
Online Status |
Offline
|
Date Last Visited |
Thursday
|