cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Documentation on steps to Rid Off print extensions

0 Kudos
719

Is there documentation available in Hybris on how to remove the deprecated Print Extensions.

I tried removing the extensions manually (starting point as removing it from localextentions.xml and started getting the exceptions as below


INFO | jvm 1 | main | 2017/06/29 22:53:55.931 | ERROR [hybrisHTTP5] (000000RS-ImpEx-Import) [ImpExImportJob] line 3 at main script: java.lang.ClassNotFoundException: de.hybris.platform.printcockpit.constraints.PrintPageGridAndMode INFO | jvm 1 | main | 2017/06/29 22:53:55.931 | de.hybris.platform.impex.jalo.ImpExException: line 3 at main script: java.lang.ClassNotFoundException: de.hybris.platform.printcockpit.constraints.PrintPageGridAndMode


Its a pain going over each and every entry trying to clean up manually to rid of all Print Extension related data.

Please let know if there any documentation or migration plan available.

If anyone has done it can you please let me know the procedure you followed to achieve the same.

Regards Ajith

View Entire Topic
andyfletcher
Active Contributor

By coincidence I ran into this same problem yesterday so what I did is still fresh in my mind. I started off by just using the regular 'Cleanup Type System' in the hac but like you found that this type remained.

I checked to make sure there were no instances

 select count(*) from {PrintPageGridAndModeConstraint}

(you'd delete them at this point if there were)

and then ran these queries directly against the db and restarted Hybris.

 delete from composedtypes where internalcode='PrintPageGridAndModeConstraint'
 delete from attributedescriptors where ownerpkstring not in (select pk from composedtypes);
 delete from attributedescriptorslp where itempk not in (select pk from attributedescriptors);

I was doing this against a dev db rather than in production so I'm not so worried about deleting things from core tables but you'd probably want to check what is going to be deleted first!

0 Kudos

Thanks for the steps, This worked for me in dev as well. We were not utilizing the print modules, Just that it was present it in local extension file.

I tried another option as well to yours, given below

  1. Instead of individual delete scripts I used REMOVE COMPOSEDTYPE;CODE[unique=true] ;PrintPageGridAndModeConstraint

  2. Deployed the codebase with the print extensions removed

  3. clean up type system from HAC --> Maintenance --> CleanUp

This also worked for me the same way. The start up and update the error was no longer coming up.