1

I am attempting to create attribute rules for a signalized intersection asset inventory, so when features are addded using collector they are automatically updated in the database. I am also working on using attribute assistants GENERATE ID BY INTERSECT so I can just append the updates via importing the changes from an online service into ArcMap. The reason for using Attribute Rules is for transitioning to an Enterprise Environment, with the plan for heavy ArcGIS Pro use. So I am trying to get ahead by getting my feet wet with the more development / programmable side of ArcGIS.

I am having trouble assigning the database sequence.

arcpy.management.CreateDatabaseSequence("J:\Network\Work Areas\Acheff\Traffic Asset Inventory\Traffic Assets\Traffic Assets\Traffic Assets.gdb", "tSignalPoles", "0001", "0001")

File "", line 1 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: malformed \N character escape

1 Answer 1

3

Some character sequences are treated in a special way. For instance \n is a newline and \t is a tab character.

The error message is about \N, which is an invalid escape sequence in the first place.

The easiest way to resolve this is by adding an r prefix to the string: r'J:\Network\etcetera\.... See here.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.