Quantcast
Channel: Forums - Geodatabase & ArcSDE
Viewing all articles
Browse latest Browse all 1584

RuntimeError: Function requires a state to be set for stream

$
0
0
ArcStandard 10.1, versioned editing, remote SDE 10.0 on MS SQL, Win7-64, python 2.7, editing line fc of geometric network

RuntimeError: Function requires a state to be set for stream [...sde path to fc...][STATE_ID = 0]

Failed on a cursor update (rows.updateRow(row)) (not sure if it's relevant where it failed though)

I'm stepping through lines and copying data to the line from points intersecting the endpoints of the line. I'm running this against a little more than 4000 lines. The above error popped up after processing the 513th line. After the above error I copied the entire geometric network to a local file GDB, ran the same script, at it successfully completed all 4000+ lines.

Suggestions?

PS: the script runs from my ArcMap project so I just realized I may have posted this to the wrong forum. Can someone comment on that too?

Viewing all articles
Browse latest Browse all 1584

Trending Articles