Calculate Value tool fails, unicode error from paths with "\U" (rawunicodeescape)

Discussion created by curtvprice Champion on Feb 16, 2011
Latest reply on Dec 30, 2014 by curtvprice
- ArcGIS ArcInfo Desktop 10.0 SP 1
- Windows XP64 and Win732

I'm getting a strange error from the Calculate Value tool when I feed it a path variable:

Executing: PathTest
Executing (Calculate Value): CalculateValue r"C:\Users" # Variant
Start Time: Tue Feb 08 12:46:01 2011
ERROR 000539: Error running expression: r"C:\Users" <type 'exceptions.SyntaxError'>: (unicode error) 'rawunicodeescape' codec can't decode bytes in position 2-3: truncated \uXXXX (<string>, line 1)
Failed to execute (Calculate Value).

I have logged this as incident #896927 - the suggestion was to zap my HKCU registry and profile. Zapping the registry seemed to help, but the problem returns like a bad 70s song.

I'm posting it here in case someone else runs into it and finds a solution.