Timeline for Unable to replace data source from a layer in an ArcGIS MapDocument
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 23 at 9:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 25 at 12:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 27 at 7:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 17, 2023 at 5:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 17, 2023 at 16:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 18, 2023 at 22:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 18, 2022 at 8:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 14, 2021 at 20:19 | history | edited | PolyGeo♦ |
edited tags
|
|
Dec 14, 2021 at 19:06 | answer | added | Karol Duarte | timeline score: 0 | |
Dec 14, 2021 at 18:56 | comment | added | Vince |
Well, since you don't specify the validate parameter, the default value of True is used, which is documented as "If set to True, a workspace will only be updated if the workspace_path value is a valid workspace. If it is not valid, the workspace will not be replaced. If set to False, the method will set the source to match the workspace_path, regardless of a valid match. In this case, if a match does not exist, then the data source would be broken." so your replacement is incorrect in some way. Not including the .shp suffix could be a cause.
|
|
Dec 14, 2021 at 18:20 | comment | added | Karol Duarte |
You say, using mxd.save() ? I didn't add it to this sample of code here, but I have used it.
|
|
Dec 14, 2021 at 17:53 | comment | added | Vince | You don't seem to have saved the changes (at least, it's not in your code). Not uncommon; in fact, this is a duplicate of a (probably closed) question from a few months back. | |
Dec 14, 2021 at 17:53 | history | edited | Vince | CC BY-SA 4.0 |
naming
|
S Dec 14, 2021 at 17:32 | review | First questions | |||
Dec 14, 2021 at 18:22 | |||||
S Dec 14, 2021 at 17:32 | history | asked | Karol Duarte | CC BY-SA 4.0 |