Select to view content in your preferred language

Feature parity: Error 00374 (Unique IDs not set) not available from Python

598
1
Jump to solution
01-10-2024 11:46 AM
StephenRhea_NV5
Frequent Contributor

When I publish a web layer without setting numeric IDs, the Pro UI's Analyze function returns the 00374 "Unique numeric IDs are not assigned" error as expected. However, when I follow the recommended process for publishing with Python (getWebLayerSharingDraft and StageService_server), the 00374 error isn't returned from either call, meaning the configured popups don't get published. This seems like missing feature parity between the Pro UI and the Python API. Am I missing a step?

The only workaround I've found so far is to use getDefinition and look for the useServiceLyaerIDs property.

1 Solution

Accepted Solutions
StephenRhea_NV5
Frequent Contributor

Found the answer this morning thanks to @ShilpiJain! I needed to set the checkUniqueIDAssignment flag to True on the sddraft object returned from getWebLayerSharingDraft.

View solution in original post

1 Reply
StephenRhea_NV5
Frequent Contributor

Found the answer this morning thanks to @ShilpiJain! I needed to set the checkUniqueIDAssignment flag to True on the sddraft object returned from getWebLayerSharingDraft.