0
votes

When I try to register a custom service, I get this error.

Runtime Error Code: AifSchemaStore (table), no valid executable code in method 'getCachedSchema.

Stack trace:

(S)\Data Dictionary\Tables\AifSchemaStore\Methods\getCachedSchema (S)\Data Dictionary\Tables\AifSchemaStore\Methods\getDocumentSchema - line 16 (S)\Classes\AifSchemaInfo\parmSchemaXml - line 19 (S)\Classes\AifSchemaRepository\getSharedTypesXmlSchema - line 9 (S)\Classes\AifServiceGenerationManager\registerService - line 43 (S)\Classes\AifServiceGenerationManager\main - line 20

So I can't deploy it.

1
Have you looked at the getCachedSchema method of this AifSchemaStore table ? This error usually means that you have compilation error(s). - Pierre
Yes,when i compile AifSchemaStore i get this error: macro #AifSchemaStore_SchemaCacheScope doesn't exist at line cacheData = globalObjectCache.find(#AifSchemaStore_SchemaCacheScope, [schemaId]); .Any suggestion please? - Nesrine Meliene

1 Answers

2
votes

You probably have customizations to the AIF macro that are not merged correctly after installing a CU.

  • Go to the AOT - Macros - AIF
  • Right click the AIF marcro an click Compare...
  • Scroll all the way down and you should see a difference there on this line #define.AifSchemaStore_SchemaCacheScope ('AifSchemaStore_SchemaCache')
  • Merge it to the highest layer by clicking on the arrow on the lefd

Compile the AifSchemaStore table and the error should be gone.

You should probably check all of your customizations if they need upgrading. Also do a full compile of your code and generate Full CIL, otherwise you'll have a ton of problems (at least do a compile of the AifSchemaStore table and an incremental CIL).