troubleshoot SOE: Can't assign authority metadata to this spatial reference object because it is empty

4193
1
Jump to solution
01-22-2015 03:48 PM
847396730
Occasional Contributor III

I just upgraded our ArcGIS Servers to version 10.3, and now I get this error when attempting to use a server object extension which worked before the upgrade.  I have tried reissuing the extension, to no avail. I have attached the server log, but Googling these errors just brings me to pages of... error lists, not descriptions or solutions.  Any suggestions?SOETshoot.png

0 Kudos
1 Solution

Accepted Solutions
DavidAglietti
New Contributor III

We were able to figure out what is happening and how to work around it so I'll document it here for posterity.  Our SOE utilizes the IGeometryServer.FindSRbyWKID method.  Our code had been passing a value of "EPSG" for the optional authority parameter.  This worked fine until we upgraded to 10.3 server, when we started seeing the "Can't assign authority metadata to this spatial reference object because it is empty" error.  Apparently the inclusion of a string for the authority parameter results in the method returning an empty spatial reference, even if your WKID is legit.  Luckily this parameter is optional so the workaround is to simply pass an empty string ("") for this parameter and the method will work again, returning a valid spatial reference object.  We went ahead and logged this as a bug with ESRI too.

View solution in original post

0 Kudos
1 Reply
DavidAglietti
New Contributor III

We were able to figure out what is happening and how to work around it so I'll document it here for posterity.  Our SOE utilizes the IGeometryServer.FindSRbyWKID method.  Our code had been passing a value of "EPSG" for the optional authority parameter.  This worked fine until we upgraded to 10.3 server, when we started seeing the "Can't assign authority metadata to this spatial reference object because it is empty" error.  Apparently the inclusion of a string for the authority parameter results in the method returning an empty spatial reference, even if your WKID is legit.  Luckily this parameter is optional so the workaround is to simply pass an empty string ("") for this parameter and the method will work again, returning a valid spatial reference object.  We went ahead and logged this as a bug with ESRI too.

0 Kudos