I re-drafted my profile schema and tried to re-publish the profile schema. While preparing I am getting the following error message.
SOP-330011 Error while executing the method 'GenerateCusResource' of service 'xtk:builder'.
XML-110018 Error while parsing XML string ''
(1:1) : Invalid document structure
Cannot find the '' resource in the '' version API.
Generating 'Profiles (profile)' resource.
I even tried deleting the drafted profile schema and extend it again. But profile is not appearing in the list of available schemas available to be extended. In the workflow logs I started to see the error message "Cannot find the 'profile' resource in the 'head' version API.".
Looks like your schema went to inconsistent state because of recent re-draft and publishing activities. If you're getting option to check the "Do not publish latest modifications" or "do not synchronize" on the profile resource check that and try publishing again. Try to bring the publishing activity successful before dealing the problem with profile resource. Also, if you could explain what have you done exactly that caused this issue will help to provide better suggestions.