Error 000732 - Input Layer “does not exist or is not supported” when using...
How to model explosives?
Is it possible to run Internet Explorer on OS X El Capitan?
Is it inappropriate for a student to attend their mentor's dissertation defense?
Were any external disk drives stacked vertically?
Is "remove commented out code" correct English?
Is it possible to create light that imparts a greater proportion of its energy as momentum rather than heat?
How can I tell someone that I want to be his or her friend?
What is the most common color to indicate the input-field is disabled?
Assassin's bullet with mercury
Is there a hemisphere-neutral way of specifying a season?
Does a druid starting with a bow start with no arrows?
Anagram holiday
Why are electrically insulating heatsinks so rare? Is it just cost?
1960's book about a plague that kills all white people
How to take photos in burst mode, without vibration?
Could gravitational lensing be used to protect a spaceship from a laser?
Should I tell management that I intend to leave due to bad software development practices?
SSH "lag" in LAN on some machines, mixed distros
CEO ridiculed me with gay jokes and grabbed me and wouldn't let go - now getting pushed out of company
Theorems that impeded progress
How to prevent "they're falling in love" trope
What mechanic is there to disable a threat instead of killing it?
Is it legal for company to use my work email to pretend I still work there?
How can saying a song's name be a copyright violation?
Error 000732 - Input Layer “does not exist or is not supported” when using 'ApplySymbologyFromLayer_management'
Why is “arcpy.GetParameterAsText” deleting Target Feature Class?“Dataset xxx does not exist or is not supported” using Table to Domain in PythonWhy does AddField give ERROR: 000732 Input Table: does not exist or is not supported?Cause of ERROR 000732: Input Layer: Dataset plan does not exist or is not supported?Copy query feature layer into a feature class - error 000732ArcGIS ERROR 000732Using FeatureClassToFeatureClass_conversion to convert tab files?Extract LAS tool is not working inside a loop?Applying Symbology To MXD Layers From Symbology Files In ArcGIS Stand Alone ArcPy?Copying feature classes in feature dataset returns ERROR 000732: Input Features does not exist or is not supportedConversion of CSV to DBF is getting error message, why?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Using Arc 10.2
I am getting the following error message...
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Layer: Dataset Q:DataInfrastructureInfrastructure.gdbLiftStations_Active does not
exist or is not supported
Failed to execute (ApplySymbologyFromLayer).
...when I run a script containing the following code snippet:
dest = arcpy.GetParameterAsText(1)
destWorkspace, destName = os.path.split(dest)
arcpy.FeatureClassToFeatureClass_conversion(source, destWorkspace, destName, "", mapping)
in_symbology_layer = r"Q:DatalyrfilesLiftStations.lyr"
arcpy.ApplySymbologyFromLayer_management (dest, in_symbology_layer)
There are no problems with the first four lines of my snippet (all the parameters are legit and I'd rather spare you the entire or extraneous sections of my code). The error message says nothing about those lines and I've confirmed the "in_symbology_layer" exists (Q:DatalyrfilesLiftStations.lyr).
I have double checked - the FC mentioned in the above error message does exist. In fact, since it comes directly from the tool's 2nd GetParameterAsText, the tool warns me that it "already exists" with the exclamation symbol beside the parameter field.
Why am I getting this error?
Further Thoughts
Am I not allowed to use "ApplySymbologyFromLayer_management" on a Feature Class? On a newly-created FC?
Does it have anything to do with the fact that since "dest" is an Output Parameter it gets deleted as soon as the script begins? (reference: "Why is “arcpy.GetParameterAsText” deleting Target Feature Class?")
Does it have anything to do with the fact that "dest" then gets recreated only two lines prior to 'ApplySymbologyFromLayer_management'?
arcpy arcgis-10.2 symbology error-000732 layer-file
bumped to the homepage by Community♦ 9 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Using Arc 10.2
I am getting the following error message...
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Layer: Dataset Q:DataInfrastructureInfrastructure.gdbLiftStations_Active does not
exist or is not supported
Failed to execute (ApplySymbologyFromLayer).
...when I run a script containing the following code snippet:
dest = arcpy.GetParameterAsText(1)
destWorkspace, destName = os.path.split(dest)
arcpy.FeatureClassToFeatureClass_conversion(source, destWorkspace, destName, "", mapping)
in_symbology_layer = r"Q:DatalyrfilesLiftStations.lyr"
arcpy.ApplySymbologyFromLayer_management (dest, in_symbology_layer)
There are no problems with the first four lines of my snippet (all the parameters are legit and I'd rather spare you the entire or extraneous sections of my code). The error message says nothing about those lines and I've confirmed the "in_symbology_layer" exists (Q:DatalyrfilesLiftStations.lyr).
I have double checked - the FC mentioned in the above error message does exist. In fact, since it comes directly from the tool's 2nd GetParameterAsText, the tool warns me that it "already exists" with the exclamation symbol beside the parameter field.
Why am I getting this error?
Further Thoughts
Am I not allowed to use "ApplySymbologyFromLayer_management" on a Feature Class? On a newly-created FC?
Does it have anything to do with the fact that since "dest" is an Output Parameter it gets deleted as soon as the script begins? (reference: "Why is “arcpy.GetParameterAsText” deleting Target Feature Class?")
Does it have anything to do with the fact that "dest" then gets recreated only two lines prior to 'ApplySymbologyFromLayer_management'?
arcpy arcgis-10.2 symbology error-000732 layer-file
bumped to the homepage by Community♦ 9 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Are you sure about the second line of your code snippet? I think that first backslash needs to be doubled and ther
removed. Or alternatively, undouble all your double slashes and leave ther
in place.
– PolyGeo♦
Jul 10 '18 at 0:42
1
What is the value of destWorkspace? If it doesn't have a terminating separator there could be a problem there.. best to use os.path.join(destWorkspace,destName) rather than destWorkspace+destName. But, yes, apply symbology from layer only works on layers not feature classes or rasters. You can use MakeFeautreLayer to create a layer from your feature class.
– Michael Stimson
Jul 10 '18 at 0:48
The values of "destWorkspace" and "destName" were originally split apart from "dest" because FeatureClasstoFeatureClass_conversion requires them as two separate parameters. I've just put "dest" in as a parameter for "ApplySymbology" now. It is derived straight from the tool via "GetParameterAsText" and when I print its value it reads "Q:DataInfrastructureInfrastructure.gdbLiftstations_Active".
– Waterman
Jul 10 '18 at 21:19
add a comment |
Using Arc 10.2
I am getting the following error message...
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Layer: Dataset Q:DataInfrastructureInfrastructure.gdbLiftStations_Active does not
exist or is not supported
Failed to execute (ApplySymbologyFromLayer).
...when I run a script containing the following code snippet:
dest = arcpy.GetParameterAsText(1)
destWorkspace, destName = os.path.split(dest)
arcpy.FeatureClassToFeatureClass_conversion(source, destWorkspace, destName, "", mapping)
in_symbology_layer = r"Q:DatalyrfilesLiftStations.lyr"
arcpy.ApplySymbologyFromLayer_management (dest, in_symbology_layer)
There are no problems with the first four lines of my snippet (all the parameters are legit and I'd rather spare you the entire or extraneous sections of my code). The error message says nothing about those lines and I've confirmed the "in_symbology_layer" exists (Q:DatalyrfilesLiftStations.lyr).
I have double checked - the FC mentioned in the above error message does exist. In fact, since it comes directly from the tool's 2nd GetParameterAsText, the tool warns me that it "already exists" with the exclamation symbol beside the parameter field.
Why am I getting this error?
Further Thoughts
Am I not allowed to use "ApplySymbologyFromLayer_management" on a Feature Class? On a newly-created FC?
Does it have anything to do with the fact that since "dest" is an Output Parameter it gets deleted as soon as the script begins? (reference: "Why is “arcpy.GetParameterAsText” deleting Target Feature Class?")
Does it have anything to do with the fact that "dest" then gets recreated only two lines prior to 'ApplySymbologyFromLayer_management'?
arcpy arcgis-10.2 symbology error-000732 layer-file
Using Arc 10.2
I am getting the following error message...
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Layer: Dataset Q:DataInfrastructureInfrastructure.gdbLiftStations_Active does not
exist or is not supported
Failed to execute (ApplySymbologyFromLayer).
...when I run a script containing the following code snippet:
dest = arcpy.GetParameterAsText(1)
destWorkspace, destName = os.path.split(dest)
arcpy.FeatureClassToFeatureClass_conversion(source, destWorkspace, destName, "", mapping)
in_symbology_layer = r"Q:DatalyrfilesLiftStations.lyr"
arcpy.ApplySymbologyFromLayer_management (dest, in_symbology_layer)
There are no problems with the first four lines of my snippet (all the parameters are legit and I'd rather spare you the entire or extraneous sections of my code). The error message says nothing about those lines and I've confirmed the "in_symbology_layer" exists (Q:DatalyrfilesLiftStations.lyr).
I have double checked - the FC mentioned in the above error message does exist. In fact, since it comes directly from the tool's 2nd GetParameterAsText, the tool warns me that it "already exists" with the exclamation symbol beside the parameter field.
Why am I getting this error?
Further Thoughts
Am I not allowed to use "ApplySymbologyFromLayer_management" on a Feature Class? On a newly-created FC?
Does it have anything to do with the fact that since "dest" is an Output Parameter it gets deleted as soon as the script begins? (reference: "Why is “arcpy.GetParameterAsText” deleting Target Feature Class?")
Does it have anything to do with the fact that "dest" then gets recreated only two lines prior to 'ApplySymbologyFromLayer_management'?
arcpy arcgis-10.2 symbology error-000732 layer-file
arcpy arcgis-10.2 symbology error-000732 layer-file
edited Aug 22 '18 at 12:07
artwork21
31.1k554120
31.1k554120
asked Jul 10 '18 at 0:36
WatermanWaterman
624415
624415
bumped to the homepage by Community♦ 9 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 9 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Are you sure about the second line of your code snippet? I think that first backslash needs to be doubled and ther
removed. Or alternatively, undouble all your double slashes and leave ther
in place.
– PolyGeo♦
Jul 10 '18 at 0:42
1
What is the value of destWorkspace? If it doesn't have a terminating separator there could be a problem there.. best to use os.path.join(destWorkspace,destName) rather than destWorkspace+destName. But, yes, apply symbology from layer only works on layers not feature classes or rasters. You can use MakeFeautreLayer to create a layer from your feature class.
– Michael Stimson
Jul 10 '18 at 0:48
The values of "destWorkspace" and "destName" were originally split apart from "dest" because FeatureClasstoFeatureClass_conversion requires them as two separate parameters. I've just put "dest" in as a parameter for "ApplySymbology" now. It is derived straight from the tool via "GetParameterAsText" and when I print its value it reads "Q:DataInfrastructureInfrastructure.gdbLiftstations_Active".
– Waterman
Jul 10 '18 at 21:19
add a comment |
1
Are you sure about the second line of your code snippet? I think that first backslash needs to be doubled and ther
removed. Or alternatively, undouble all your double slashes and leave ther
in place.
– PolyGeo♦
Jul 10 '18 at 0:42
1
What is the value of destWorkspace? If it doesn't have a terminating separator there could be a problem there.. best to use os.path.join(destWorkspace,destName) rather than destWorkspace+destName. But, yes, apply symbology from layer only works on layers not feature classes or rasters. You can use MakeFeautreLayer to create a layer from your feature class.
– Michael Stimson
Jul 10 '18 at 0:48
The values of "destWorkspace" and "destName" were originally split apart from "dest" because FeatureClasstoFeatureClass_conversion requires them as two separate parameters. I've just put "dest" in as a parameter for "ApplySymbology" now. It is derived straight from the tool via "GetParameterAsText" and when I print its value it reads "Q:DataInfrastructureInfrastructure.gdbLiftstations_Active".
– Waterman
Jul 10 '18 at 21:19
1
1
Are you sure about the second line of your code snippet? I think that first backslash needs to be doubled and the
r
removed. Or alternatively, undouble all your double slashes and leave the r
in place.– PolyGeo♦
Jul 10 '18 at 0:42
Are you sure about the second line of your code snippet? I think that first backslash needs to be doubled and the
r
removed. Or alternatively, undouble all your double slashes and leave the r
in place.– PolyGeo♦
Jul 10 '18 at 0:42
1
1
What is the value of destWorkspace? If it doesn't have a terminating separator there could be a problem there.. best to use os.path.join(destWorkspace,destName) rather than destWorkspace+destName. But, yes, apply symbology from layer only works on layers not feature classes or rasters. You can use MakeFeautreLayer to create a layer from your feature class.
– Michael Stimson
Jul 10 '18 at 0:48
What is the value of destWorkspace? If it doesn't have a terminating separator there could be a problem there.. best to use os.path.join(destWorkspace,destName) rather than destWorkspace+destName. But, yes, apply symbology from layer only works on layers not feature classes or rasters. You can use MakeFeautreLayer to create a layer from your feature class.
– Michael Stimson
Jul 10 '18 at 0:48
The values of "destWorkspace" and "destName" were originally split apart from "dest" because FeatureClasstoFeatureClass_conversion requires them as two separate parameters. I've just put "dest" in as a parameter for "ApplySymbology" now. It is derived straight from the tool via "GetParameterAsText" and when I print its value it reads "Q:DataInfrastructureInfrastructure.gdbLiftstations_Active".
– Waterman
Jul 10 '18 at 21:19
The values of "destWorkspace" and "destName" were originally split apart from "dest" because FeatureClasstoFeatureClass_conversion requires them as two separate parameters. I've just put "dest" in as a parameter for "ApplySymbology" now. It is derived straight from the tool via "GetParameterAsText" and when I print its value it reads "Q:DataInfrastructureInfrastructure.gdbLiftstations_Active".
– Waterman
Jul 10 '18 at 21:19
add a comment |
2 Answers
2
active
oldest
votes
You have too many backslashes in your path to your layer file. r
means raw string, so no need for \
when you use r
in_symbology_layer = r"Q:GWEC1210WQAEH_QESEACSSP_ATLDatalyrfilesLiftStations_NB_Active.lyr"
destWorkspace+destName
looks suspicious. Try:
import os
arcpy.ApplySymbologyFromLayer_management (os.path.join (destWorkspace, destName), in_symbology_layer)
The problem still exists in case you have any further ideas?
– Waterman
Jul 16 '18 at 23:34
add a comment |
Symbology applies to a layer, not to a feature class. From the help:
This tool applies the symbology from a layer to the Input Layer. It
can be applied to feature, raster, network analysis, TIN, and
geostatistical layer files or layers in the ArcMap table of contents.
You will need to make a feature layer within your code (the following is untested but should get you on the right track):
dest = arcpy.GetParameterAsText(1)
destWorkspace, destName = os.path.split(dest)
arcpy.FeatureClassToFeatureClass_conversion(source, destWorkspace, destName, "", mapping)
arcpy.MakeFeatureLayer_management (dest, "out_layer")
in_symbology_layer = r"Q:DatalyrfilesLiftStations.lyr"
arcpy.ApplySymbologyFromLayer_management ("out_layer", in_symbology_layer)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f288932%2ferror-000732-input-layer-does-not-exist-or-is-not-supported-when-using-appl%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have too many backslashes in your path to your layer file. r
means raw string, so no need for \
when you use r
in_symbology_layer = r"Q:GWEC1210WQAEH_QESEACSSP_ATLDatalyrfilesLiftStations_NB_Active.lyr"
destWorkspace+destName
looks suspicious. Try:
import os
arcpy.ApplySymbologyFromLayer_management (os.path.join (destWorkspace, destName), in_symbology_layer)
The problem still exists in case you have any further ideas?
– Waterman
Jul 16 '18 at 23:34
add a comment |
You have too many backslashes in your path to your layer file. r
means raw string, so no need for \
when you use r
in_symbology_layer = r"Q:GWEC1210WQAEH_QESEACSSP_ATLDatalyrfilesLiftStations_NB_Active.lyr"
destWorkspace+destName
looks suspicious. Try:
import os
arcpy.ApplySymbologyFromLayer_management (os.path.join (destWorkspace, destName), in_symbology_layer)
The problem still exists in case you have any further ideas?
– Waterman
Jul 16 '18 at 23:34
add a comment |
You have too many backslashes in your path to your layer file. r
means raw string, so no need for \
when you use r
in_symbology_layer = r"Q:GWEC1210WQAEH_QESEACSSP_ATLDatalyrfilesLiftStations_NB_Active.lyr"
destWorkspace+destName
looks suspicious. Try:
import os
arcpy.ApplySymbologyFromLayer_management (os.path.join (destWorkspace, destName), in_symbology_layer)
You have too many backslashes in your path to your layer file. r
means raw string, so no need for \
when you use r
in_symbology_layer = r"Q:GWEC1210WQAEH_QESEACSSP_ATLDatalyrfilesLiftStations_NB_Active.lyr"
destWorkspace+destName
looks suspicious. Try:
import os
arcpy.ApplySymbologyFromLayer_management (os.path.join (destWorkspace, destName), in_symbology_layer)
answered Jul 10 '18 at 19:23
Emil BrundageEmil Brundage
9,66311645
9,66311645
The problem still exists in case you have any further ideas?
– Waterman
Jul 16 '18 at 23:34
add a comment |
The problem still exists in case you have any further ideas?
– Waterman
Jul 16 '18 at 23:34
The problem still exists in case you have any further ideas?
– Waterman
Jul 16 '18 at 23:34
The problem still exists in case you have any further ideas?
– Waterman
Jul 16 '18 at 23:34
add a comment |
Symbology applies to a layer, not to a feature class. From the help:
This tool applies the symbology from a layer to the Input Layer. It
can be applied to feature, raster, network analysis, TIN, and
geostatistical layer files or layers in the ArcMap table of contents.
You will need to make a feature layer within your code (the following is untested but should get you on the right track):
dest = arcpy.GetParameterAsText(1)
destWorkspace, destName = os.path.split(dest)
arcpy.FeatureClassToFeatureClass_conversion(source, destWorkspace, destName, "", mapping)
arcpy.MakeFeatureLayer_management (dest, "out_layer")
in_symbology_layer = r"Q:DatalyrfilesLiftStations.lyr"
arcpy.ApplySymbologyFromLayer_management ("out_layer", in_symbology_layer)
add a comment |
Symbology applies to a layer, not to a feature class. From the help:
This tool applies the symbology from a layer to the Input Layer. It
can be applied to feature, raster, network analysis, TIN, and
geostatistical layer files or layers in the ArcMap table of contents.
You will need to make a feature layer within your code (the following is untested but should get you on the right track):
dest = arcpy.GetParameterAsText(1)
destWorkspace, destName = os.path.split(dest)
arcpy.FeatureClassToFeatureClass_conversion(source, destWorkspace, destName, "", mapping)
arcpy.MakeFeatureLayer_management (dest, "out_layer")
in_symbology_layer = r"Q:DatalyrfilesLiftStations.lyr"
arcpy.ApplySymbologyFromLayer_management ("out_layer", in_symbology_layer)
add a comment |
Symbology applies to a layer, not to a feature class. From the help:
This tool applies the symbology from a layer to the Input Layer. It
can be applied to feature, raster, network analysis, TIN, and
geostatistical layer files or layers in the ArcMap table of contents.
You will need to make a feature layer within your code (the following is untested but should get you on the right track):
dest = arcpy.GetParameterAsText(1)
destWorkspace, destName = os.path.split(dest)
arcpy.FeatureClassToFeatureClass_conversion(source, destWorkspace, destName, "", mapping)
arcpy.MakeFeatureLayer_management (dest, "out_layer")
in_symbology_layer = r"Q:DatalyrfilesLiftStations.lyr"
arcpy.ApplySymbologyFromLayer_management ("out_layer", in_symbology_layer)
Symbology applies to a layer, not to a feature class. From the help:
This tool applies the symbology from a layer to the Input Layer. It
can be applied to feature, raster, network analysis, TIN, and
geostatistical layer files or layers in the ArcMap table of contents.
You will need to make a feature layer within your code (the following is untested but should get you on the right track):
dest = arcpy.GetParameterAsText(1)
destWorkspace, destName = os.path.split(dest)
arcpy.FeatureClassToFeatureClass_conversion(source, destWorkspace, destName, "", mapping)
arcpy.MakeFeatureLayer_management (dest, "out_layer")
in_symbology_layer = r"Q:DatalyrfilesLiftStations.lyr"
arcpy.ApplySymbologyFromLayer_management ("out_layer", in_symbology_layer)
answered Oct 30 '18 at 17:35
AndyAndy
1,239714
1,239714
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f288932%2ferror-000732-input-layer-does-not-exist-or-is-not-supported-when-using-appl%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Are you sure about the second line of your code snippet? I think that first backslash needs to be doubled and the
r
removed. Or alternatively, undouble all your double slashes and leave ther
in place.– PolyGeo♦
Jul 10 '18 at 0:42
1
What is the value of destWorkspace? If it doesn't have a terminating separator there could be a problem there.. best to use os.path.join(destWorkspace,destName) rather than destWorkspace+destName. But, yes, apply symbology from layer only works on layers not feature classes or rasters. You can use MakeFeautreLayer to create a layer from your feature class.
– Michael Stimson
Jul 10 '18 at 0:48
The values of "destWorkspace" and "destName" were originally split apart from "dest" because FeatureClasstoFeatureClass_conversion requires them as two separate parameters. I've just put "dest" in as a parameter for "ApplySymbology" now. It is derived straight from the tool via "GetParameterAsText" and when I print its value it reads "Q:DataInfrastructureInfrastructure.gdbLiftstations_Active".
– Waterman
Jul 10 '18 at 21:19