Greetings Esri Community,
I hope this post finds you well and that everything is awesome. I'm desperate. I am trying to write a rule that will generate a parcel number and calculate the Name field of the parcel parcel type in the fabric. I created a geodatabase sequence, written the calculation rule as a batch calculation rule, so I can run it manually at the appropriate time via the evaluate rules gp tool, and I get the dreaded 999999 error. This rule works in a file geodatabase, and in a feature service with the just the parcel fc and the validation fcs in the service. Therefore I am confident that expression works. I get the error when I run the evaluate gp tool on the parcel fabric service. Here are the details:
Ok I think that is everything. Thank you in advanced for any help you can provide. We're hoping to implement the pro parcel fabric in the upcoming weeks, and assigning parcel numbers is very important to our workflow. Thank you for everything and have a delightful day.
Sincerely,
Joe Guzi
OK, time to check your service.
Take a look at these articles:
Greetings @JohannesLindner ,
Thank you for your response. I have already read both of those and I can confirm that I have all of those settings appropriately set. I'll include those in my original post. Thank you for everything and have a delightful day.
Sincerely,
Joe Guzi
@JoeGuziStarkCountyOH
It seems everybody already gave you the correct tips!
My only tip: don't get desperate - we'll figure it out.
Attribute Rules are stored in the geodatabase as part of the schema and are also executed in the geodatabase. This is why they use the table name and not the layer name.
If you are certain you used the 'fully qualified' table name in your expression and it still refuses to work, please contact technical support.
@HusseinNasser2 - FYI
return nextsequencevalue("XXX.XXX.ParcelNumberAssignmentSequence");
All
Greetings @AmirBar-Maor,
Thank you for your response. I am definitely desperate. I have been beating my head on this for weeks. I talk to any gis professional who will listen to me about it, I have a case open (Esri Case #03082690), and I have tried everything I can think of to resolve this issue. On the Esri support case front, the assigned analyst is leaving his support role, so I haven't heard anything in a few days. I appreciate your reassurance that we will get this resolved, but it hasn't been going very well. The only thing that is making this somewhat ok, is that our Go-Live date keeps getting pushed back for other reasons. So we have time, but I would still feel a whole lot better if I could get some help on this problem. Thank you for everything and have a delightful day.
Sincerely,
Joe Guzi
Greetings @AmirBar-Maor ,
I double checked that I was referencing the 'fully qualified' table name in the rule. When it was suggested earlier, I referenced the 'fully qualified' table name in the rule, tested it, and it still didn't work. Then I put the rule back to just reference the table name.... Since you suggested the 'fully qualified' table name in the rule again, I stopped the service, made the change to the rule, republished the service, and tested again. I am still getting the same results. The moral of the story is, I have tried it both ways and neither works. Thank you again for your suggestion, I just wanted to provide an update with my results from that troubleshooting. Thank you for everything and have a delightful day.
Sincerely,
Joe Guzi
I am using ArcGIS Pro 3.0 against a 10.9.1 Enterprise and the rule works for me. The only difference might be that I did not check the 'Batch' option since I want the name field to be calculated as the feature is created. You you mark the batch option it means you can defer when the rule is being executed and need to use the error inspector or the Evaluate Rules geoprocessing tool.
The one 'gotcha' I've noticed is that after creating the sequence in the geodatbase I could not find it and had to use the geoprocessing history to make sure I have the correct sequence name.
I hope this helps
Amir
Greetings @AmirBar-Maor,
Thank you for your response. Unfortunately, that does not help. If you noticed from earlier posts, My workflow requires that we are able to run the rule manually. From my understanding, the only way to accomplish this is to have the batch enabled, and run the evaluate rules gp tool. I have not been able to run the evaluate rule gp tool because of the previously mentioned error.
I too have proven that the rule works when creating the rule as an immediate rule type. That being said, that does not work for my workflow. I need to be able to run the rule manually.
Regarding your sequence point. I have verified the sequence name, by going into Sql Server Management studio, and finding the sequence in the database.
Thank you for your attempt at helping, but I'm still desparate because we have yet to find a solution. We now have a go-live date for the end of July. Therefore I need to find a solution fast. Thank you for everything and have a delightful day.
Sincerely,
Joe Guzi
Last try 🙂
I've created a new batch rule and it is working.
I think the reason it is failing is because you might not have the error layers in your map.
Here are a few steps:
1. Before publishing the map make sure to add the error layer to it
2. Once you have published your map and added the parcel fabric to a new map, right click on the parcel layer and add the error layers to the map.
3. Open Error Inspector and switch from the parcel fabric controlled topology to the Attribute Rules
4. You can check the Batch Calculation and evaluate the rules. It worked for me.
I hope this works for you too
Greetings @AmirBar-Maor ,
Thank you for your response. I had to clean up my services. I had a bunch of service I published for troubleshooting, so I pretty much started over. Here were my steps:
So it worked, but it assigned parcel numbers for the visible extent, which isn't my goal either. I really only want to assign Parcel numbers for the selected parcels. I tried your method twice and it assigned parcel numbers to the visible extent both times, and ignored my selection.
Since your method ignored my selection, I'm not convinced your method is the correct solution either. I need to be able to select the parcel, and manually run the rule on that parcel. I apologize if I haven't done a good job articulating my goal. I'm pretty sure I have said this already. To my understanding the Evaluate Rules GP tool will accomplish my goal, but I am still getting the attached error. Can you tell me why the Evaluate Rule GP tool is giving me this error when I run it on the Parcel Fabric Service? I have gotten this tool to run successfully in a file geodatabase, and the results were exactly what I was after. Would you be open to a meeting to discuss this issue further?
Thank you for everything and have a delightful day.
Sincerely,
Joe Guzi
Assuming you checked the Validation capability when you published, you should be able to see the validation REST API exposed on your server:
The first thing I did was to verify that the Evaluation service REST API supports a selection set.
It does 🙂
To use the geoprocessing tool Evaluate Rules you will need to supply the 'Feature Server' URL of your published map. It will end with '...FeatureServer' and will look like this:
Also notice it is set to Calculation rules.
Now you can run it on a selection for the 'default extent' (all of the data).
To see the update (another 'gotcha'), you will have to select the version in the contents pane \ data source tab and then hit refresh. I have verified that only the selected features are updated.
However, getting a 999999 error is always a BUG.