I've actually tried VB and Python (and every punctuation mark I could think of) and neither works. I ran out of things to try and ended up just doing this in ArcMap. I think the Calculate_Field tool is buggy or something because it works sometimes and othertimes it doesn't.
Seems that you're mixing Python syntax with VB syntax in the CalculateField expression. VB uses the square bracket notation for field names, as in [my_field] and in Python the notation is exclamation point, as in !my_field! I noticed that you're using Python in your modelbuilder version but VB in your script. Try using Python and the exclamation point throughout and see what happens.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.