Select to view content in your preferred language

calculate field add string multiple fields

3651
14
Jump to solution
04-08-2021 01:24 PM
Labels (1)
JaredPilbeam2
MVP Alum

I used to be able to use Python and auto-fill fields by putting the string in quotes. For some reason it hasn't been working lately. I'm using Pro v. 2.7.2. The expression verifies and the there are no errors, but the (text) fields are not populated with the string? The field length is set at 300, more than enough.

cal.png

cal2.png

 

0 Kudos
14 Replies
DanPatterson
MVP Esteemed Contributor

Did you try anything other than a an http?

like

"a"*10    or  "a"*100  or  "a"*300

Also,  shut down, restart works for many problems too


... sort of retired...
0 Kudos
JaredPilbeam2
MVP Alum

@DanPatterson 

I restarted (not because of this but a Windows sign-in issue) and now the field calculator is working. I wish I can say what the root of the problem was? All that I can say is that this hosted feature layer is not open in any browser, just Pro where I'm editing it.

0 Kudos
DanPatterson
MVP Esteemed Contributor

As I said.... 

Also,  shut down, restart works for many problems too

So what was in the accepted solution that worked?


... sort of retired...
0 Kudos
JaredPilbeam2
MVP Alum
I could've accepted any of the replies since I don't really know what was causing the problem? But, I went with that one because I assumed it has something to do with that service being open in a browser that I had open at the time? Yes, it could have just needed a reset too.


0 Kudos
JoeBorgione
MVP Emeritus

ItCrowd.gif

These guys always have a solution....

That should just about do it....