Is there a pre-built way to translate between arcpy CIMPopupInfo schema and Enterprise popup schema? Since publishing through Python doesn't maintain popups, I have to access the Portal item after publishing, build the popups, then call update() with the custom-build popup schema. The problem is that the CIM schema and Enterprise schema don't easily align, so I have to write some custom code to build the Enterprise popup. While it's fairly trivial, I'm experienced enough to know that some iteration of popup properties is likely to be overlooked. There's a good start on this Community post, but if an Esri-provided solution already exists, I'd love to use it. Alternatively, is there a page that defines the Enterprise popup schema? The only way I've found to access it so far is to get a Portal item and look through the get_data() return value.
Solved! Go to Solution.
@StephenRhea_NV5 This is a known issue / bug and it can be tracked at: https://support.esri.com/en-us/bug/publishing-a-map-image-layer-using-arcpy-disables-popup-bug-00015...
@JeffBarrette @DannyMcVey Any advice? One of my biggest hangups is that similarly-named fields don't necessarily have the same schema, such as fieldDescriptions in CIM vs. fieldInfos in Enterprise, so I'm having to try every permutation I can think of in both environments, then comparing the results to map everything correctly.
Alternatively, any updates on the bug linked in the original post?
Thanks, @JeffBarrette !
@StephenRhea_NV5 This is a known issue / bug and it can be tracked at: https://support.esri.com/en-us/bug/publishing-a-map-image-layer-using-arcpy-disables-popup-bug-00015...
Thanks for the link, and glad to see it's already in the product plan! Is there anything my clients and I can do to add extra weight to the bug to get it moved up in the backlog?
You could create a support issue and add yourself to the existing bug.
Jeff
As a follow-on question, do you think this is inherently resolved by Enterprise 10.9 and 11.x including the ArcGIS Pro-based service runtime? I learned about that change over the weekend and figured it may be relevant, but I can't find any technical details on what's different.