In some cases when the Gateway Published APIs count goes more than 800, the gateway is unable to sync with portal.
All Supported API Developer Portal versions.
PAPI Settings >> "FEATURE_FLAG_REQUEST_XSS_FILTER" set to true causes this issue. This is limitation of this Setting.
Increase the request size limit to 400KB by following below steps.
Check if ANTISAMY_FILTER_POLICY is present in portal.conf
if it is then extract that to an xml file (as given in the techdocs) and update and replace in portal.conf
<directive name="maxInputSize" value="200000"/>
to
<directive name="maxInputSize" value="400000"/>
If it is not present then zip the attached config.xml and follow the steps in techdocs