Select to view content in your preferred language

Is there a bug in this lesson?

1850
3
Jump to solution
08-10-2020 08:30 PM
EricaPrice
New Contributor II

I am doing the lesson Predict floods with unit hydrographs | Learn ArcGIS and on the section for "Create a Unit Hydrograph: Prepare the Unit Hydrograph Table," #13, I am getting this error: 

ERROR 002717: Invalid Arcade expression, Arcade error: Semicolon or new line expected, Script line: 1

Failed to execute (CalculateField).

Is there something wrong with the code !Count! * 30 * 30?

Thank you,

Erica

0 Kudos
1 Solution

Accepted Solutions
XanderBakker
Esri Esteemed Contributor

Hi Erica Price 

David is correct. This is an error in the lesson:

For Arcade you should use:

$feature["Count"] * 30 * 30
// or
$feature.Count * 30 * 30

You can also change it to Python and use the formula mentioned in the lesson:

!Count! * 30 * 30

View solution in original post

3 Replies
DavidPike
MVP Frequent Contributor

Looks like Python Field Calculator syntax?

I don't use Arcade unfortunately, but the documentation suggests a syntax like:

$feature["fieldname"] * 30 * 30

XanderBakker
Esri Esteemed Contributor

Hi Erica Price 

David is correct. This is an error in the lesson:

For Arcade you should use:

$feature["Count"] * 30 * 30
// or
$feature.Count * 30 * 30

You can also change it to Python and use the formula mentioned in the lesson:

!Count! * 30 * 30
HeatherSmith
Esri Contributor

Thank you Erica, David, and Xander. We will make this fix for our next lesson release!