Select to view content in your preferred language

Zip File to GDB Service

4454
25
Jump to solution
12-14-2012 09:52 AM
BrianLeroux
Frequent Contributor
I am trying to create a service that allows a user to upload a zip file that contains a shape file, unzip it, and finally append to an existing GDB Feature Class. The fields in the shape file do not match the FC so I need to performa field mapping. However, since the input is a zip file I do not have the capabilty to set up the field mapping in the model. So when I run this it adds the elements of the shape file but all the attributes are blank because the missing mapping. Is there any way around this? [ATTACH=CONFIG]19948[/ATTACH]
0 Kudos
25 Replies
meriyalootka
Occasional Contributor
It is pretty simple at this point. You just need to make sure your indentation is correct on those lines that I posted last. Delete the white space before each line so they are not indented and then tab each line over 1 time. The only exception is "except Exception as e:": should not be indented at all.

Hi
I did it, But model return "Invalid syntax error". That is pretty simple for you but not for me.
0 Kudos
meriyalootka
Occasional Contributor
Hi
I did it, But it return "Invalid syntax error"!!!


There is not person that help me??????????????????????:rolleyes:
0 Kudos
georgenberoumber
Emerging Contributor
It is pretty simple at this point. You just need to make sure your indentation is correct on those lines that I posted last. Delete the white space before each line so they are not indented and then tab each line over 1 time. The only exception is "except Exception as e:": should not be indented at all.


Bleroux�??:
You are a big mendacious...
You tell tattle...
You are not going to help people in this blog, just Pull someone's leg...
0 Kudos
georgenberoumber
Emerging Contributor
Bleroux�??:
You are a big mendacious...
You tell tattle...
You are not going to help people in this blog, just Pull someone's leg...
0 Kudos
georgenberoumber
Emerging Contributor
I am trying to create a service that allows a user to upload a zip file that contains a shape file, unzip it, and finally append to an existing GDB Feature Class. The fields in the shape file do not match the FC so I need to performa field mapping. However, since the input is a zip file I do not have the capabilty to set up the field mapping in the model. So when I run this it adds the elements of the shape file but all the attributes are blank because the missing mapping. Is there any way around this? [ATTACH=CONFIG]19948[/ATTACH]


Bleroux�??:
You are a big mendacious...
You tell tattle...
You are not going to help people in this blog, just Pull someone's leg...
Otherwise help them. I was Following-up this forum 3 month ago and  came to this bad conclusion of your terrible answers!:confused:
0 Kudos
BrianLeroux
Frequent Contributor
Bleroux�??:
You are a big mendacious...
You tell tattle...
You are not going to help people in this blog, just Pull someone's leg...
Otherwise help them. I was Following-up this forum 3 month ago and  came to this bad conclusion of your terrible answers!:confused:

Please don't clutter a thread with nonsense. I provide help as much as i can. I am not going to just do all the work for someone if they have an issue with something. I belive in working through my own issues in order to gain knowledge that will benefit me for the future. As you can see when this thread was started it was me that needed help. I did the research and was able to work through my issues to come up with a solution. I did not ask for someone to post a working solution that I could just take. Now please do us both a favor and stop following this thread.